]> code.ossystems Code Review - meta-freescale.git/commitdiff
atf: Fix builds of native tools during build process
authorDaniel Klauer <daniel.klauer@gin.de>
Thu, 1 Aug 2019 09:15:01 +0000 (11:15 +0200)
committerOtavio Salvador <otavio@ossystems.com.br>
Thu, 15 Aug 2019 17:49:22 +0000 (14:49 -0300)
atf builds some native tools such as fiptool during its build process,
this should use Yocto's native toolchain options instead of just the
host's.

This way the fiptool build will actually use the openssl-native dependency
from Yocto's native sysroot, instead of the host's openssl (which may not
exist).

Signed-off-by: Daniel Klauer <daniel.klauer@gin.de>
recipes-bsp/atf/atf_git.bb

index bc182ebe5fea27d8e626ec1ede10ea9fb1301b0c..e3d18624c22d3db488da57562f9a9500e4224bad 100644 (file)
@@ -29,6 +29,8 @@ LDFLAGS[unexport] = "1"
 AS[unexport] = "1"
 LD[unexport] = "1"
 
+EXTRA_OEMAKE += "HOSTCC='${BUILD_CC} ${BUILD_CPPFLAGS} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}'"
+
 BOOTTYPE ?= "nor nand qspi flexspi_nor sd emmc"
 BUILD_SECURE = "${@bb.utils.contains('DISTRO_FEATURES', 'secure', 'true', 'false', d)}"
 BUILD_OPTEE = "${@bb.utils.contains('COMBINED_FEATURES', 'optee', 'true', 'false', d)}"