All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot-Users] [PATCH] (ARM-specific) Allow use of arm-linux-gcc built with NWFPE emulation to compile U-Boot
@ 2007-03-26 21:49 Ulf Samuelsson
  2007-04-02 15:27 ` Peter Pearse
  0 siblings, 1 reply; 2+ messages in thread
From: Ulf Samuelsson @ 2007-03-26 21:49 UTC (permalink / raw)
  To: u-boot

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 

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

* [U-Boot-Users] [PATCH] (ARM-specific) Allow use of arm-linux-gcc built with NWFPE emulation to compile U-Boot
  2007-03-26 21:49 [U-Boot-Users] [PATCH] (ARM-specific) Allow use of arm-linux-gcc built with NWFPE emulation to compile U-Boot Ulf Samuelsson
@ 2007-04-02 15:27 ` Peter Pearse
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Pearse @ 2007-04-02 15:27 UTC (permalink / raw)
  To: u-boot

 

> -----Original Message-----
> From: u-boot-users-bounces at lists.sourceforge.net 
> [mailto:u-boot-users-bounces at lists.sourceforge.net] On Behalf 
> Of Ulf Samuelsson
> Sent: 26 March 2007 22:50
> To: uboot
> Subject: [U-Boot-Users] [PATCH] (ARM-specific) Allow use of 
> arm-linux-gcc built with NWFPE emulation to compile U-Boot
> 
> 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.

Ulf

	Thanks for your patch. It will be useful for others, with the same
problem, to see your post. 

However, I shall not be submitting it for inclusion in the main U-Boot tree.

The compiler warning indicates a toolchain problem, rather than a problem in
the U-Boot code.

The latest ELDK arm-linux-gcc does not exhibit this behaviour.


	Since U-Boot contains no floating point code, I intend to remove
this option from all 

ARM board builds, as soon as possible. 

"
<---- snip ----->
.....I consider the use of FP code in U-Boot a bug.
<---- snip ----->
WD 2007-03-26"

I would be interested to hear from users of other architectures 

why this flag is required for their builds..... 

Regards

Peter Pearse

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

end of thread, other threads:[~2007-04-02 15:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-26 21:49 [U-Boot-Users] [PATCH] (ARM-specific) Allow use of arm-linux-gcc built with NWFPE emulation to compile U-Boot Ulf Samuelsson
2007-04-02 15:27 ` Peter Pearse

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.