mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-11-18 22:43:53 +01:00
include the default profile in target.mk as well - required for the image builder on certain targets
SVN-Revision: 6098
This commit is contained in:
parent
065c6c0f97
commit
28b503b47f
@ -46,6 +46,15 @@ sub parse_target_metadata() {
|
|||||||
/^Target-Profile-Name:\s*(.+)\s*$/ and $profile->{name} = $1;
|
/^Target-Profile-Name:\s*(.+)\s*$/ and $profile->{name} = $1;
|
||||||
/^Target-Profile-Packages:\s*(.*)\s*$/ and $profile->{packages} = [ split(/\s+/, $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;
|
return @target;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -274,13 +283,6 @@ EOF
|
|||||||
foreach my $target (@target) {
|
foreach my $target (@target) {
|
||||||
my $profiles = $target->{profiles};
|
my $profiles = $target->{profiles};
|
||||||
|
|
||||||
@$profiles > 0 or $profiles = [
|
|
||||||
{
|
|
||||||
id => 'Default',
|
|
||||||
name => 'Default',
|
|
||||||
packages => []
|
|
||||||
}
|
|
||||||
];
|
|
||||||
foreach my $profile (@$profiles) {
|
foreach my $profile (@$profiles) {
|
||||||
print <<EOF;
|
print <<EOF;
|
||||||
config LINUX_$target->{conf}_$profile->{id}
|
config LINUX_$target->{conf}_$profile->{id}
|
||||||
|
Loading…
Reference in New Issue
Block a user