build: add config symbols for different ARM arch levels

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 36620
master
Felix Fietkau 12 years ago
parent 526aedb705
commit eea89fea6a
  1. 1
      include/target.mk
  2. 1
      scripts/metadata.pl
  3. 12
      target/Config.in

@ -186,6 +186,7 @@ ifeq ($(DUMP),1)
ifneq ($(CONFIG_RTC_CLASS),) ifneq ($(CONFIG_RTC_CLASS),)
FEATURES += rtc FEATURES += rtc
endif endif
FEATURES += $(foreach v,v4 v5 v6 v7,$(if $(findstring -march=arm$(v),$(CFLAGS)),arm_$(v)))
# remove duplicates # remove duplicates
FEATURES:=$(sort $(FEATURES)) FEATURES:=$(sort $(FEATURES))

@ -153,6 +153,7 @@ sub target_config_features(@) {
my $ret; my $ret;
while ($_ = shift @_) { while ($_ = shift @_) {
/arm_v(\w+)/ and $ret .= "\tselect arm_v$1\n";
/broken/ and $ret .= "\tdepends on BROKEN\n"; /broken/ and $ret .= "\tdepends on BROKEN\n";
/audio/ and $ret .= "\tselect AUDIO_SUPPORT\n"; /audio/ and $ret .= "\tselect AUDIO_SUPPORT\n";
/display/ and $ret .= "\tselect DISPLAY_SUPPORT\n"; /display/ and $ret .= "\tselect DISPLAY_SUPPORT\n";

@ -82,6 +82,18 @@ config armeb
select BIG_ENDIAN select BIG_ENDIAN
bool bool
config arm_v4
bool
config arm_v5
bool
config arm_v6
bool
config arm_v7
bool
config avr32 config avr32
select BIG_ENDIAN select BIG_ENDIAN
bool bool

Loading…
Cancel
Save