aboutsummaryrefslogtreecommitdiffstats
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
commitb17e073ff91cbc02efb923555c222cec3c977aa7 (patch)
treed75485957d45ab2a83885e382986f5981308bf41
parent5a47fc0d71151d52996904f1c5f29e115b62c2ac (diff)
downloadupstream-b17e073ff91cbc02efb923555c222cec3c977aa7.tar.gz
upstream-b17e073ff91cbc02efb923555c222cec3c977aa7.tar.bz2
upstream-b17e073ff91cbc02efb923555c222cec3c977aa7.zip
metadata.pl: suppress profile config.in code for targets that have subtargets (fixes #14480)
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40896 3c298f89-4303-0410-b956-a3cf2f4a3e73
-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',