[meta-freescale] [meta-freescale-layer][PATCH 06/18] u-boot-qoriq: Add host compiler flags

ting.liu at nxp.com ting.liu at nxp.com
Fri Jul 15 09:35:47 PDT 2016


From: Ting Liu <ting.liu at nxp.com>

U-Boot will compile its own tools during the build, with specific
configurations (aka when CONFIG_FIT_SIGNATURE is enabled) the host tools
require openssl. This patch adds 'openssl' as a PACKAGECONFIG that
enables the use of openssl-native as a dependency and also adds the
HOSTCC flags that U-Boot uses when compiling the host tools.

(From OE-Core rev: 7d0edf5d04fba0b642bfb08a1de28fbc8e480209)

Signed-off-by: Ting Liu <ting.liu at nxp.com>
---
 recipes-bsp/u-boot/u-boot-qoriq_2016.01.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/recipes-bsp/u-boot/u-boot-qoriq_2016.01.bb b/recipes-bsp/u-boot/u-boot-qoriq_2016.01.bb
index 002066d..90e9677 100644
--- a/recipes-bsp/u-boot/u-boot-qoriq_2016.01.bb
+++ b/recipes-bsp/u-boot/u-boot-qoriq_2016.01.bb
@@ -44,7 +44,8 @@ python () {
 }
 
 WRAP_TARGET_PREFIX ?= "${TARGET_PREFIX}"
-EXTRA_OEMAKE = 'CROSS_COMPILE=${WRAP_TARGET_PREFIX} CC="${WRAP_TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS}"'
+EXTRA_OEMAKE = 'CROSS_COMPILE=${WRAP_TARGET_PREFIX} CC="${WRAP_TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS}" V=1'
+EXTRA_OEMAKE += 'HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}"'
 
 inherit fsl-u-boot-localversion
 LOCALVERSION = "+fsl"
-- 
1.9.2



More information about the meta-freescale mailing list