]> Git Repo - uclibc-ng.git/commitdiff
make arch default to hostarch
authorMike Frysinger <[email protected]>
Wed, 14 Feb 2007 08:25:26 +0000 (08:25 -0000)
committerMike Frysinger <[email protected]>
Wed, 14 Feb 2007 08:25:26 +0000 (08:25 -0000)
25 files changed:
Rules.mak
extra/Configs/Config.in
extra/Configs/defconfigs/alpha [new file with mode: 0644]
extra/Configs/defconfigs/arm [new file with mode: 0644]
extra/Configs/defconfigs/bfin [new file with mode: 0644]
extra/Configs/defconfigs/cris [new file with mode: 0644]
extra/Configs/defconfigs/e1 [new file with mode: 0644]
extra/Configs/defconfigs/frv [new file with mode: 0644]
extra/Configs/defconfigs/h8300 [new file with mode: 0644]
extra/Configs/defconfigs/hppa [new file with mode: 0644]
extra/Configs/defconfigs/i386 [new file with mode: 0644]
extra/Configs/defconfigs/i960 [new file with mode: 0644]
extra/Configs/defconfigs/ia64 [new file with mode: 0644]
extra/Configs/defconfigs/m68k [new file with mode: 0644]
extra/Configs/defconfigs/microblaze [new file with mode: 0644]
extra/Configs/defconfigs/mips [new file with mode: 0644]
extra/Configs/defconfigs/nios [new file with mode: 0644]
extra/Configs/defconfigs/nios2 [new file with mode: 0644]
extra/Configs/defconfigs/powerpc [new file with mode: 0644]
extra/Configs/defconfigs/sh [new file with mode: 0644]
extra/Configs/defconfigs/sh64 [new file with mode: 0644]
extra/Configs/defconfigs/sparc [new file with mode: 0644]
extra/Configs/defconfigs/v850 [new file with mode: 0644]
extra/Configs/defconfigs/vax [new file with mode: 0644]
extra/Configs/defconfigs/x86_64 [new file with mode: 0644]

index f1c46888f384a5b883d6cc15cd3d3b8a7b2ae6d7..c4b0e23afffda241e57cc9c69cf4bb38eb3abfa6 100644 (file)
--- a/Rules.mak
+++ b/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/ )
 
 
 #---------------------------------------------------------
index 869ffd09dd9a7e9f4c3b88295faba69831e56a17..327b62a11939d6c378e22e908e1d3074edef33e7 100644 (file)
@@ -7,7 +7,6 @@ mainmenu "uClibc C Library Configuration"
 
 choice
        prompt "Target Architecture"
-       default TARGET_i386
        help
          Stuff
 
diff --git a/extra/Configs/defconfigs/alpha b/extra/Configs/defconfigs/alpha
new file mode 100644 (file)
index 0000000..05243d7
--- /dev/null
@@ -0,0 +1 @@
+TARGET_alpha=y
diff --git a/extra/Configs/defconfigs/arm b/extra/Configs/defconfigs/arm
new file mode 100644 (file)
index 0000000..aa67890
--- /dev/null
@@ -0,0 +1 @@
+TARGET_arm=y
diff --git a/extra/Configs/defconfigs/bfin b/extra/Configs/defconfigs/bfin
new file mode 100644 (file)
index 0000000..fb5c5eb
--- /dev/null
@@ -0,0 +1 @@
+TARGET_bfin=y
diff --git a/extra/Configs/defconfigs/cris b/extra/Configs/defconfigs/cris
new file mode 100644 (file)
index 0000000..4e98180
--- /dev/null
@@ -0,0 +1 @@
+TARGET_cris=y
diff --git a/extra/Configs/defconfigs/e1 b/extra/Configs/defconfigs/e1
new file mode 100644 (file)
index 0000000..e204c87
--- /dev/null
@@ -0,0 +1 @@
+TARGET_e1=y
diff --git a/extra/Configs/defconfigs/frv b/extra/Configs/defconfigs/frv
new file mode 100644 (file)
index 0000000..8230316
--- /dev/null
@@ -0,0 +1 @@
+TARGET_frv=y
diff --git a/extra/Configs/defconfigs/h8300 b/extra/Configs/defconfigs/h8300
new file mode 100644 (file)
index 0000000..66c4a33
--- /dev/null
@@ -0,0 +1 @@
+TARGET_h8300=y
diff --git a/extra/Configs/defconfigs/hppa b/extra/Configs/defconfigs/hppa
new file mode 100644 (file)
index 0000000..6358dbd
--- /dev/null
@@ -0,0 +1 @@
+TARGET_hppa=y
diff --git a/extra/Configs/defconfigs/i386 b/extra/Configs/defconfigs/i386
new file mode 100644 (file)
index 0000000..7c35178
--- /dev/null
@@ -0,0 +1 @@
+TARGET_i386=y
diff --git a/extra/Configs/defconfigs/i960 b/extra/Configs/defconfigs/i960
new file mode 100644 (file)
index 0000000..5abe6dc
--- /dev/null
@@ -0,0 +1 @@
+TARGET_i960=y
diff --git a/extra/Configs/defconfigs/ia64 b/extra/Configs/defconfigs/ia64
new file mode 100644 (file)
index 0000000..7f26470
--- /dev/null
@@ -0,0 +1 @@
+TARGET_ia64=y
diff --git a/extra/Configs/defconfigs/m68k b/extra/Configs/defconfigs/m68k
new file mode 100644 (file)
index 0000000..da874a8
--- /dev/null
@@ -0,0 +1 @@
+TARGET_m68k=y
diff --git a/extra/Configs/defconfigs/microblaze b/extra/Configs/defconfigs/microblaze
new file mode 100644 (file)
index 0000000..4401200
--- /dev/null
@@ -0,0 +1 @@
+TARGET_microblaze=y
diff --git a/extra/Configs/defconfigs/mips b/extra/Configs/defconfigs/mips
new file mode 100644 (file)
index 0000000..0114a9b
--- /dev/null
@@ -0,0 +1 @@
+TARGET_mips=y
diff --git a/extra/Configs/defconfigs/nios b/extra/Configs/defconfigs/nios
new file mode 100644 (file)
index 0000000..2a110b8
--- /dev/null
@@ -0,0 +1 @@
+TARGET_nios=y
diff --git a/extra/Configs/defconfigs/nios2 b/extra/Configs/defconfigs/nios2
new file mode 100644 (file)
index 0000000..870bd53
--- /dev/null
@@ -0,0 +1 @@
+TARGET_nios2=y
diff --git a/extra/Configs/defconfigs/powerpc b/extra/Configs/defconfigs/powerpc
new file mode 100644 (file)
index 0000000..3868897
--- /dev/null
@@ -0,0 +1 @@
+TARGET_powerpc=y
diff --git a/extra/Configs/defconfigs/sh b/extra/Configs/defconfigs/sh
new file mode 100644 (file)
index 0000000..650d280
--- /dev/null
@@ -0,0 +1 @@
+TARGET_sh=y
diff --git a/extra/Configs/defconfigs/sh64 b/extra/Configs/defconfigs/sh64
new file mode 100644 (file)
index 0000000..4f23a54
--- /dev/null
@@ -0,0 +1 @@
+TARGET_sh64=y
diff --git a/extra/Configs/defconfigs/sparc b/extra/Configs/defconfigs/sparc
new file mode 100644 (file)
index 0000000..c2c74cb
--- /dev/null
@@ -0,0 +1 @@
+TARGET_sparc=y
diff --git a/extra/Configs/defconfigs/v850 b/extra/Configs/defconfigs/v850
new file mode 100644 (file)
index 0000000..046d5d4
--- /dev/null
@@ -0,0 +1 @@
+TARGET_v850=y
diff --git a/extra/Configs/defconfigs/vax b/extra/Configs/defconfigs/vax
new file mode 100644 (file)
index 0000000..77a464e
--- /dev/null
@@ -0,0 +1 @@
+TARGET_vax=y
diff --git a/extra/Configs/defconfigs/x86_64 b/extra/Configs/defconfigs/x86_64
new file mode 100644 (file)
index 0000000..e03a36a
--- /dev/null
@@ -0,0 +1 @@
+TARGET_x86_64=y
This page took 0.04649 seconds and 4 git commands to generate.