diff options
Diffstat (limited to 'package/utils/busybox/convert_menuconfig.pl')
-rwxr-xr-x | package/utils/busybox/convert_menuconfig.pl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/package/utils/busybox/convert_menuconfig.pl b/package/utils/busybox/convert_menuconfig.pl index cc4802a..fd99349 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; |