diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-09-12 20:49:54 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-09-12 20:49:54 +0000 |
commit | 69c9cad2a1144523a6534a184064601e6cc8d48c (patch) | |
tree | a6707cab21cdb4936905ec876e354466e8c90153 /scripts | |
parent | 306fd791257af34804c8f7b3322bef61a517d56c (diff) | |
download | master-187ad058-69c9cad2a1144523a6534a184064601e6cc8d48c.tar.gz master-187ad058-69c9cad2a1144523a6534a184064601e6cc8d48c.tar.bz2 master-187ad058-69c9cad2a1144523a6534a184064601e6cc8d48c.zip |
[buildroot] Implement an ARCH_PACKAGES variable which defaults to BOARD but can be overridden on a per-subtarget basis.
This is intended for targets such as adm5120 and malta which support both big and little endianess and will replace
the target specific exceptions in package-defaults and Image Builder.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23029 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/metadata.pl | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/metadata.pl b/scripts/metadata.pl index 336605f7b0..2e90257270 100755 --- a/scripts/metadata.pl +++ b/scripts/metadata.pl @@ -49,6 +49,7 @@ sub parse_target_metadata() { /^Target-Name:\s*(.+)\s*$/ and $target->{name} = $1; /^Target-Path:\s*(.+)\s*$/ and $target->{path} = $1; /^Target-Arch:\s*(.+)\s*$/ and $target->{arch} = $1; + /^Target-Arch-Packages:\s*(.+)\s*$/ and $target->{arch_packages} = $1; /^Target-Features:\s*(.+)\s*$/ and $target->{features} = [ split(/\s+/, $1) ]; /^Target-Depends:\s*(.+)\s*$/ and $target->{depends} = [ split(/\s+/, $1) ]; /^Target-Description:/ and $target->{desc} = get_multiline(*FILE); @@ -335,6 +336,15 @@ EOF $target->{subtarget} or print "\t\tdefault \"".$target->{board}."\" if TARGET_".$target->{conf}."\n"; } print <<EOF; +config TARGET_ARCH_PACKAGES + string + +EOF + foreach my $target (@target) { + next if @{$target->{subtargets}} > 0; + print "\t\tdefault \"".($target->{arch_packages} || $target->{board})."\" if TARGET_".$target->{conf}."\n"; + } + print <<EOF; config DEFAULT_TARGET_OPTIMIZATION string |