aboutsummaryrefslogtreecommitdiff
path: root/Makefile.target
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2009-07-16 17:57:07 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-07-16 17:28:54 -0500
commit0ba99fc6a188988f11361cb41eba7c1afce346d4 (patch)
tree8f5f54dbbe0b26d80f2f225d4adccc07ed310ffc /Makefile.target
parent3b47612b0b7290aadb6e7f1fb23c87d34bd38769 (diff)
configure already knows what TARGET_BASE_ARCH we need, no need to put the logic in Makefile.target
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'Makefile.target')
-rw-r--r--Makefile.target22
1 files changed, 2 insertions, 20 deletions
diff --git a/Makefile.target b/Makefile.target
index 3a3e1db0a3..9f550410a3 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -1,28 +1,10 @@
include config.mak
include $(SRC_PATH)/rules.mak
+ifndef TARGET_BASE_ARCH
TARGET_BASE_ARCH:=$(TARGET_ARCH)
-ifeq ($(TARGET_ARCH), x86_64)
-TARGET_BASE_ARCH:=i386
-endif
-ifeq ($(TARGET_ARCH), mipsn32)
-TARGET_BASE_ARCH:=mips
-endif
-ifeq ($(TARGET_ARCH), mips64)
-TARGET_BASE_ARCH:=mips
-endif
-ifeq ($(TARGET_ARCH), ppc64)
-TARGET_BASE_ARCH:=ppc
-endif
-ifeq ($(TARGET_ARCH), ppc64h)
-TARGET_BASE_ARCH:=ppc
-endif
-ifeq ($(TARGET_ARCH), ppcemb)
-TARGET_BASE_ARCH:=ppc
-endif
-ifeq ($(TARGET_ARCH), sparc64)
-TARGET_BASE_ARCH:=sparc
endif
+
TARGET_PATH=$(SRC_PATH)/target-$(TARGET_BASE_ARCH)
VPATH=$(SRC_PATH):$(TARGET_PATH):$(SRC_PATH)/hw
CPPFLAGS=-I. -I.. -I$(TARGET_PATH) -I$(SRC_PATH) -MMD -MT $@ -MP -DNEED_CPU_H