summaryrefslogtreecommitdiffstats
path: root/include/target.mk
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2016-07-14 15:41:22 +0200
committerFelix Fietkau <nbd@nbd.name>2016-07-15 14:14:37 +0200
commit11d496d1562084d4cdd5822d5ef8fc8c176233ea (patch)
treef8ba3683218a3db3d3b9b965c10bfe3f0ce5a8b2 /include/target.mk
parent8e2764ce9bb6716acb955a0c27d8db291d68650c (diff)
downloadopenwrt-11d496d1562084d4cdd5822d5ef8fc8c176233ea.tar.gz
openwrt-11d496d1562084d4cdd5822d5ef8fc8c176233ea.tar.bz2
openwrt-11d496d1562084d4cdd5822d5ef8fc8c176233ea.zip
target.mk: rework arm architecture level detection
Use kernel config as input instead of -march CFLAGS. With this change, -march can be dropped and replaced with more specific optimization flags for better code generation. Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'include/target.mk')
-rw-r--r--include/target.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/target.mk b/include/target.mk
index b5153ff69c..0a42411d17 100644
--- a/include/target.mk
+++ b/include/target.mk
@@ -259,7 +259,7 @@ ifeq ($(DUMP),1)
ifneq ($(CONFIG_RTC_CLASS),)
FEATURES += rtc
endif
- FEATURES += $(foreach v,v4 v5 v6 v7,$(if $(filter -march=arm$(v)%,$(CPU_CFLAGS_$(CPU_TYPE))),arm_$(v)))
+ FEATURES += $(foreach v,6 7,$(if $(CONFIG_CPU_V$(v)),arm_v$(v)))
# remove duplicates
FEATURES:=$(sort $(FEATURES))