mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2025-02-05 22:33:04 +00:00
metadata.pl: suppress profile config.in code for targets that have subtargets (fixes #14480)
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 40896
This commit is contained in:
parent
bf43c8e717
commit
2c4bde9c8f
@ -75,7 +75,10 @@ sub parse_target_metadata() {
|
|||||||
}
|
}
|
||||||
close FILE;
|
close FILE;
|
||||||
foreach my $target (@target) {
|
foreach my $target (@target) {
|
||||||
next if @{$target->{subtargets}} > 0;
|
if (@{$target->{subtargets}} > 0) {
|
||||||
|
$target->{profiles} = [];
|
||||||
|
next;
|
||||||
|
}
|
||||||
@{$target->{profiles}} > 0 or $target->{profiles} = [
|
@{$target->{profiles}} > 0 or $target->{profiles} = [
|
||||||
{
|
{
|
||||||
id => 'Default',
|
id => 'Default',
|
||||||
|
Loading…
Reference in New Issue
Block a user