diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-01-14 21:44:13 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-01-14 21:44:13 +0000 |
commit | edf3bfb0af075d55e64edf9b8a7ecd887d1f1880 (patch) | |
tree | 1775a6b19f151e6296dc604fd907887bd6c5796a /scripts | |
parent | aa7ccffe3f0865e1360869cecd505f4388b1f4be (diff) | |
download | upstream-edf3bfb0af075d55e64edf9b8a7ecd887d1f1880.tar.gz upstream-edf3bfb0af075d55e64edf9b8a7ecd887d1f1880.tar.bz2 upstream-edf3bfb0af075d55e64edf9b8a7ecd887d1f1880.zip |
include the default profile in target.mk as well - required for the image builder on certain targets
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6098 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/metadata.pl | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/scripts/metadata.pl b/scripts/metadata.pl index 5da5ac48a0..9434af0f9d 100755 --- a/scripts/metadata.pl +++ b/scripts/metadata.pl @@ -46,6 +46,15 @@ sub parse_target_metadata() { /^Target-Profile-Name:\s*(.+)\s*$/ and $profile->{name} = $1; /^Target-Profile-Packages:\s*(.*)\s*$/ and $profile->{packages} = [ split(/\s+/, $1) ]; } + foreach my $target (@target) { + @{$target->{profiles}} > 0 or $target->{profiles} = [ + { + id => 'Default', + name => 'Default', + packages => [] + } + ]; + } return @target; } @@ -274,13 +283,6 @@ EOF foreach my $target (@target) { my $profiles = $target->{profiles}; - @$profiles > 0 or $profiles = [ - { - id => 'Default', - name => 'Default', - packages => [] - } - ]; foreach my $profile (@$profiles) { print <<EOF; config LINUX_$target->{conf}_$profile->{id} |