aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/metadata.pl
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-06-01 15:18:47 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-06-01 15:18:47 +0000
commit2c4bde9c8f56ef2415d117f196ab3a84c98d98cf (patch)
treeb96bac61534c2acc1e8e7dd54f3f5bfff9ab9f6a /scripts/metadata.pl
parentbf43c8e717c02fc84a8c3c6f618f0c0e96c7a352 (diff)
downloadupstream-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/metadata.pl')
-rwxr-xr-xscripts/metadata.pl5
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',