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>
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)}"