All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeroen Hofstee <dasuboot@myspectrum.nl>
To: u-boot@lists.denx.de
Subject: [U-Boot] GCC5.x support for old u-boot version
Date: Wed, 25 Nov 2015 10:54:50 +0100	[thread overview]
Message-ID: <5655856A.9050807@myspectrum.nl> (raw)
In-Reply-To: <CA+-BmJbWLj0ist+yU5MkGoADAkWLgC=ZZt4W96i77twy2ZPA0Q@mail.gmail.com>

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

  reply	other threads:[~2015-11-25  9:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-25  9:35 [U-Boot] GCC5.x support for old u-boot version Ayoub Zaki
2015-11-25  9:54 ` Jeroen Hofstee [this message]
2015-11-25 10:18   ` Ayoub Zaki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5655856A.9050807@myspectrum.nl \
    --to=dasuboot@myspectrum.nl \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.