diff options
author | Nathan Rossi <nathan@nathanrossi.com> | 2015-09-10 20:24:12 +1000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-12 22:48:46 +0100 |
commit | 10c4f1be9801731a7503e837193e4d5bc98c5aee (patch) | |
tree | 636b25fa2264d486b4ba04458e29e1e77bf2ecc3 /meta/recipes-bsp/u-boot | |
parent | 29e94f671b951aa28450160c4b3ec48a4ddf0063 (diff) | |
download | poky-10c4f1be9801731a7503e837193e4d5bc98c5aee.tar.gz |
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' 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: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp/u-boot')
-rw-r--r-- | meta/recipes-bsp/u-boot/u-boot.inc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/recipes-bsp/u-boot/u-boot.inc b/meta/recipes-bsp/u-boot/u-boot.inc index b89ddfc127..e66ffd1458 100644 --- a/meta/recipes-bsp/u-boot/u-boot.inc +++ b/meta/recipes-bsp/u-boot/u-boot.inc | |||
@@ -15,6 +15,13 @@ PACKAGE_ARCH = "${MACHINE_ARCH}" | |||
15 | inherit uboot-config deploy | 15 | inherit uboot-config deploy |
16 | 16 | ||
17 | EXTRA_OEMAKE = 'CROSS_COMPILE=${TARGET_PREFIX} CC="${TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS}" V=1' | 17 | EXTRA_OEMAKE = 'CROSS_COMPILE=${TARGET_PREFIX} CC="${TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS}" V=1' |
18 | EXTRA_OEMAKE += 'HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}"' | ||
19 | |||
20 | PACKAGECONFIG ??= "openssl" | ||
21 | # u-boot will compile its own tools during the build, with specific | ||
22 | # configurations (aka when CONFIG_FIT_SIGNATURE is enabled) openssl is needed as | ||
23 | # a host build dependency. | ||
24 | PACKAGECONFIG[openssl] = ",,openssl-native" | ||
18 | 25 | ||
19 | # Allow setting an additional version string that will be picked up by the | 26 | # Allow setting an additional version string that will be picked up by the |
20 | # u-boot build system and appended to the u-boot version. If the .scmversion | 27 | # u-boot build system and appended to the u-boot version. If the .scmversion |