diff options
author | Jo-Philipp Wich <jo@mein.io> | 2016-06-22 15:36:59 +0200 |
---|---|---|
committer | Zoltan HERPAI <wigyori@uid0.hu> | 2016-06-22 15:36:59 +0200 |
commit | 8a2689d533ebfe6bb4695d1c5b05595d3d7c4b07 (patch) | |
tree | e794076bebfc8588d12ceb687220ad8cca145599 /scripts/metadata.pl | |
parent | ee36cbc6b21573720c0d418fd854b93bf0d058e0 (diff) | |
download | master-187ad058-8a2689d533ebfe6bb4695d1c5b05595d3d7c4b07.tar.gz master-187ad058-8a2689d533ebfe6bb4695d1c5b05595d3d7c4b07.tar.bz2 master-187ad058-8a2689d533ebfe6bb4695d1c5b05595d3d7c4b07.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-x | scripts/metadata.pl | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/scripts/metadata.pl b/scripts/metadata.pl index 96d5ee4208..b17403f51f 100755 --- a/scripts/metadata.pl +++ b/scripts/metadata.pl @@ -568,11 +568,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}) { |