All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] GCC5.x support for old u-boot version
@ 2015-11-25  9:35 Ayoub Zaki
  2015-11-25  9:54 ` Jeroen Hofstee
  0 siblings, 1 reply; 3+ messages in thread
From: Ayoub Zaki @ 2015-11-25  9:35 UTC (permalink / raw)
  To: u-boot

Hello,

we have an am335x based custom board that use for our Project.
At the moment only a customized version of uboot-2013.01.01 supports this
board.
As we use Yocto toolchains and we plan to upgrade to latest Yocto-2.0 that
comes with GCC5.2.

I would like to be able to build this custom old version with newer
toolchains.

For that I added from new u-boot the file :
 include/linux/compiler-gcc5.h

But still having some compile errors :

| arm-poky-linux-gnueabi-gcc  --sysroot=/yocto/build/tmp/sysroots/shc  -g
-Os   -fno-common -ffixed-r8 -msoft-float  -D__KERNEL__
-DCONFIG_SYS_TEXT_BASE=0x80800000 -DCONFIG_SPL_TEXT_BASE=0x402F0400
-I/yocto/build/tmp/work/shc-poky-linux-gnueabi/u-boot-shc/1.0-r1/git/include
-fno-builtin -ffreestanding -nostdinc -isystem
/yocto/build/tmp/sysroots/x86_64-linux/usr/lib/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.2.0/include
-pipe  -DCONFIG_ARM -D__ARM__ -marm -mno-thumb-interwork -mabi=aapcs-linux
-march=armv7-a -mcpu=cortex-a8 -Wall -Wstrict-prototypes
-fno-stack-protector -Wno-format-nonliteral -Wno-format-security
-fstack-usage     -o s_record.o s_record.c -c
| main.c:62:6: error: 'show_boot_progress' aliased to external symbol
'__show_boot_progress'
|  void show_boot_progress (int val) __attribute__((weak,
alias("__show_boot_progress")));
|       ^
| make[1]: *** [main.o] Error 1
| make[1]: Leaving directory
`/yocto/build/tmp/work/shc-poky-linux-gnueabi/u-boot/1.0-r1/git/common'
| make: *** [common/libcommon.o] Error 2

Any chance to backport GCC5 support to old u-boot version ?

Thank you for suggestions.

Best regards,

Ayoub Zaki

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] GCC5.x support for old u-boot version
  2015-11-25  9:35 [U-Boot] GCC5.x support for old u-boot version Ayoub Zaki
@ 2015-11-25  9:54 ` Jeroen Hofstee
  2015-11-25 10:18   ` Ayoub Zaki
  0 siblings, 1 reply; 3+ messages in thread
From: Jeroen Hofstee @ 2015-11-25  9:54 UTC (permalink / raw)
  To: u-boot

Hello Ayoub,

On 25-11-15 10:35, Ayoub Zaki wrote:
> we have an am335x based custom board that use for our Project.
> At the moment only a customized version of uboot-2013.01.01 supports this
> board.
> As we use Yocto toolchains and we plan to upgrade to latest Yocto-2.0 that
> comes with GCC5.2.
>
> I would like to be able to build this custom old version with newer
> toolchains.
>
> For that I added from new u-boot the file :
>   include/linux/compiler-gcc5.h
>
> But still having some compile errors :
>
> | arm-poky-linux-gnueabi-gcc  --sysroot=/yocto/build/tmp/sysroots/shc  -g
> -Os   -fno-common -ffixed-r8 -msoft-float  -D__KERNEL__
> -DCONFIG_SYS_TEXT_BASE=0x80800000 -DCONFIG_SPL_TEXT_BASE=0x402F0400
> -I/yocto/build/tmp/work/shc-poky-linux-gnueabi/u-boot-shc/1.0-r1/git/include
> -fno-builtin -ffreestanding -nostdinc -isystem
> /yocto/build/tmp/sysroots/x86_64-linux/usr/lib/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.2.0/include
> -pipe  -DCONFIG_ARM -D__ARM__ -marm -mno-thumb-interwork -mabi=aapcs-linux
> -march=armv7-a -mcpu=cortex-a8 -Wall -Wstrict-prototypes
> -fno-stack-protector -Wno-format-nonliteral -Wno-format-security
> -fstack-usage     -o s_record.o s_record.c -c
> | main.c:62:6: error: 'show_boot_progress' aliased to external symbol
> '__show_boot_progress'
> |  void show_boot_progress (int val) __attribute__((weak,
> alias("__show_boot_progress")));
> |       ^
> | make[1]: *** [main.o] Error 1
> | make[1]: Leaving directory
> `/yocto/build/tmp/work/shc-poky-linux-gnueabi/u-boot/1.0-r1/git/common'
> | make: *** [common/libcommon.o] Error 2
>
> Any chance to backport GCC5 support to old u-boot version ?

Perhaps this helps "inline: use the gcc inline version instead of the 
c99 one."
http://lists.denx.de/pipermail/u-boot/2014-May/180709.html

Regards,
Jeroen

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] GCC5.x support for old u-boot version
  2015-11-25  9:54 ` Jeroen Hofstee
@ 2015-11-25 10:18   ` Ayoub Zaki
  0 siblings, 0 replies; 3+ messages in thread
From: Ayoub Zaki @ 2015-11-25 10:18 UTC (permalink / raw)
  To: u-boot

Hello Jeroen,


that fixed the build problem ! many thanks:-)

Best regards,
Ayoub

2015-11-25 10:54 GMT+01:00 Jeroen Hofstee <dasuboot@myspectrum.nl>:

> Hello Ayoub,
>
>
> On 25-11-15 10:35, Ayoub Zaki wrote:
>
>> we have an am335x based custom board that use for our Project.
>> At the moment only a customized version of uboot-2013.01.01 supports this
>> board.
>> As we use Yocto toolchains and we plan to upgrade to latest Yocto-2.0 that
>> comes with GCC5.2.
>>
>> I would like to be able to build this custom old version with newer
>> toolchains.
>>
>> For that I added from new u-boot the file :
>>   include/linux/compiler-gcc5.h
>>
>> But still having some compile errors :
>>
>> | arm-poky-linux-gnueabi-gcc  --sysroot=/yocto/build/tmp/sysroots/shc  -g
>> -Os   -fno-common -ffixed-r8 -msoft-float  -D__KERNEL__
>> -DCONFIG_SYS_TEXT_BASE=0x80800000 -DCONFIG_SPL_TEXT_BASE=0x402F0400
>>
>> -I/yocto/build/tmp/work/shc-poky-linux-gnueabi/u-boot-shc/1.0-r1/git/include
>> -fno-builtin -ffreestanding -nostdinc -isystem
>>
>> /yocto/build/tmp/sysroots/x86_64-linux/usr/lib/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.2.0/include
>> -pipe  -DCONFIG_ARM -D__ARM__ -marm -mno-thumb-interwork -mabi=aapcs-linux
>> -march=armv7-a -mcpu=cortex-a8 -Wall -Wstrict-prototypes
>> -fno-stack-protector -Wno-format-nonliteral -Wno-format-security
>> -fstack-usage     -o s_record.o s_record.c -c
>> | main.c:62:6: error: 'show_boot_progress' aliased to external symbol
>> '__show_boot_progress'
>> |  void show_boot_progress (int val) __attribute__((weak,
>> alias("__show_boot_progress")));
>> |       ^
>> | make[1]: *** [main.o] Error 1
>> | make[1]: Leaving directory
>> `/yocto/build/tmp/work/shc-poky-linux-gnueabi/u-boot/1.0-r1/git/common'
>> | make: *** [common/libcommon.o] Error 2
>>
>> Any chance to backport GCC5 support to old u-boot version ?
>>
>
> Perhaps this helps "inline: use the gcc inline version instead of the c99
> one."
> http://lists.denx.de/pipermail/u-boot/2014-May/180709.html
>
> Regards,
> Jeroen
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-11-25 10:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-25  9:35 [U-Boot] GCC5.x support for old u-boot version Ayoub Zaki
2015-11-25  9:54 ` Jeroen Hofstee
2015-11-25 10:18   ` Ayoub Zaki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.