summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-09-20 20:17:28 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-09-20 20:17:28 +0000
commit7f80e266612c4ce1f17c7cbdfc268057de9ae58b (patch)
tree8451e1acdff371f0bb9a4cd4c08c940745e618d9 /scripts
parentaffb66c2c61163f3a88f2ddaf346d660537e085a (diff)
downloadmtk-20170518-7f80e266612c4ce1f17c7cbdfc268057de9ae58b.zip
mtk-20170518-7f80e266612c4ce1f17c7cbdfc268057de9ae58b.tar.gz
mtk-20170518-7f80e266612c4ce1f17c7cbdfc268057de9ae58b.tar.bz2
fix build dependencies on packages with multiple variants but no selected virtual packages
SVN-Revision: 23102
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/metadata.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/metadata.pl b/scripts/metadata.pl
index 2e90257..45d202e 100755
--- a/scripts/metadata.pl
+++ b/scripts/metadata.pl
@@ -640,6 +640,9 @@ sub gen_package_mk() {
$pkg->{buildonly} and $config = "";
print "package-$config += $pkg->{subdir}$pkg->{src}\n";
if ($pkg->{variant}) {
+ if (!defined($done{$pkg->{src}})) {
+ print "\$(curdir)/$pkg->{subdir}$pkg->{src}/default-variant := $pkg->{variant}\n";
+ }
print "\$(curdir)/$pkg->{subdir}$pkg->{src}/variants += \$(if $config,$pkg->{variant})\n"
}
$pkg->{prereq} and print "prereq-$config += $pkg->{subdir}$pkg->{src}\n";