]> code.ossystems Code Review - meta-freescale.git/commit
u-boot-qoriq: add -fgnu89-inline option for gcc5
authorTing Liu <ting.liu@freescale.com>
Tue, 28 Jul 2015 11:15:51 +0000 (19:15 +0800)
committerOtavio Salvador <otavio@ossystems.com.br>
Wed, 29 Jul 2015 13:48:21 +0000 (10:48 -0300)
commit1f4c127ea20ba8a967092235e65816b0f0a9bf71
tree0ad0d2bcc2b1b7fec372b30ba7c53c3efb1ae6d3
parent1149eaae3564abee2a18a8b3481135d7de80b78b
u-boot-qoriq: add -fgnu89-inline option for gcc5

Fix the below build issues:
  CC      drivers/crypto/fsl/sec.o
  LD      arch/powerpc/cpu/mpc8xxx/built-in.o
arch/powerpc/cpu/mpc8xxx/fdt.o: In function `ld_le16':
../arch/powerpc/include/asm/byteorder.h:12: multiple definition of `ld_le16'

The problem is the change of the default C standard from gnu89 to gnu11
which changes the semantics of 'inline'. The issue is described in the
Porting guide at https://gcc.gnu.org/gcc-5/porting_to.html. Adding the
'-fgnu89-inline' option fixes the issue.

Signed-off-by: Ting Liu <ting.liu@freescale.com>
Acked-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
recipes-bsp/u-boot/files/add-fgnu89-inline-option-for-gcc5.patch [new file with mode: 0644]
recipes-bsp/u-boot/u-boot-qoriq_2015.01.bb