summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwbx <wbx@openadk.org>2011-04-13 09:52:52 +0200
committerwbx <wbx@openadk.org>2011-04-13 09:52:52 +0200
commitb5a0fff870a44d83222e71331cac269f021652a3 (patch)
tree3babb619b1c61ca200c8c06801e323793a576793
parent933e74c07231e815bbfd9ed90073308eaf253a00 (diff)
use the right TARGET_CFLAGS
-rw-r--r--target/config/Config.in2
-rw-r--r--target/mips64el/sys-available/lemote-yeelong1
-rw-r--r--target/mips64el/sys-available/qemu-mips64el1
-rw-r--r--target/mips64el/sys-available/toolchain-mips64el1
-rw-r--r--target/mips64el/target.mk2
5 files changed, 6 insertions, 1 deletions
diff --git a/target/config/Config.in b/target/config/Config.in
index 33ae6f44f..265e339e8 100644
--- a/target/config/Config.in
+++ b/target/config/Config.in
@@ -176,6 +176,8 @@ config ADK_TARGET_CFLAGS
default "-mcpu=v8" if ADK_CPU_SPARC_V8
default "-m64 -mcpu=v9" if ADK_CPU_SPARC_V9
default "-march=loongson2f" if ADK_CPU_LOONGSON2F
+ default "-march=mips32" if ADK_CPU_MIPS32
+ default "-march=mips64" if ADK_CPU_MIPS64
default "-march=armv5te -mtune=arm926ej-s" if ADK_CPU_ARMV5
config ADK_TARGET_CMDLINE
diff --git a/target/mips64el/sys-available/lemote-yeelong b/target/mips64el/sys-available/lemote-yeelong
index 6eedb9ebc..f868d3913 100644
--- a/target/mips64el/sys-available/lemote-yeelong
+++ b/target/mips64el/sys-available/lemote-yeelong
@@ -3,6 +3,7 @@ config ADK_TARGET_SYSTEM_LEMOTE_YEELONG
select ADK_mips64el
select ADK_lemote_yeelong
select ADK_LINUX_64
+ select ADK_CPU_LOONGSON2F
select ADK_KERNEL_MACH_LOONGSON
select ADK_KERNEL_LEMOTE_MACH2F
select ADK_TARGET_WITH_USB_BOOT
diff --git a/target/mips64el/sys-available/qemu-mips64el b/target/mips64el/sys-available/qemu-mips64el
index 47818f392..bdc8ba76d 100644
--- a/target/mips64el/sys-available/qemu-mips64el
+++ b/target/mips64el/sys-available/qemu-mips64el
@@ -2,6 +2,7 @@ config ADK_TARGET_SYSTEM_QEMU_MIPS64EL
bool "Qemu Emulator"
select ADK_mips64el
select ADK_qemu_mips64el
+ select ADK_CPU_MIPS64
select ADK_LINUX_64
select ADK_KERNEL_MIPS_MALTA
select ADK_HARDWARE_QEMU
diff --git a/target/mips64el/sys-available/toolchain-mips64el b/target/mips64el/sys-available/toolchain-mips64el
index a403df0cd..c64972736 100644
--- a/target/mips64el/sys-available/toolchain-mips64el
+++ b/target/mips64el/sys-available/toolchain-mips64el
@@ -2,6 +2,7 @@ config ADK_TARGET_SYSTEM_TOOLCHAIN_MIPS64EL
bool "Toolchain only"
select ADK_mips64el
select ADK_toolchain_mips64el
+ select ADK_CPU_MIPS64
select ADK_TOOLCHAIN_ONLY
select ADK_LINUX_64
help
diff --git a/target/mips64el/target.mk b/target/mips64el/target.mk
index 2057c77fb..b45a49460 100644
--- a/target/mips64el/target.mk
+++ b/target/mips64el/target.mk
@@ -2,4 +2,4 @@ include $(TOPDIR)/mk/kernel-ver.mk
ARCH:= mips
CPU_ARCH:= mips64el
TARGET_OPTIMIZATION:= -Os -pipe
-TARGET_CFLAGS_ARCH:= -march=mips64 -mabi=64
+TARGET_CFLAGS_ARCH:= $(ADK_TARGET_CFLAGS) -mabi=64