mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
add descriptions to the broadcom target profiles and export them to the target metadata (not presented in menuconfig yet)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6137 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -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} = [
|
||||
|
||||
Reference in New Issue
Block a user