diff options
author | Kevin Hao <kexin.hao@windriver.com> | 2015-07-31 13:21:25 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-08-01 07:34:03 +0100 |
commit | 3167580e791297f75941ffb96e13cd4dc045e38b (patch) | |
tree | 6290152b4e9ba8d6d4f0b9d4be6ed155201f10e2 | |
parent | 3243682819c5b8917879a6a435def18c718e0e81 (diff) | |
download | poky-3167580e791297f75941ffb96e13cd4dc045e38b.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)
Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-bsp/u-boot/u-boot_2015.07.bb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-bsp/u-boot/u-boot_2015.07.bb b/meta/recipes-bsp/u-boot/u-boot_2015.07.bb index 3ba2f44eaa..4746c33ec2 100644 --- a/meta/recipes-bsp/u-boot/u-boot_2015.07.bb +++ b/meta/recipes-bsp/u-boot/u-boot_2015.07.bb | |||
@@ -10,3 +10,5 @@ SRCREV = "33711bdd4a4dce942fb5ae85a68899a8357bdd94" | |||
10 | SRC_URI += "file://0001-u-boot-mpc85xx-u-boot-.lds-remove-_GLOBAL_OFFSET_TAB.patch" | 10 | SRC_URI += "file://0001-u-boot-mpc85xx-u-boot-.lds-remove-_GLOBAL_OFFSET_TAB.patch" |
11 | 11 | ||
12 | PV = "v2015.07+git${SRCPV}" | 12 | PV = "v2015.07+git${SRCPV}" |
13 | |||
14 | EXTRA_OEMAKE_append = " KCFLAGS=-fgnu89-inline" | ||