aboutsummaryrefslogtreecommitdiffstats
path: root/package/utils/busybox/convert_menuconfig.pl
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-04-04 17:52:02 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-04-04 17:52:02 +0000
commitc31df6e995c36e2b14b74f727b8392e6c1c10afc (patch)
tree68b32e1188f7c55bf05be6f510aabeb4032f5893 /package/utils/busybox/convert_menuconfig.pl
parent94850b0068be2dcfffe201bfbd5832dbea418d2c (diff)
downloadupstream-c31df6e995c36e2b14b74f727b8392e6c1c10afc.tar.gz
upstream-c31df6e995c36e2b14b74f727b8392e6c1c10afc.tar.bz2
upstream-c31df6e995c36e2b14b74f727b8392e6c1c10afc.zip
busybox: update to version 1.23.2
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 45272
Diffstat (limited to 'package/utils/busybox/convert_menuconfig.pl')
-rwxr-xr-xpackage/utils/busybox/convert_menuconfig.pl8
1 files changed, 8 insertions, 0 deletions
diff --git a/package/utils/busybox/convert_menuconfig.pl b/package/utils/busybox/convert_menuconfig.pl
index cc4802a61c..fd99349b65 100755
--- a/package/utils/busybox/convert_menuconfig.pl
+++ b/package/utils/busybox/convert_menuconfig.pl
@@ -41,6 +41,14 @@ while (<FIND>) {
undef $default_set;
}
$line =~ s/^(\s*source\s+)/$1package\/utils\/busybox\/config\//;
+ if ($line =~ /^(\s*range\s*)(\w+)(\s+)(\w+)\s*$/) {
+ my $prefix = $1;
+ my $r1 = $2;
+ my $r2 = $4;
+ $r1 =~ s/^([a-zA-Z]+)/BUSYBOX_CONFIG_$1/;
+ $r2 =~ s/^([a-zA-Z]+)/BUSYBOX_CONFIG_$1/;
+ $line = "$prefix$r1 $r2\n";
+ }
$line =~ s/^(\s*(prompt "[^"]+" if|config|depends|depends on|select|default|default \w if)\s+\!?)([A-Z_])/$1BUSYBOX_CONFIG_$3/g;
$line =~ s/(( \|\| | \&\& | \( )!?)([A-Z_])/$1BUSYBOX_CONFIG_$3/g;