diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-06-01 15:18:47 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-06-01 15:18:47 +0000 |
commit | 2c4bde9c8f56ef2415d117f196ab3a84c98d98cf (patch) | |
tree | b96bac61534c2acc1e8e7dd54f3f5bfff9ab9f6a /scripts/metadata.pl | |
parent | bf43c8e717c02fc84a8c3c6f618f0c0e96c7a352 (diff) | |
download | mtk-20170518-2c4bde9c8f56ef2415d117f196ab3a84c98d98cf.zip mtk-20170518-2c4bde9c8f56ef2415d117f196ab3a84c98d98cf.tar.gz mtk-20170518-2c4bde9c8f56ef2415d117f196ab3a84c98d98cf.tar.bz2 |
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
Diffstat (limited to 'scripts/metadata.pl')
-rwxr-xr-x | scripts/metadata.pl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/metadata.pl b/scripts/metadata.pl index f075525..041a250 100755 --- a/scripts/metadata.pl +++ b/scripts/metadata.pl @@ -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', |