diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-05-13 15:04:58 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-05-13 15:04:58 +0000 |
commit | b3ab992d6619fc5d6bedc2df96657c1131bb72f8 (patch) | |
tree | 8c5866618a191eb6b54f96521e04c311f3418d8a | |
parent | c3152edcbd0ed7ed66c8f52c48f055c37203b60b (diff) | |
download | master-187ad058-b3ab992d6619fc5d6bedc2df96657c1131bb72f8.tar.gz master-187ad058-b3ab992d6619fc5d6bedc2df96657c1131bb72f8.tar.bz2 master-187ad058-b3ab992d6619fc5d6bedc2df96657c1131bb72f8.zip |
build: add config symbols for different ARM arch levels
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36620 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | include/target.mk | 1 | ||||
-rwxr-xr-x | scripts/metadata.pl | 1 | ||||
-rw-r--r-- | target/Config.in | 12 |
3 files changed, 14 insertions, 0 deletions
diff --git a/include/target.mk b/include/target.mk index 107558218e..6774076f91 100644 --- a/include/target.mk +++ b/include/target.mk @@ -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)) diff --git a/scripts/metadata.pl b/scripts/metadata.pl index b0abd78a0c..13abcb2937 100755 --- a/scripts/metadata.pl +++ b/scripts/metadata.pl @@ -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"; diff --git a/target/Config.in b/target/Config.in index 967149d435..947e80ca4a 100644 --- a/target/Config.in +++ b/target/Config.in @@ -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 |