瀏覽代碼

scripts/metadata.pl: do not emit ARCH selection for a target if it has subtargets

Signed-off-by: Felix Fietkau <[email protected]>

SVN-Revision: 45112
Felix Fietkau 10 年之前
父節點
當前提交
2900f6984f
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      scripts/metadata.pl

+ 3 - 3
scripts/metadata.pl

@@ -205,11 +205,11 @@ EOF
 		grep { /broken/ } @{$target->{features}} and $confstr .= "\tdepends on BROKEN\n";
 	} else {
 		$confstr .= $features;
+		if ($target->{arch} =~ /\w/) {
+			$confstr .= "\tselect $target->{arch}\n";
+		}
 	}
 
-	if ($target->{arch} =~ /\w/) {
-		$confstr .= "\tselect $target->{arch}\n";
-	}
 	foreach my $dep (@{$target->{depends}}) {
 		my $mode = "depends on";
 		my $flags;