diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-09-26 17:53:14 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-09-26 17:53:14 +0000 |
commit | a30681dff0c896464ebb3de81fcc737c114a6194 (patch) | |
tree | 90b2865f5a9295f8f3f1a43df46e26c4ca920285 /include/target.mk | |
parent | 569da024f0f37b2477f8d1499fb4860a7b4a9cd5 (diff) | |
download | mtk-20170518-a30681dff0c896464ebb3de81fcc737c114a6194.zip mtk-20170518-a30681dff0c896464ebb3de81fcc737c114a6194.tar.gz mtk-20170518-a30681dff0c896464ebb3de81fcc737c114a6194.tar.bz2 |
build: unify mips target cflags
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 38210
Diffstat (limited to 'include/target.mk')
-rw-r--r-- | include/target.mk | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/target.mk b/include/target.mk index 685013c..f9f378a 100644 --- a/include/target.mk +++ b/include/target.mk @@ -204,7 +204,12 @@ ifeq ($(DUMP),1) endif CPU_CFLAGS += -mno-branch-likely CPU_CFLAGS_mips32 = -mips32 -mtune=mips32 + CPU_CFLAGS_mips32r2 = -mips32r2 -mtune=mips32r2 CPU_CFLAGS_mips64 = -mips64 -mtune=mips64 -mabi=64 + CPU_CFLAGS_24kec = -mips32r2 -mtune=24kec + CPU_CFLAGS_34kc = -mips32r2 -mtune=34kc + CPU_CFLAGS_dsp = -mdsp + CPU_CFLAGS_dsp2 = -mdspr2 endif ifeq ($(ARCH),i386) CPU_TYPE ?= i486 @@ -218,7 +223,7 @@ ifeq ($(DUMP),1) CPU_TYPE = sparc CPU_CFLAGS_ultrasparc = -mcpu=ultrasparc endif - DEFAULT_CFLAGS=$(CPU_CFLAGS) $(CPU_CFLAGS_$(CPU_TYPE)) + DEFAULT_CFLAGS=$(strip $(CPU_CFLAGS) $(CPU_CFLAGS_$(CPU_TYPE)) $(CPU_CFLAGS_$(CPU_SUBTYPE))) endif define BuildTargets/DumpCurrent |