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 | |
parent | bf43c8e717c02fc84a8c3c6f618f0c0e96c7a352 (diff) | |
download | upstream-2c4bde9c8f56ef2415d117f196ab3a84c98d98cf.tar.gz upstream-2c4bde9c8f56ef2415d117f196ab3a84c98d98cf.tar.bz2 upstream-2c4bde9c8f56ef2415d117f196ab3a84c98d98cf.zip |
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')
-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 f075525e1d..041a250cdb 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', |