All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] u-boot.inc: Add host compiler flags and openssl-native dependency
@ 2015-09-09  9:34 Nathan Rossi
  2015-09-09 11:56 ` Phil Blundell
  0 siblings, 1 reply; 6+ messages in thread
From: Nathan Rossi @ 2015-09-09  9:34 UTC (permalink / raw)
  To: openembedded-core

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@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



^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-09-10  8:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-09  9:34 [PATCH] u-boot.inc: Add host compiler flags and openssl-native dependency Nathan Rossi
2015-09-09 11:56 ` Phil Blundell
2015-09-09 15:42   ` Nathan Rossi
2015-09-09 23:08     ` Phil Blundell
2015-09-10  6:57       ` Nathan Rossi
2015-09-10  8:11         ` Phil Blundell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.