scripts/metadata.pl: do not emit ARCH selection for a target if it has subtargets
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 45112
This commit is contained in:
		| @@ -205,11 +205,11 @@ EOF | |||||||
| 		grep { /broken/ } @{$target->{features}} and $confstr .= "\tdepends on BROKEN\n"; | 		grep { /broken/ } @{$target->{features}} and $confstr .= "\tdepends on BROKEN\n"; | ||||||
| 	} else { | 	} else { | ||||||
| 		$confstr .= $features; | 		$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}}) { | 	foreach my $dep (@{$target->{depends}}) { | ||||||
| 		my $mode = "depends on"; | 		my $mode = "depends on"; | ||||||
| 		my $flags; | 		my $flags; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Felix Fietkau
					Felix Fietkau