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
lede-17.01
Felix Fietkau 2014-06-01 15:18:47 +00:00
parent bf43c8e717
commit 2c4bde9c8f
1 changed files with 4 additions and 1 deletions

View File

@ -75,7 +75,10 @@ sub parse_target_metadata() {
}
close FILE;
foreach my $target (@target) {
next if @{$target->{subtargets}} > 0;
if (@{$target->{subtargets}} > 0) {
$target->{profiles} = [];
next;
}
@{$target->{profiles}} > 0 or $target->{profiles} = [
{
id => 'Default',