[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 09/26] TARGET_ARCH2 is already known at configure ti
From: |
quintela |
Subject: |
[Qemu-devel] [PATCH 09/26] TARGET_ARCH2 is already known at configure time. |
Date: |
Mon, 13 Jul 2009 17:53:48 +0200 |
From: Juan Quintela <address@hidden>
Remove re-construction in Makefile.target
Signed-off-by: Juan Quintela <address@hidden>
---
Makefile.target | 25 -------------------------
configure | 7 ++++++-
2 files changed, 6 insertions(+), 26 deletions(-)
diff --git a/Makefile.target b/Makefile.target
index 9f55041..54c3568 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -14,31 +14,6 @@ LIBS=
ifndef TARGET_ARCH2
TARGET_ARCH2=$(TARGET_ARCH)
endif
-ifeq ($(TARGET_ARCH),arm)
- ifeq ($(TARGET_WORDS_BIGENDIAN),yes)
- TARGET_ARCH2=armeb
- endif
-endif
-ifeq ($(TARGET_ARCH),sh4)
- ifeq ($(TARGET_WORDS_BIGENDIAN),yes)
- TARGET_ARCH2=sh4eb
- endif
-endif
-ifeq ($(TARGET_ARCH),mips)
- ifneq ($(TARGET_WORDS_BIGENDIAN),yes)
- TARGET_ARCH2=mipsel
- endif
-endif
-ifeq ($(TARGET_ARCH),mipsn32)
- ifneq ($(TARGET_WORDS_BIGENDIAN),yes)
- TARGET_ARCH2=mipsn32el
- endif
-endif
-ifeq ($(TARGET_ARCH),mips64)
- ifneq ($(TARGET_WORDS_BIGENDIAN),yes)
- TARGET_ARCH2=mips64el
- endif
-endif
ifdef CONFIG_USER_ONLY
# user emulator name
diff --git a/configure b/configure
index 02a5338..5beb64b 100755
--- a/configure
+++ b/configure
@@ -2025,6 +2025,7 @@ case "$target_arch2" in
;;
arm|armeb)
echo "TARGET_ARCH=arm" >> $config_mak
+ echo "TARGET_ARCH2=$target_arch2" >> $config_mak
echo "#define TARGET_ARCH \"arm\"" >> $config_h
echo "#define TARGET_ARM 1" >> $config_h
bflt="yes"
@@ -2057,6 +2058,7 @@ case "$target_arch2" in
;;
mips|mipsel)
echo "TARGET_ARCH=mips" >> $config_mak
+ echo "TARGET_ARCH2=$target_arch2" >> $config_mak
echo "#define TARGET_ARCH \"mips\"" >> $config_h
echo "#define TARGET_MIPS 1" >> $config_h
echo "#define TARGET_ABI_MIPSO32 1" >> $config_h
@@ -2065,6 +2067,7 @@ case "$target_arch2" in
;;
mipsn32|mipsn32el)
echo "TARGET_ARCH=mipsn32" >> $config_mak
+ echo "TARGET_ARCH2=$target_arch2" >> $config_mak
echo "TARGET_BASE_ARCH=mips" >> $config_mak
echo "#define TARGET_ARCH \"mipsn32\"" >> $config_h
echo "#define TARGET_MIPS 1" >> $config_h
@@ -2073,6 +2076,7 @@ case "$target_arch2" in
;;
mips64|mips64el)
echo "TARGET_ARCH=mips64" >> $config_mak
+ echo "TARGET_ARCH2=$target_arch2" >> $config_mak
echo "TARGET_BASE_ARCH=mips" >> $config_mak
echo "#define TARGET_ARCH \"mips64\"" >> $config_h
echo "#define TARGET_MIPS 1" >> $config_h
@@ -2126,6 +2130,7 @@ case "$target_arch2" in
;;
sh4|sh4eb)
echo "TARGET_ARCH=sh4" >> $config_mak
+ echo "TARGET_ARCH2=$target_arch2" >> $config_mak
echo "#define TARGET_ARCH \"sh4\"" >> $config_h
echo "#define TARGET_SH4 1" >> $config_h
bflt="yes"
@@ -2151,7 +2156,7 @@ case "$target_arch2" in
echo "TARGET_ARCH=sparc64" >> $config_mak
echo "TARGET_BASE_ARCH=sparc" >> $config_mak
echo "TARGET_ABI_DIR=sparc" >> $config_mak
- echo "TARGET_ARCH2=sparc32plus" >> $config_mak
+ echo "TARGET_ARCH2=$target_arch2" >> $config_mak
echo "#define TARGET_ARCH \"sparc64\"" >> $config_h
echo "#define TARGET_SPARC 1" >> $config_h
echo "#define TARGET_SPARC64 1" >> $config_h
--
1.6.2.5
- [Qemu-devel] [PATCH 02/26] fix sparc not solaris build, (continued)
- [Qemu-devel] [PATCH 02/26] fix sparc not solaris build, quintela, 2009/07/13
- [Qemu-devel] [PATCH 03/26] Remove duplicated definition, quintela, 2009/07/13
- [Qemu-devel] [PATCH 04/26] use block-nested-y for files inside block/, quintela, 2009/07/13
- [Qemu-devel] [PATCH 01/26] fix XEN Build, quintela, 2009/07/13
- [Qemu-devel] [PATCH 07/26] already defined several lines before in block-obj-y, quintela, 2009/07/13
- [Qemu-devel] [PATCH 08/26] configure already knows what TARGET_BASE_ARCH we need, no need to put the logic in Makefile.target, quintela, 2009/07/13
- [Qemu-devel] [PATCH 06/26] Remove unused Makefile variable, quintela, 2009/07/13
- [Qemu-devel] [PATCH 05/26] use nwfpe-obj-y for consistence, quintela, 2009/07/13
- [Qemu-devel] [PATCH 10/26] change ifdefs by obj-$(TARGET_BASE_ARCH), quintela, 2009/07/13
- [Qemu-devel] [PATCH 13/26] configure kqemu in a single place, quintela, 2009/07/13
- [Qemu-devel] [PATCH 09/26] TARGET_ARCH2 is already known at configure time.,
quintela <=
- [Qemu-devel] [PATCH 11/26] configure xen in a single place, quintela, 2009/07/13
- [Qemu-devel] [PATCH 14/26] BASE_LDFLAGS is not used anywhere else, quintela, 2009/07/13
- [Qemu-devel] [PATCH 15/26] TARGET_ARCH == TARGET_BASE_ARCH in m68k and arm, quintela, 2009/07/13
- [Qemu-devel] [PATCH 12/26] configure kvm in a single place, quintela, 2009/07/13
- [Qemu-devel] [PATCH 16/26] Refactor a single rule to generate all qemu-* executables, quintela, 2009/07/13
- [Qemu-devel] [PATCH 17/26] qemu binary don't exist anymore. I guess not much people is compiling on alpha, quintela, 2009/07/13
- [Qemu-devel] [PATCH 18/26] We can wrap OS_CFLAGS/OS_LDFLAGS in CFLAGS/LDFLAGS at configure time, quintela, 2009/07/13
- [Qemu-devel] [PATCH 19/26] We can wrap ARCH_CFLAGS/ARCH_LDFLAGS in CFLAGS/LDFLAGS at configure time, quintela, 2009/07/13
- [Qemu-devel] [PATCH 20/26] generate ARCH name instead of coding it, quintela, 2009/07/13
- [Qemu-devel] [PATCH 21/26] Refactor common code using a list, quintela, 2009/07/13