build: allow packages with build variants to explicitly select a default variant

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 42654
This commit is contained in:
Felix Fietkau
2014-09-23 10:41:15 +00:00
parent 38a8f5ae63
commit a62f0d02ec
4 changed files with 5 additions and 2 deletions

View File

@@ -115,6 +115,7 @@ sub parse_package_metadata($) {
/^Depends: \s*(.+)\s*$/ and $pkg->{depends} = [ split /\s+/, $1 ];
/^Hidden: \s*(.+)\s*$/ and $pkg->{hidden} = 1;
/^Build-Variant: \s*([\w\-]+)\s*/ and $pkg->{variant} = $1;
/^Default-Variant: .*/ and $pkg->{variant_default} = 1;
/^Build-Only: \s*(.+)\s*$/ and $pkg->{buildonly} = 1;
/^Build-Depends: \s*(.+)\s*$/ and $pkg->{builddepends} = [ split /\s+/, $1 ];
/^Build-Depends\/(\w+): \s*(.+)\s*$/ and $pkg->{"builddepends/$1"} = [ split /\s+/, $2 ];