add descriptions to the broadcom target profiles and export them to the target metadata (not presented in menuconfig yet)

SVN-Revision: 6137
This commit is contained in:
Felix Fietkau
2007-01-20 02:30:36 +00:00
parent c606df6563
commit 84a0696c1e
4 changed files with 58 additions and 1 deletions

View File

@@ -45,6 +45,14 @@ sub parse_target_metadata() {
};
/^Target-Profile-Name:\s*(.+)\s*$/ and $profile->{name} = $1;
/^Target-Profile-Packages:\s*(.*)\s*$/ and $profile->{packages} = [ split(/\s+/, $1) ];
/^Target-Profile-Description:/ and do {
my $desc;
while (<>) {
last if /^@@/;
$desc .= $_;
}
$profile->{desc} = $desc;
};
}
foreach my $target (@target) {
@{$target->{profiles}} > 0 or $target->{profiles} = [