summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp
diff options
context:
space:
mode:
authorJoshua Watt <jpewhacker@gmail.com>2018-07-31 12:19:13 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-08-04 07:42:20 +0100
commitb91562697d1d04fb7cad15c1ab7d7bf3cd178589 (patch)
treeb82cfd0ddbe228fcf0dd74c95b9243cd25824c90 /meta/recipes-bsp
parent78e1856f58867c8a6ba2f40eb87c222cb81a1d07 (diff)
downloadpoky-b91562697d1d04fb7cad15c1ab7d7bf3cd178589.tar.gz
u-boot: Fix pylibfdt generation
u-boot attempts to build a Python library called pylibfdt. By default, u-boot would attempt to use the build host's Python interpreter, which causes numerous problems, not least of which is that it fails if the host doesn't have the Python development package installed (complaining about not being able to find Python.h) Rectify this situation by including the proper build time dependencies for pylibfdt and passing the proper arguments to make. [YOCTO #12867] (From OE-Core rev: 3b0b16300b351878790729d6270cd113bca73eff) (From OE-Core rev: 71c9fc5a9398dc77a4e0f440a7fde346990c0475) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp')
-rw-r--r--meta/recipes-bsp/u-boot/u-boot.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/recipes-bsp/u-boot/u-boot.inc b/meta/recipes-bsp/u-boot/u-boot.inc
index c2bcf99840..95c2f4db14 100644
--- a/meta/recipes-bsp/u-boot/u-boot.inc
+++ b/meta/recipes-bsp/u-boot/u-boot.inc
@@ -7,8 +7,11 @@ PACKAGE_ARCH = "${MACHINE_ARCH}"
7 7
8inherit uboot-config uboot-extlinux-config uboot-sign deploy 8inherit uboot-config uboot-extlinux-config uboot-sign deploy
9 9
10DEPENDS += "swig-native python-native"
11
10EXTRA_OEMAKE = 'CROSS_COMPILE=${TARGET_PREFIX} CC="${TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS}" V=1' 12EXTRA_OEMAKE = 'CROSS_COMPILE=${TARGET_PREFIX} CC="${TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS}" V=1'
11EXTRA_OEMAKE += 'HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}"' 13EXTRA_OEMAKE += 'HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}"'
14EXTRA_OEMAKE += 'PYTHON=nativepython STAGING_INCDIR=${STAGING_INCDIR_NATIVE} STAGING_LIBDIR=${STAGING_LIBDIR_NATIVE}'
12 15
13PACKAGECONFIG ??= "openssl" 16PACKAGECONFIG ??= "openssl"
14# u-boot will compile its own tools during the build, with specific 17# u-boot will compile its own tools during the build, with specific