diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-03-17 02:20:34 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-03-17 02:20:34 +0000 |
commit | ddcfaeb1e516d569436c3d4d453a9573655ca375 (patch) | |
tree | 94b1169c72a68b9ef6ce9ab92aea68eb8764358a /scripts/metadata.pm | |
parent | 7ef6b7451973d0d3fd09014871e7859b6a83fb19 (diff) | |
download | upstream-ddcfaeb1e516d569436c3d4d453a9573655ca375.tar.gz upstream-ddcfaeb1e516d569436c3d4d453a9573655ca375.tar.bz2 upstream-ddcfaeb1e516d569436c3d4d453a9573655ca375.zip |
move host build in packages into a separate namespace: package/<name>/host/<target> this allows dependencies between host and target packages, and saves unnecessary host builds for packages that contain both variants
SVN-Revision: 14905
Diffstat (limited to 'scripts/metadata.pm')
-rw-r--r-- | scripts/metadata.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/metadata.pm b/scripts/metadata.pm index defa7b9346..8ce4ea8b1e 100644 --- a/scripts/metadata.pm +++ b/scripts/metadata.pm @@ -63,6 +63,7 @@ sub parse_package_metadata($) { $pkg->{default} = "m if ALL"; $pkg->{depends} = []; $pkg->{builddepends} = []; + $pkg->{buildtypes} = []; $pkg->{subdir} = $subdir; $pkg->{tristate} = 1; $package{$1} = $pkg; @@ -91,6 +92,8 @@ sub parse_package_metadata($) { /^Depends: \s*(.+)\s*$/ and $pkg->{depends} = [ split /\s+/, $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 ]; + /^Build-Types:\s*(.+)\s*$/ and $pkg->{buildtypes} = [ split /\s+/, $1 ]; /^Category: \s*(.+)\s*$/ and do { $pkg->{category} = $1; defined $category{$1} or $category{$1} = {}; |