[OE-core] [PATCH] u-boot.inc: Add host compiler flags and openssl-native dependency
Nathan Rossi
nathan at nathanrossi.com
Wed Sep 9 09:34:01 UTC 2015
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-native as a dependency and also
adds the complete CC flags (as done in u-boot-mkimage) for the HOSTCC
variable that U-Boot uses when compiling the host tools.
Signed-off-by: Nathan Rossi <nathan at nathanrossi.com>
---
Note: Only a few different board configurations use CONFIG_FIT_SIGNATURE,
for 2015.07 this includes "ids8313", "am335x_boneback_vboot" as well as all the
Xilinx Zynq boards.
---
meta/recipes-bsp/u-boot/u-boot.inc | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/meta/recipes-bsp/u-boot/u-boot.inc b/meta/recipes-bsp/u-boot/u-boot.inc
index 990ddb1..51f5423 100644
--- a/meta/recipes-bsp/u-boot/u-boot.inc
+++ b/meta/recipes-bsp/u-boot/u-boot.inc
@@ -16,6 +16,12 @@ inherit uboot-config deploy
EXTRA_OEMAKE = 'CROSS_COMPILE=${TARGET_PREFIX} CC="${TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS}" V=1'
+# u-boot will compile its own tools during the build, with specific
+# configurations (aka when CONFIG_FIT_SIGNATURE is enabled) or when compiling
+# just the tools, openssl is needed as a HOST dependency.
+DEPENDS += "openssl-native"
+EXTRA_OEMAKE += 'HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}"'
+
# Allow setting an additional version string that will be picked up by the
# u-boot build system and appended to the u-boot version. If the .scmversion
# file already exists it will not be overwritten.
--
2.5.1
More information about the Openembedded-core
mailing list