aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-01-01 18:28:03 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-01-01 18:28:03 +0000
commitd39e136bbc67e5ff71f3b460ca530b149dc2b5f1 (patch)
tree49d35d3cc5b7cc19c03d8e5927941aa9fad3b49c /scripts
parentfe70786b35e044b5e4f5e3254324d90825ef6103 (diff)
downloadupstream-d39e136bbc67e5ff71f3b460ca530b149dc2b5f1.tar.gz
upstream-d39e136bbc67e5ff71f3b460ca530b149dc2b5f1.tar.bz2
upstream-d39e136bbc67e5ff71f3b460ca530b149dc2b5f1.zip
update busybox menuconfig for the latest version
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5953 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/gen_busybox_menuconfig.pl16
1 files changed, 9 insertions, 7 deletions
diff --git a/scripts/gen_busybox_menuconfig.pl b/scripts/gen_busybox_menuconfig.pl
index 5fe64783eb..0128bf78d7 100755
--- a/scripts/gen_busybox_menuconfig.pl
+++ b/scripts/gen_busybox_menuconfig.pl
@@ -16,9 +16,9 @@ my %config;
open CONFIG, $DEFCONFIG or die 'cannot open config file';
while (<CONFIG>) {
- /^([\w_]+)=([ym])/ and $config{$1} = $2;
- /^([\w_]+)=(\d+)/ and $config{$1} = $2;
- /^([\w_]+)=(".+")/ and $config{$1} = $2;
+ /^CONFIG_([\w_]+)=([ym])/ and $config{$1} = $2;
+ /^CONFIG_([\w_]+)=(\d+)/ and $config{$1} = $2;
+ /^CONFIG_([\w_]+)=(".+")/ and $config{$1} = $2;
}
close CONFIG;
@@ -39,8 +39,8 @@ while (<FIND>) {
next if $line =~ /^\s*mainmenu/;
# FIXME: make this dynamic
- $line =~ s/default CONFIG_FEATURE_BUFFERS_USE_MALLOC/default CONFIG_FEATURE_BUFFERS_GO_ON_STACK/;
- $line =~ s/default BUSYBOX_CONFIG_FEATURE_SH_IS_NONE/default BUSYBOX_CONFIG_FEATURE_SH_IS_ASH/;
+ $line =~ s/default FEATURE_BUFFERS_USE_MALLOC/default FEATURE_BUFFERS_GO_ON_STACK/;
+ $line =~ s/default FEATURE_SH_IS_NONE/default FEATURE_SH_IS_ASH/;
if ($line =~ /^\s*config\s*([\w_]+)/) {
$cur = $1;
@@ -52,10 +52,12 @@ while (<FIND>) {
}
$line =~ s/^(\s*source\s+)/$1package\/busybox\/config\//;
- $line =~ s/(\s+)((CONFIG|FDISK|USING|CROSS|EXTRA|PREFIX|FEATURE|HAVE|BUSYBOX)[\w_]*)/$1BUSYBOX_$2/g;
+ $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;
+ $line =~ s/(\( ?!?)([A-Z_]+ (\|\||&&))/$1BUSYBOX_CONFIG_$2/g;
if ($cur) {
- ($cur !~ /^CONFIG/ or $cur eq 'CONFIG_LFS') and do {
+ ($cur eq 'LFS') and do {
$line =~ s/^(\s*(bool|tristate|string))\s*".+"$/$1/;
};
if ($line =~ /^\s*default/) {