summaryrefslogtreecommitdiff
path: root/mk/mips-arch.mk
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <walsimou@walsimou.com>2009-05-24 22:37:15 +0200
committerAbdoulaye Walsimou Gaye <walsimou@walsimou.com>2009-05-24 22:37:15 +0200
commitb269b0df24db0ef421ecd8f6e97e66db49496450 (patch)
treee9bae4409bd09ee084500f4d66fec2d5b97a022c /mk/mips-arch.mk
parent173557a0f10b0442a72e9ed9fc75d6bf9a61443c (diff)
downloadembtoolkit-b269b0df24db0ef421ecd8f6e97e66db49496450.tar.gz
embtoolkit-b269b0df24db0ef421ecd8f6e97e66db49496450.tar.bz2
embtoolkit-b269b0df24db0ef421ecd8f6e97e66db49496450.tar.xz
Toolchain: MIPS arch: make EMBTK_TARGET_ARCH to depend on ABI selected
Signed-off-by: Abdoulaye Walsimou Gaye <walsimou@walsimou.com>
Diffstat (limited to 'mk/mips-arch.mk')
-rw-r--r--mk/mips-arch.mk31
1 files changed, 10 insertions, 21 deletions
diff --git a/mk/mips-arch.mk b/mk/mips-arch.mk
index aebd6f2..74ad4e4 100644
--- a/mk/mips-arch.mk
+++ b/mk/mips-arch.mk
@@ -29,104 +29,88 @@ ifeq ($(CONFIG_EMBTK_ARCH_MIPS_MIPS1_LITTLE),y)
GNU_TARGET := mipsel-linux
STRICT_GNU_TARGET := mipsel-unknown-linux-gnu
GNU_TARGET_ARCH := mips1
-EMBTK_TARGET_ARCH := 32
endif
ifeq ($(CONFIG_EMBTK_ARCH_MIPS_MIPS1_BIG),y)
GNU_TARGET := mips-linux
STRICT_GNU_TARGET := mips-unknown-linux-gnu
GNU_TARGET_ARCH := mips1
-EMBTK_TARGET_ARCH := 32
endif
ifeq ($(CONFIG_EMBTK_ARCH_MIPS_MIPS2_LITTLE),y)
GNU_TARGET := mipsel-linux
STRICT_GNU_TARGET := mipsel-unknown-linux-gnu
GNU_TARGET_ARCH := mips2
-EMBTK_TARGET_ARCH := 32
endif
ifeq ($(CONFIG_EMBTK_ARCH_MIPS_MIPS2_BIG),y)
GNU_TARGET := mips-linux
STRICT_GNU_TARGET := mips-unknown-linux-gnu
GNU_TARGET_ARCH := mips2
-EMBTK_TARGET_ARCH := 32
endif
ifeq ($(CONFIG_EMBTK_ARCH_MIPS_MIPS3_LITTLE),y)
GNU_TARGET := mips64el-linux
STRICT_GNU_TARGET := mips64el-unknown-linux-gnu
GNU_TARGET_ARCH := mips3
-EMBTK_TARGET_ARCH := 64
endif
ifeq ($(CONFIG_EMBTK_ARCH_MIPS_MIPS3_BIG),y)
GNU_TARGET := mips64-linux
STRICT_GNU_TARGET := mips64-unknown-linux-gnu
GNU_TARGET_ARCH := mips3
-EMBTK_TARGET_ARCH := 64
endif
ifeq ($(CONFIG_EMBTK_ARCH_MIPS_MIPS4_LITTLE),y)
GNU_TARGET := mips64el-linux
STRICT_GNU_TARGET := mips64el-unknown-linux-gnu
GNU_TARGET_ARCH := mips4
-EMBTK_TARGET_ARCH := 64
endif
ifeq ($(CONFIG_EMBTK_ARCH_MIPS_MIPS4_BIG),y)
GNU_TARGET := mips64-linux
STRICT_GNU_TARGET := mips64-unknown-linux-gnu
GNU_TARGET_ARCH := mips4
-EMBTK_TARGET_ARCH := 64
endif
ifeq ($(CONFIG_EMBTK_ARCH_MIPS_MIPS32_LITTLE),y)
GNU_TARGET := mipsel-linux
STRICT_GNU_TARGET := mipsisa32el-unknown-linux-gnu
GNU_TARGET_ARCH := mips32
-EMBTK_TARGET_ARCH := 32
endif
ifeq ($(CONFIG_EMBTK_ARCH_MIPS_MIPS32_BIG),y)
GNU_TARGET := mips-linux
STRICT_GNU_TARGET := mipsisa32-unknown-linux-gnu
GNU_TARGET_ARCH := mips32
-EMBTK_TARGET_ARCH := 32
endif
ifeq ($(CONFIG_EMBTK_ARCH_MIPS_MIPS32R2_LITTLE),y)
GNU_TARGET := mipsel-linux
STRICT_GNU_TARGET := mipsisa32r2el-unknown-linux-gnu
GNU_TARGET_ARCH := mips32r2
-EMBTK_TARGET_ARCH := 32
endif
ifeq ($(CONFIG_EMBTK_ARCH_MIPS_MIPS32R2_BIG),y)
GNU_TARGET := mips-linux
STRICT_GNU_TARGET := mipsisa32r2-unknown-linux-gnu
GNU_TARGET_ARCH := mips32r2
-EMBTK_TARGET_ARCH := 32
endif
ifeq ($(CONFIG_EMBTK_ARCH_MIPS_MIPS64_LITTLE),y)
GNU_TARGET := mips64el-linux
STRICT_GNU_TARGET := mipsisa64el-unknown-linux-gnu
GNU_TARGET_ARCH := mips64
-EMBTK_TARGET_ARCH := 64
endif
ifeq ($(CONFIG_EMBTK_ARCH_MIPS_MIPS64_BIG),y)
GNU_TARGET := mips64-linux
STRICT_GNU_TARGET := mipsisa64-unknown-linux-gnu
GNU_TARGET_ARCH := mips64
-EMBTK_TARGET_ARCH := 64
endif
ifeq ($(CONFIG_EMBTK_ARCH_MIPS_MIPS64R2_LITTLE),y)
GNU_TARGET := mips64el-linux
STRICT_GNU_TARGET := mipsisa64r2el-unknown-linux-gnu
GNU_TARGET_ARCH := mips64r2
-EMBTK_TARGET_ARCH := 64
endif
ifeq ($(CONFIG_EMBTK_ARCH_MIPS_MIPS64R2_BIG),y)
GNU_TARGET := mips64-linux
STRICT_GNU_TARGET := mipsisa64r2-unknown-linux-gnu
GNU_TARGET_ARCH := mips64r2
-EMBTK_TARGET_ARCH := 64
endif
endif
@@ -136,26 +120,31 @@ endif
ifeq ($(CONFIG_EMBTK_ARCH_MIPS_ABI_O32),y)
GCC_WITH_ABI := --with-abi=32
EMBTK_TARGET_ABI := -mabi=32
-export GCC_WITH_ABI EMBTK_TARGET_ABI
+EMBTK_TARGET_ARCH := 32
+export GCC_WITH_ABI EMBTK_TARGET_ABI EMBTK_TARGET_ARCH
else ifeq ($(CONFIG_EMBTK_ARCH_MIPS_ABI_N32),y)
GCC_WITH_ABI := --with-abi=n32
EMBTK_TARGET_ABI := -mabi=n32
-export GCC_WITH_ABI EMBTK_TARGET_ABI
+EMBTK_TARGET_ARCH := 32
+export GCC_WITH_ABI EMBTK_TARGET_ABI EMBTK_TARGET_ARCH
else ifeq ($(CONFIG_EMBTK_ARCH_MIPS_ABI_EABI),y)
GCC_WITH_ABI := --with-abi=eabi
EMBTK_TARGET_ABI := -mabi=eabi
-export GCC_WITH_ABI EMBTK_TARGET_ABI
+EMBTK_TARGET_ARCH := 32
+export GCC_WITH_ABI EMBTK_TARGET_ABI EMBTK_TARGET_ARCH
else ifeq ($(CONFIG_EMBTK_ARCH_MIPS_ABI_O64),y)
GCC_WITH_ABI := --with-abi=o64
EMBTK_TARGET_ABI := -mabi=o64
-export GCC_WITH_ABI EMBTK_TARGET_ABI
+EMBTK_TARGET_ARCH := 64
+export GCC_WITH_ABI EMBTK_TARGET_ABI EMBTK_TARGET_ARCH
else
GCC_WITH_ABI := --with-abi=64
EMBTK_TARGET_ABI := -mabi=64
-export GCC_WITH_ABI EMBTK_TARGET_ABI
+EMBTK_TARGET_ARCH := 64
+export GCC_WITH_ABI EMBTK_TARGET_ABI EMBTK_TARGET_ARCH
endif