Parcourir la source

make arch default to hostarch

Mike Frysinger il y a 18 ans
Parent
commit
e5bdbd0f71

+ 4 - 0
Rules.mak

@@ -47,6 +47,10 @@ STRIP_FLAGS ?= -x -R .note -R .comment
 # Select the compiler needed to build binaries for your development system
 HOSTCC     = gcc
 BUILD_CFLAGS = -O2 -Wall
+export ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \
+				  -e s/arm.*/arm/ -e s/sa110/arm/ \
+				  -e s/s390x/s390/ -e s/parisc64/parisc/ \
+				  -e s/ppc.*/powerpc/ -e s/mips.*/mips/ )
 
 
 #---------------------------------------------------------

+ 0 - 1
extra/Configs/Config.in

@@ -7,7 +7,6 @@ mainmenu "uClibc C Library Configuration"
 
 choice
 	prompt "Target Architecture"
-	default TARGET_i386
 	help
 	  Stuff
 

+ 1 - 0
extra/Configs/defconfigs/alpha

@@ -0,0 +1 @@
+TARGET_alpha=y

+ 1 - 0
extra/Configs/defconfigs/arm

@@ -0,0 +1 @@
+TARGET_arm=y

+ 1 - 0
extra/Configs/defconfigs/bfin

@@ -0,0 +1 @@
+TARGET_bfin=y

+ 1 - 0
extra/Configs/defconfigs/cris

@@ -0,0 +1 @@
+TARGET_cris=y

+ 1 - 0
extra/Configs/defconfigs/e1

@@ -0,0 +1 @@
+TARGET_e1=y

+ 1 - 0
extra/Configs/defconfigs/frv

@@ -0,0 +1 @@
+TARGET_frv=y

+ 1 - 0
extra/Configs/defconfigs/h8300

@@ -0,0 +1 @@
+TARGET_h8300=y

+ 1 - 0
extra/Configs/defconfigs/hppa

@@ -0,0 +1 @@
+TARGET_hppa=y

+ 1 - 0
extra/Configs/defconfigs/i386

@@ -0,0 +1 @@
+TARGET_i386=y

+ 1 - 0
extra/Configs/defconfigs/i960

@@ -0,0 +1 @@
+TARGET_i960=y

+ 1 - 0
extra/Configs/defconfigs/ia64

@@ -0,0 +1 @@
+TARGET_ia64=y

+ 1 - 0
extra/Configs/defconfigs/m68k

@@ -0,0 +1 @@
+TARGET_m68k=y

+ 1 - 0
extra/Configs/defconfigs/microblaze

@@ -0,0 +1 @@
+TARGET_microblaze=y

+ 1 - 0
extra/Configs/defconfigs/mips

@@ -0,0 +1 @@
+TARGET_mips=y

+ 1 - 0
extra/Configs/defconfigs/nios

@@ -0,0 +1 @@
+TARGET_nios=y

+ 1 - 0
extra/Configs/defconfigs/nios2

@@ -0,0 +1 @@
+TARGET_nios2=y

+ 1 - 0
extra/Configs/defconfigs/powerpc

@@ -0,0 +1 @@
+TARGET_powerpc=y

+ 1 - 0
extra/Configs/defconfigs/sh

@@ -0,0 +1 @@
+TARGET_sh=y

+ 1 - 0
extra/Configs/defconfigs/sh64

@@ -0,0 +1 @@
+TARGET_sh64=y

+ 1 - 0
extra/Configs/defconfigs/sparc

@@ -0,0 +1 @@
+TARGET_sparc=y

+ 1 - 0
extra/Configs/defconfigs/v850

@@ -0,0 +1 @@
+TARGET_v850=y

+ 1 - 0
extra/Configs/defconfigs/vax

@@ -0,0 +1 @@
+TARGET_vax=y

+ 1 - 0
extra/Configs/defconfigs/x86_64

@@ -0,0 +1 @@
+TARGET_x86_64=y