[oe-commits] Nathan Rossi : u-boot.inc: Add host compiler flags and openssl-native dependency
git at git.openembedded.org
git at git.openembedded.org
Wed Sep 9 21:58:31 UTC 2015
Module: openembedded-core.git
Branch: master-next
Commit: b4a16c28f7faef4f2e913bff95d8c0f0b18f1076
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=b4a16c28f7faef4f2e913bff95d8c0f0b18f1076
Author: Nathan Rossi <nathan at nathanrossi.com>
Date: Wed Sep 9 19:34:01 2015 +1000
u-boot.inc: Add host compiler flags and openssl-native dependency
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>
Signed-off-by: Ross Burton <ross.burton at intel.com>
---
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.
More information about the Openembedded-commits
mailing list