aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/metadata.pl
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2016-04-13 17:24:12 +0200
committerJo-Philipp Wich <jo@mein.io>2016-04-13 17:24:12 +0200
commit941fc5e8c8fd48c31c97c9194d1bed786145f978 (patch)
tree2b40e5a85f9f0b939e821173e2857e745f9f8c77 /scripts/metadata.pl
parentbf4bfd8ccc7c05cb20acee87c4d947e09ec3553b (diff)
downloadupstream-941fc5e8c8fd48c31c97c9194d1bed786145f978.tar.gz
upstream-941fc5e8c8fd48c31c97c9194d1bed786145f978.tar.bz2
upstream-941fc5e8c8fd48c31c97c9194d1bed786145f978.zip
global: introduce ALL_NONSHARED symbol
Introduce a new symbol ALL_NONSHARED which selects all non-sharable packages by default. This option is mainly intented for buildbot setups to build the target dependant software subset only. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'scripts/metadata.pl')
-rwxr-xr-xscripts/metadata.pl9
1 files changed, 6 insertions, 3 deletions
diff --git a/scripts/metadata.pl b/scripts/metadata.pl
index a55b7990f7..5695bda4a4 100755
--- a/scripts/metadata.pl
+++ b/scripts/metadata.pl
@@ -558,11 +558,14 @@ 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}) {
+ my @def = ("ALL");
+ if (!exists($pkg->{repository})) {
+ push @def, "ALL_NONSHARED";
+ }
if ($pkg->{name} =~ /^kmod-/) {
- $pkg->{default} ||= "m if ALL_KMODS";
- } else {
- $pkg->{default} ||= "m if ALL";
+ push @def, "ALL_KMODS";
}
+ $pkg->{default} ||= "m if " . join("||", @def);
}
if ($pkg->{default}) {
foreach my $default (split /\s*,\s*/, $pkg->{default}) {