From 28b503b47f0d1ed4fe462de15e768465e70e989d Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 14 Jan 2007 21:44:13 +0000 Subject: [PATCH] include the default profile in target.mk as well - required for the image builder on certain targets SVN-Revision: 6098 --- scripts/metadata.pl | 16 +++++++++------- 1 file 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 <{conf}_$profile->{id}