From: Daniel Klauer Date: Thu, 1 Aug 2019 09:15:01 +0000 (+0200) Subject: atf: Fix builds of native tools during build process X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=fa4994b2d8da73fd3ae30875b3af8d7a682cdd53;p=meta-freescale.git atf: Fix builds of native tools during build process 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 --- diff --git a/recipes-bsp/atf/atf_git.bb b/recipes-bsp/atf/atf_git.bb index bc182ebe..e3d18624 100644 --- a/recipes-bsp/atf/atf_git.bb +++ b/recipes-bsp/atf/atf_git.bb @@ -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)}"