diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2017-09-19 10:19:41 -0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-09-21 09:24:25 +0100 |
commit | 7df44282c22fc29656a2c781090e4d8cf9c5bed1 (patch) | |
tree | 84da07c3eb9a84b01a045385f25d74deebbc7922 /meta/recipes-bsp/u-boot | |
parent | 35258b6d3cd8354b628ce050e8f6c603700687c5 (diff) | |
download | poky-7df44282c22fc29656a2c781090e4d8cf9c5bed1.tar.gz |
u-boot-fw-utils: Fix cross and target builds
- The environment tools target has change to envtools;
- The HOSTCC variable must be used to set CC for cross;
- Drop ARCH variable as it is set on config;
(From OE-Core rev: 73afabf8e69019f08b424a06f3eafaab052b0606)
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
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-fw-utils_2017.09.bb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.09.bb b/meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.09.bb index c2e8f0fb84..02887a138a 100644 --- a/meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.09.bb +++ b/meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.09.bb | |||
@@ -5,13 +5,13 @@ DEPENDS = "mtd-utils" | |||
5 | 5 | ||
6 | INSANE_SKIP_${PN} = "already-stripped" | 6 | INSANE_SKIP_${PN} = "already-stripped" |
7 | EXTRA_OEMAKE_class-target = 'CROSS_COMPILE=${TARGET_PREFIX} CC="${CC} ${CFLAGS} ${LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" V=1' | 7 | EXTRA_OEMAKE_class-target = 'CROSS_COMPILE=${TARGET_PREFIX} CC="${CC} ${CFLAGS} ${LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" V=1' |
8 | EXTRA_OEMAKE_class-cross = 'ARCH=${TARGET_ARCH} CC="${CC} ${CFLAGS} ${LDFLAGS}" V=1' | 8 | EXTRA_OEMAKE_class-cross = 'HOSTCC="${CC} ${CFLAGS} ${LDFLAGS}" V=1' |
9 | 9 | ||
10 | inherit uboot-config | 10 | inherit uboot-config |
11 | 11 | ||
12 | do_compile () { | 12 | do_compile () { |
13 | oe_runmake ${UBOOT_MACHINE} | 13 | oe_runmake ${UBOOT_MACHINE} |
14 | oe_runmake env | 14 | oe_runmake envtools |
15 | } | 15 | } |
16 | 16 | ||
17 | do_install () { | 17 | do_install () { |