From: Ulf Samuelsson <ulf@atmel.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] (ARM-specific) Allow use of arm-linux-gcc built with NWFPE emulation to compile U-Boot
Date: Mon, 26 Mar 2007 23:49:48 +0200 [thread overview]
Message-ID: <46083FFC.50304@atmel.com> (raw)
Author: Ulf Samuelsson
Date: 2007-03-27
Description:
Change "-msoftfloat" to $(SOFTFLOAT) for
arm920t
arm926ejs
This allows an arm toolchain using floating point emulation
for these cores to build u-boot.
When -msoftfloat is present as a flag to arm-linux-gcc,
the build fails.
The default operation is to keep -msoftfloat but if
CONFIG_NOSOFTFLOAT is defined as an environment variable
in the shell, the -msoftfloat is removed during the build
Example:
$ export CONFIG_NOSOFTFLOAT=y
$ make <board>_config
$ make
Signed-off-by: Ulf Samuelsson
diff -urN u-boot-2007-03-26/config.mk u-boot-2007-03-26-atmel/config.mk
--- u-boot-2007-03-26/config.mk 2007-03-26 22:52:54.000000000 +0200
+++ u-boot-2007-03-26-atmel/config.mk 2007-03-26 22:54:03.000000000 +0200
@@ -73,6 +73,12 @@
PLATFORM_CPPFLAGS+= -D__BLACKFIN__
endif
+ifeq ($(CONFIG_NOSOFTFLOAT),)
+SOFTFLOAT = -msoft-float
+else
+SOFTFLOAT =
+endif
+
ifdef ARCH
sinclude $(TOPDIR)/$(ARCH)_config.mk # include architecture dependend rules
endif
diff -urN u-boot-2007-03-26/cpu/arm920t/config.mk
u-boot-2007-03-26-atmel/cpu/arm920t/config.mk
--- u-boot-2007-03-26/cpu/arm920t/config.mk 2007-03-26
22:52:54.000000000 +0200
+++ u-boot-2007-03-26-atmel/cpu/arm920t/config.mk 2007-03-26
22:54:03.000000000 +0200
@@ -22,7 +22,7 @@
#
PLATFORM_RELFLAGS += -fno-strict-aliasing -fno-common -ffixed-r8 \
- -msoft-float
+ $(SOFTFLOAT)
PLATFORM_CPPFLAGS += -march=armv4
# =========================================================================
diff -urN u-boot-2007-03-26/cpu/arm926ejs/config.mk
u-boot-2007-03-26-atmel/cpu/arm926ejs/config.mk
--- u-boot-2007-03-26/cpu/arm926ejs/config.mk 2007-03-26
22:52:54.000000000 +0200
+++ u-boot-2007-03-26-atmel/cpu/arm926ejs/config.mk 2007-03-26
22:54:03.000000000 +0200
@@ -22,7 +22,7 @@
#
PLATFORM_RELFLAGS += -fno-strict-aliasing -fno-common -ffixed-r8 \
- -msoft-float
+ $(SOFTFLOAT)
PLATFORM_CPPFLAGS += -march=armv4
# =========================================================================
--
Best Regards,
Ulf Samuelsson
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ulf.vcf
Type: text/x-vcard
Size: 301 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20070326/c9dd13c9/attachment.vcf
next reply other threads:[~2007-03-26 21:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-26 21:49 Ulf Samuelsson [this message]
2007-04-02 15:27 ` [U-Boot-Users] [PATCH] (ARM-specific) Allow use of arm-linux-gcc built with NWFPE emulation to compile U-Boot Peter Pearse
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=46083FFC.50304@atmel.com \
--to=ulf@atmel.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 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.