Revert "Remove wacky "sysbuild" filtering"

This reverts commit 2d7e106d29.

Unfortunately some jobsets still depend on this behaviour.  They could
probably do something like "assert system == input.system; ..." but
changing them all is undesirable.
This commit is contained in:
Eelco Dolstra 2013-11-01 18:30:36 +01:00
parent cbd56824a2
commit a04c117eb6

View file

@ -286,6 +286,17 @@ sub evalJobs {
SuppressEmpty => '') SuppressEmpty => '')
or die "cannot parse XML output"; or die "cannot parse XML output";
my @filteredJobs = ();
foreach my $job (@{$jobs->{job}}) {
my $validJob = 1;
foreach my $arg (@{$job->{arg}}) {
my $input = $inputInfo->{$arg->{name}}->[$arg->{altnr}];
$validJob = 0 if $input->{type} eq "sysbuild" && $input->{system} ne $job->{system};
}
push(@filteredJobs, $job) if $validJob;
}
$jobs->{job} = \@filteredJobs;
my %jobNames; my %jobNames;
my $errors; my $errors;
foreach my $job (@{$jobs->{job}}) { foreach my $job (@{$jobs->{job}}) {