diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-09-23 10:41:15 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-09-23 10:41:15 +0000 |
commit | a62f0d02ec82d8a4c9618076a7893665dc21cf78 (patch) | |
tree | 19c4a3dbe2fe00c79cc71f7cf78a0b3309d8f382 /scripts/metadata.pl | |
parent | 38a8f5ae63ea357ec57638c9161fd2f4fa843181 (diff) | |
download | mtk-20170518-a62f0d02ec82d8a4c9618076a7893665dc21cf78.zip mtk-20170518-a62f0d02ec82d8a4c9618076a7893665dc21cf78.tar.gz mtk-20170518-a62f0d02ec82d8a4c9618076a7893665dc21cf78.tar.bz2 |
build: allow packages with build variants to explicitly select a default variant
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 42654
Diffstat (limited to 'scripts/metadata.pl')
-rwxr-xr-x | scripts/metadata.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/metadata.pl b/scripts/metadata.pl index 79f930c..4014613 100755 --- a/scripts/metadata.pl +++ b/scripts/metadata.pl @@ -684,7 +684,7 @@ sub gen_package_mk() { $pkg->{buildonly} and $config = ""; print "package-$config += $pkg->{subdir}$pkg->{src}\n"; if ($pkg->{variant}) { - if (!defined($done{$pkg->{src}})) { + if (!defined($done{$pkg->{src}}) or $pkg->{variant_default}) { print "\$(curdir)/$pkg->{subdir}$pkg->{src}/default-variant := $pkg->{variant}\n"; } print "\$(curdir)/$pkg->{subdir}$pkg->{src}/variants += \$(if $config,$pkg->{variant})\n" |