svn commit: trunk/uClibc: extra/Configs test

andersen at uclibc.org andersen at uclibc.org
Sat Nov 4 20:17:03 UTC 2006


Author: andersen
Date: 2006-11-04 12:17:03 -0800 (Sat, 04 Nov 2006)
New Revision: 16507

Log:
mips64 patch from Atsushi Nemoto:
Add selection of 3 ABI.
CPU_CFLAGS is needed to generate correct sysnum.h.
Fix test/Rules.mak.


Modified:
   trunk/uClibc/Makefile.in
   trunk/uClibc/Rules.mak
   trunk/uClibc/extra/Configs/Config.mips
   trunk/uClibc/test/Rules.mak


Changeset:
Modified: trunk/uClibc/Makefile.in
===================================================================
--- trunk/uClibc/Makefile.in	2006-11-04 20:14:10 UTC (rev 16506)
+++ trunk/uClibc/Makefile.in	2006-11-04 20:17:03 UTC (rev 16507)
@@ -94,7 +94,7 @@
 	cd $(top_builddir); \
 	tmp=`mktemp include/bits/sysnum.h.XXXXXX 2>/dev/null`; \
 	[ -z "$$tmp" ] && tmp='include/bits/sysnum.h.new'; \
-	top_builddir=. CC="$(CC)" $(SHELL) extra/scripts/gen_bits_syscall_h.sh > $$tmp; \
+	top_builddir=. CC="$(CC) $(CPU_CFLAGS)" $(SHELL) extra/scripts/gen_bits_syscall_h.sh > $$tmp; \
 	if cmp include/bits/sysnum.h $$tmp >/dev/null 2>&1; then \
 		$(RM) $$tmp; \
 	else \

Modified: trunk/uClibc/Rules.mak
===================================================================
--- trunk/uClibc/Rules.mak	2006-11-04 20:14:10 UTC (rev 16506)
+++ trunk/uClibc/Rules.mak	2006-11-04 20:17:03 UTC (rev 16507)
@@ -207,6 +207,17 @@
 	CPU_CFLAGS-$(CONFIG_MIPS_ISA_4)+=-mips4 -mtune=mips4
 	CPU_CFLAGS-$(CONFIG_MIPS_ISA_MIPS32)+=-mips32 -mtune=mips32
 	CPU_CFLAGS-$(CONFIG_MIPS_ISA_MIPS64)+=-mips64 -mtune=mips32
+	ifeq ($(strip $(ARCH_BIG_ENDIAN)),y)
+		CPU_LDFLAGS-$(CONFIG_MIPS_N64_ABI)+=-melf64btsmip
+		CPU_LDFLAGS-$(CONFIG_MIPS_O32_ABI)+=-melf32btsmip
+	endif
+	ifeq ($(strip $(ARCH_LITTLE_ENDIAN)),y)
+		CPU_LDFLAGS-$(CONFIG_MIPS_N64_ABI)+=-melf64ltsmip
+		CPU_LDFLAGS-$(CONFIG_MIPS_O32_ABI)+=-melf32ltsmip
+	endif
+	CPU_CFLAGS-$(CONFIG_MIPS_N64_ABI)+=-mabi=64
+	CPU_CFLAGS-$(CONFIG_MIPS_O32_ABI)+=-mabi=32
+	CPU_CFLAGS-$(CONFIG_MIPS_N32_ABI)+=-mabi=n32
 endif
 
 ifeq ($(TARGET_ARCH),nios)

Modified: trunk/uClibc/extra/Configs/Config.mips
===================================================================
--- trunk/uClibc/extra/Configs/Config.mips	2006-11-04 20:14:10 UTC (rev 16506)
+++ trunk/uClibc/extra/Configs/Config.mips	2006-11-04 20:17:03 UTC (rev 16507)
@@ -54,3 +54,21 @@
 	bool "MIPS64"
 
 endchoice
+
+choice
+	prompt "Target ABI"
+	default CONFIG_MIPS_O32_ABI
+	help
+	  This is the ABI you wish to build use.  Choose either O32, N32
+	  or N64.
+
+config CONFIG_MIPS_O32_ABI
+	bool "O32 ABI"
+
+config CONFIG_MIPS_N64_ABI
+	bool "N64 ABI"
+
+config CONFIG_MIPS_N32_ABI
+	bool "N32 ABI"
+
+endchoice

Modified: trunk/uClibc/test/Rules.mak
===================================================================
--- trunk/uClibc/test/Rules.mak	2006-11-04 20:14:10 UTC (rev 16506)
+++ trunk/uClibc/test/Rules.mak	2006-11-04 20:17:03 UTC (rev 16507)
@@ -30,8 +30,7 @@
 	-e 's/ppc/powerpc/g' \
 	-e 's/v850.*/v850/g' \
 	-e 's/sh[234]/sh/' \
-	-e 's/mips-.*/mips/' \
-	-e 's/mipsel-.*/mipsel/' \
+	-e 's/mips.*/mips/' \
 	-e 's/cris.*/cris/' \
 	)
 endif




More information about the uClibc-cvs mailing list