public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [RFC] ARM: Toolchain configuration for Cortex A8	based OMAP3?
Date: Thu, 28 Aug 2008 00:38:53 +0200	[thread overview]
Message-ID: <20080827223853.GC13650@game.jcrosoft.org> (raw)
In-Reply-To: <48AFB0B2.9010601@googlemail.com>

On 08:39 Sat 23 Aug     , Dirk Behme wrote:
> 
> While preparing U-Boot patches for ARM Cortex A8 based OMAP3 [1], we 
> found that we use CodeSourcery ARM toolchain [2], and the way we 
> locally modified main Makefile to use this toolchain is most probably 
> incompatible with mainline.
> 
> Please find below some diffs what we did locally.
> 
> We now like to discuss/ask what's the best way to align this with 
> mainline to be able to submit OMAP3 patches?
> 
> Any hints or proposals?
> 
> Many thanks,
> 
> Dirk
> 
> [1] 
> http://www.sakoman.net/cgi-bin/gitweb.cgi?p=u-boot-omap3.git;a=summary 
> ('common' branch)
> 
> [2] http://www.codesourcery.com/gnu_toolchains/arm/portal/release313
> 
> Relevant parts of OMAP3 patch we talk about here (most probably 
> reformated cause of copy & paste to mailtool, so just for discussion. 
> Final patches will be sent by git-send-mail). Note the -lgcc_eh which 
> seems to be CodeSourcery specific, and the -march=armv7a in config.mk.
> 
> diff -uprN uboot_clean/Makefile uboot_beagle/Makefile
> --- uboot_clean/Makefile	2008-08-22 19:57:05.000000000 +0200
> +++ uboot_beagle/Makefile	2008-08-22 19:53:52.000000000 +0200
> @@ -141,7 +141,7 @@ ifeq ($(ARCH),ppc)
>   CROSS_COMPILE = ppc_8xx-
>   endif
>   ifeq ($(ARCH),arm)
> -CROSS_COMPILE = arm-linux-
> +CROSS_COMPILE = arm-none-linux-gnueabi-

please do not change it

you specify it at runtime

btw: you can use arm-elf- toolchains and others to compile u-boot so why do
you want to modify the default one?

>   endif
>   ifeq ($(ARCH),i386)
>   CROSS_COMPILE = i386-linux-
> @@ -253,7 +253,7 @@ LIBBOARD = board/$(BOARDDIR)/lib$(BOARD)
>   LIBBOARD := $(addprefix $(obj),$(LIBBOARD))
> 
>   # Add GCC lib
> -PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) 
> -print-libgcc-file-name`) -lgcc
> +PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) 
> -print-libgcc-file-name`) -lgcc -lgcc_eh
> 

please do it in a fix commit
>   # The "tools" are needed early, so put this first
>   # Don't include stuff already done in $(LIBS)
> @@ -2641,6 +2641,18 @@ SMN42_config	:	unconfig
>   	@$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
> 
>  
> #########################################################################
> +## ARM CORTEX Systems
> +#########################################################################
> +omap3_beagle_config :	unconfig
> +	@$(MKCONFIG) $(@:_config=) arm omap3 beagle omap3
> +
add it when you add each board (1 board => 1 patch)
> +omap3_overo_config :	unconfig
> +	@$(MKCONFIG) $(@:_config=) arm omap3 overo omap3
> +
> +omap3_evm_config :	unconfig
> +	@$(MKCONFIG) $(@:_config=) arm omap3 evm omap3
> +
> +#########################################################################
>   ## XScale Systems
>  
> #########################################################################
> 
> diff -uprN uboot_clean/cpu/omap3/config.mk 
> uboot_beagle/cpu/omap3/config.mk
> --- uboot_clean/cpu/omap3/config.mk	1970-01-01 01:00:00.000000000 +0100
> +++ uboot_beagle/cpu/omap3/config.mk	2008-08-22 19:52:20.000000000 +0200
> @@ -0,0 +1,34 @@
> +#
> +# (C) Copyright 2002
> +# Gary Jennejohn, DENX Software Engineering, <gj@denx.de>
> +#
> <cut GPL>
> +#
> +PLATFORM_RELFLAGS += -fno-strict-aliasing  -fno-common -ffixed-r8 \
> +	-msoft-float
> +
> +PLATFORM_CPPFLAGS += -march=armv7a

Do you really need armv7a march?

Could you explain why?

Best Regards,
J.

  parent reply	other threads:[~2008-08-27 22:38 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-23  6:39 [U-Boot] [RFC] ARM: Toolchain configuration for Cortex A8 based OMAP3? Dirk Behme
2008-08-23 14:16 ` Woodruff, Richard
2008-08-23 18:31   ` Dirk Behme
2008-08-23 19:42     ` ksi at koi8.net
2008-08-26 15:54     ` Scott Wood
2008-08-27 16:38 ` Dirk Behme
2008-08-27 19:56   ` Wolfgang Denk
2008-08-27 20:13     ` ksi at koi8.net
2008-08-27 22:38 ` Jean-Christophe PLAGNIOL-VILLARD [this message]
2008-08-28 14:00   ` Dirk Behme

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=20080827223853.GC13650@game.jcrosoft.org \
    --to=plagnioj@jcrosoft.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox