From 2c4bde9c8f56ef2415d117f196ab3a84c98d98cf Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 1 Jun 2014 15:18:47 +0000 Subject: metadata.pl: suppress profile config.in code for targets that have subtargets (fixes #14480) Signed-off-by: Felix Fietkau SVN-Revision: 40896 --- scripts/metadata.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'scripts') 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', -- cgit v1.2.3