diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-09-20 20:17:28 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2010-09-20 20:17:28 +0000 |
commit | 7f80e266612c4ce1f17c7cbdfc268057de9ae58b (patch) | |
tree | 8451e1acdff371f0bb9a4cd4c08c940745e618d9 /scripts | |
parent | affb66c2c61163f3a88f2ddaf346d660537e085a (diff) | |
download | mtk-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-x | scripts/metadata.pl | 3 |
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"; |