summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp
diff options
context:
space:
mode:
authorKevin Hao <kexin.hao@windriver.com>2015-07-31 13:21:25 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-08-09 16:37:45 -0700
commit4b824d5bed60901d90b491ef58bb408aa38a0726 (patch)
tree9b1fe31572bdd627b1222c0bf3d145693901ae2d /meta/recipes-bsp
parent3ff9e848835e0806138d54649a9c28c6c8d99d0a (diff)
downloadast2050-yocto-poky-4b824d5bed60901d90b491ef58bb408aa38a0726.zip
ast2050-yocto-poky-4b824d5bed60901d90b491ef58bb408aa38a0726.tar.gz
u-boot: fix extern inline build errors for gcc 5
The gcc 5 change its default standard from gnu89 to gnu11. These two standards do have different semantics for inline functions. And the gcc 5 will emit the following errors on the "extern inline" functions: arch/powerpc/cpu/mpc8xxx/fsl_lbc.o: In function `ld_le16': ./arch/powerpc/include/asm/byteorder.h:12: multiple definition of `ld_le16' arch/powerpc/cpu/mpc8xxx/fdt.o:./arch/powerpc/include/asm/byteorder.h:12: first defined here Fix these build errors by using "-fgnu89-inline" to enforce the gnu89 inline semantics as suggested in [1]. [1] https://gcc.gnu.org/gcc-5/porting_to.html (From OE-Core rev: a1c83bb5556837d31d934b9af130cdbac19d5e97) (From OE-Core rev: c07aaa7214ac7e0244ee1b5987dbd2dda5aab286) Signed-off-by: Kevin Hao <kexin.hao@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Joshua Lock <joshua.lock@collabora.co.uk> 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_2015.01.bb2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-bsp/u-boot/u-boot_2015.01.bb b/meta/recipes-bsp/u-boot/u-boot_2015.01.bb
index 6feac31..3a21224 100644
--- a/meta/recipes-bsp/u-boot/u-boot_2015.01.bb
+++ b/meta/recipes-bsp/u-boot/u-boot_2015.01.bb
@@ -7,3 +7,5 @@ DEPENDS += "dtc-native"
SRCREV = "92fa7f53f1f3f03296f8ffb14bdf1baefab83368"
PV = "v2015.01+git${SRCPV}"
+
+EXTRA_OEMAKE_append = " KCFLAGS=-fgnu89-inline"
OpenPOWER on IntegriCloud