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 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14905 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
f76f86c856
commit
e83c4ff721
9 changed files with 93 additions and 21 deletions
|
@ -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} = {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue