summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <abdoulaye.gaye@supmeca.fr>2009-09-18 18:05:58 +0200
committerAbdoulaye Walsimou Gaye <abdoulaye.gaye@supmeca.fr>2009-09-18 18:05:58 +0200
commit97d9b22ecdb283dc7bf70b9a53a837a0febf7b7f (patch)
treedf6bca996ac47c9c57b0592a811ee34d6f89efda
parent625b127fed7c0bb568305ab5d19a5d38ea3f735a (diff)
downloadembtoolkit-97d9b22ecdb283dc7bf70b9a53a837a0febf7b7f.tar.gz
embtoolkit-97d9b22ecdb283dc7bf70b9a53a837a0febf7b7f.tar.bz2
embtoolkit-97d9b22ecdb283dc7bf70b9a53a837a0febf7b7f.tar.xz
Toolchain: MIPS: check if uclibc is selected or eglibc
Signed-off-by: Abdoulaye Walsimou Gaye <abdoulaye.gaye@supmeca.fr>
-rw-r--r--mk/mips-arch.mk96
1 files changed, 96 insertions, 0 deletions
diff --git a/mk/mips-arch.mk b/mk/mips-arch.mk
index 85a0dba..4588a08 100644
--- a/mk/mips-arch.mk
+++ b/mk/mips-arch.mk
@@ -24,6 +24,9 @@
LINUX_ARCH := mips
+ifeq ($(CONFIG_EMBTK_CLIB_EGLIBC),y)
+#we use EGLIBC C library
+
ifeq ($(CONFIG_EMBTK_ARCH_MIPS_MIPS1_LITTLE),y)
GNU_TARGET := mipsel-linux
STRICT_GNU_TARGET := mipsel-unknown-linux-gnu
@@ -112,6 +115,99 @@ STRICT_GNU_TARGET := mips64r2-unknown-linux-gnu
GNU_TARGET_ARCH := mips64r2
endif
+else
+#We use uClibc C library
+
+ifeq ($(CONFIG_EMBTK_ARCH_MIPS_MIPS1_LITTLE),y)
+GNU_TARGET := mipsel-linux
+STRICT_GNU_TARGET := mipsel-unknown-linux-uclibc
+GNU_TARGET_ARCH := mips1
+endif
+ifeq ($(CONFIG_EMBTK_ARCH_MIPS_MIPS1_BIG),y)
+GNU_TARGET := mips-linux
+STRICT_GNU_TARGET := mips-unknown-linux-uclibc
+GNU_TARGET_ARCH := mips1
+endif
+
+ifeq ($(CONFIG_EMBTK_ARCH_MIPS_MIPS2_LITTLE),y)
+GNU_TARGET := mipsel-linux
+STRICT_GNU_TARGET := mipsel-unknown-linux-uclibc
+GNU_TARGET_ARCH := mips2
+endif
+ifeq ($(CONFIG_EMBTK_ARCH_MIPS_MIPS2_BIG),y)
+GNU_TARGET := mips-linux
+STRICT_GNU_TARGET := mips-unknown-linux-uclibc
+GNU_TARGET_ARCH := mips2
+endif
+
+ifeq ($(CONFIG_EMBTK_ARCH_MIPS_MIPS3_LITTLE),y)
+GNU_TARGET := mips64el-linux
+STRICT_GNU_TARGET := mips64el-unknown-linux-uclibc
+GNU_TARGET_ARCH := mips3
+endif
+ifeq ($(CONFIG_EMBTK_ARCH_MIPS_MIPS3_BIG),y)
+GNU_TARGET := mips64-linux
+STRICT_GNU_TARGET := mips64-unknown-linux-uclibc
+GNU_TARGET_ARCH := mips3
+endif
+
+ifeq ($(CONFIG_EMBTK_ARCH_MIPS_MIPS4_LITTLE),y)
+GNU_TARGET := mips64el-linux
+STRICT_GNU_TARGET := mips64el-unknown-linux-uclibc
+GNU_TARGET_ARCH := mips4
+endif
+ifeq ($(CONFIG_EMBTK_ARCH_MIPS_MIPS4_BIG),y)
+GNU_TARGET := mips64-linux
+STRICT_GNU_TARGET := mips64-unknown-linux-uclibc
+GNU_TARGET_ARCH := mips4
+endif
+
+ifeq ($(CONFIG_EMBTK_ARCH_MIPS_MIPS32_LITTLE),y)
+GNU_TARGET := mipsel-linux
+STRICT_GNU_TARGET := mips32el-unknown-linux-uclibc
+GNU_TARGET_ARCH := mips32
+endif
+ifeq ($(CONFIG_EMBTK_ARCH_MIPS_MIPS32_BIG),y)
+GNU_TARGET := mips-linux
+STRICT_GNU_TARGET := mips32-unknown-linux-uclibc
+GNU_TARGET_ARCH := mips32
+endif
+
+ifeq ($(CONFIG_EMBTK_ARCH_MIPS_MIPS32R2_LITTLE),y)
+GNU_TARGET := mipsel-linux
+STRICT_GNU_TARGET := mips32r2el-unknown-linux-uclibc
+GNU_TARGET_ARCH := mips32r2
+endif
+ifeq ($(CONFIG_EMBTK_ARCH_MIPS_MIPS32R2_BIG),y)
+GNU_TARGET := mips-linux
+STRICT_GNU_TARGET := mips32r2-unknown-linux-uclibc
+GNU_TARGET_ARCH := mips32r2
+endif
+
+ifeq ($(CONFIG_EMBTK_ARCH_MIPS_MIPS64_LITTLE),y)
+GNU_TARGET := mips64el-linux
+STRICT_GNU_TARGET := mips64el-unknown-linux-uclibc
+GNU_TARGET_ARCH := mips64
+endif
+ifeq ($(CONFIG_EMBTK_ARCH_MIPS_MIPS64_BIG),y)
+GNU_TARGET := mips64-linux
+STRICT_GNU_TARGET := mips64-unknown-linux-uclibc
+GNU_TARGET_ARCH := mips64
+endif
+
+ifeq ($(CONFIG_EMBTK_ARCH_MIPS_MIPS64R2_LITTLE),y)
+GNU_TARGET := mips64el-linux
+STRICT_GNU_TARGET := mips64r2el-unknown-linux-uclibc
+GNU_TARGET_ARCH := mips64r2
+endif
+ifeq ($(CONFIG_EMBTK_ARCH_MIPS_MIPS64R2_BIG),y)
+GNU_TARGET := mips64-linux
+STRICT_GNU_TARGET := mips64r2-unknown-linux-uclibc
+GNU_TARGET_ARCH := mips64r2
+endif
+
+endif
+
EMBTK_MCU_FLAG := $(GNU_TARGET_ARCH)
#GCC configure options