summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJonas Gorski <jogo@openwrt.org>2015-03-16 11:51:54 +0000
committerJonas Gorski <jogo@openwrt.org>2015-03-16 11:51:54 +0000
commit9dc137397fa64f2c47847d183260ff2d1cf052ae (patch)
tree2de9cd68bb17f98b8b3a081b4633e350f52c877a /scripts
parent4fdb66373ffe7cac80cc156e4b53a7ad85246fa6 (diff)
downloadmtk-20170518-9dc137397fa64f2c47847d183260ff2d1cf052ae.zip
mtk-20170518-9dc137397fa64f2c47847d183260ff2d1cf052ae.tar.gz
mtk-20170518-9dc137397fa64f2c47847d183260ff2d1cf052ae.tar.bz2
buildroot: make it easier to build all kmods
Split out kmods from ALL to make it easier to create local builds that are compatible kmod-wise with releases. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 44830
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/metadata.pl6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/metadata.pl b/scripts/metadata.pl
index bfb9ab5..92923ea 100755
--- a/scripts/metadata.pl
+++ b/scripts/metadata.pl
@@ -545,7 +545,11 @@ sub print_package_config_category($) {
print "\t\t".($pkg->{tristate} ? 'tristate' : 'bool')." $title\n";
print "\t\tdefault y if DEFAULT_".$pkg->{name}."\n";
unless ($pkg->{hidden}) {
- $pkg->{default} ||= "m if ALL";
+ if ($pkg->{name} =~ /^kmod-/) {
+ $pkg->{default} ||= "m if ALL_KMODS";
+ } else {
+ $pkg->{default} ||= "m if ALL";
+ }
}
if ($pkg->{default}) {
foreach my $default (split /\s*,\s*/, $pkg->{default}) {