projects
/
openwrt-github
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
target/sdk: use .config instead of unconditionally enabling all build dirs
[openwrt-github/.git]
/
target
/
sdk
/
convert-config.pl
diff --git
a/target/sdk/convert-config.pl
b/target/sdk/convert-config.pl
index 9fd2c362e6b2ea5b3c4e1fc69747e91b1ffe1d24..243de0b87b419376962961bfbeef1408b9aafe46 100755
(executable)
--- a/
target/sdk/convert-config.pl
+++ b/
target/sdk/convert-config.pl
@@
-1,6
+1,13
@@
#!/usr/bin/env perl
use strict;
#!/usr/bin/env perl
use strict;
+print <<EOF;
+config ALL
+ bool
+ default y
+
+EOF
+
while (<>) {
chomp;
next unless /^CONFIG_([^=]+)=(.*)$/;
while (<>) {
chomp;
next unless /^CONFIG_([^=]+)=(.*)$/;
@@
-9,6
+16,8
@@
while (<>) {
my $val = $2;
my $type;
my $val = $2;
my $type;
+ next if $var eq 'ALL';
+
if ($val eq 'y') {
$type = "bool";
} elsif ($val eq 'm') {
if ($val eq 'y') {
$type = "bool";
} elsif ($val eq 'm') {