build: add config symbols for different ARM arch levels
authorFelix Fietkau <nbd@openwrt.org>
Mon, 13 May 2013 15:04:58 +0000 (15:04 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 13 May 2013 15:04:58 +0000 (15:04 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 36620

include/target.mk
scripts/metadata.pl
target/Config.in

index 107558218e7f0fc025dc2d6679e385b51294d2da..6774076f919601ce618734efccdad26e30e24072 100644 (file)
@@ -186,6 +186,7 @@ ifeq ($(DUMP),1)
     ifneq ($(CONFIG_RTC_CLASS),)
       FEATURES += rtc
     endif
+    FEATURES += $(foreach v,v4 v5 v6 v7,$(if $(findstring -march=arm$(v),$(CFLAGS)),arm_$(v)))
 
     # remove duplicates
     FEATURES:=$(sort $(FEATURES))
index b0abd78a0c415b935b293ec763210bafc55bffee..13abcb29370c1df205cbedb7c6bc93c63032f169 100755 (executable)
@@ -153,6 +153,7 @@ sub target_config_features(@) {
        my $ret;
 
        while ($_ = shift @_) {
+               /arm_v(\w+)/ and $ret .= "\tselect arm_v$1\n";
                /broken/ and $ret .= "\tdepends on BROKEN\n";
                /audio/ and $ret .= "\tselect AUDIO_SUPPORT\n";
                /display/ and $ret .= "\tselect DISPLAY_SUPPORT\n";
index 967149d435b75cd6cf2f0e59b073e8a2f6647b3a..947e80ca4a511d9bf9e62f951c9e423fec646ac0 100644 (file)
@@ -82,6 +82,18 @@ config armeb
        select BIG_ENDIAN
        bool
 
+config arm_v4
+       bool
+
+config arm_v5
+       bool
+
+config arm_v6
+       bool
+
+config arm_v7
+       bool
+
 config avr32
        select BIG_ENDIAN
        bool