Skip to content

Commit 231a122

Browse files
authored
Merge pull request #9040 from ggouaillardet/topic/autogen_exclude
autogen.pl: ignore all excluded components
2 parents 7c1bd89 + 0b80a1d commit 231a122

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

autogen.pl

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Copyright (c) 2013 Mellanox Technologies, Inc.
66
# All rights reserved.
77
# Copyright (c) 2013-2020 Intel, Inc. All rights reserved.
8-
# Copyright (c) 2015-2020 Research Organization for Information Science
8+
# Copyright (c) 2015-2021 Research Organization for Information Science
99
# and Technology (RIST). All rights reserved.
1010
# Copyright (c) 2015-2021 IBM Corporation. All rights reserved.
1111
# Copyright (c) 2020 Amazon.com, Inc. or its affiliates.
@@ -348,10 +348,18 @@ sub mca_process_framework {
348348
verbose "--- Found $pname / $framework / $d component\n";
349349

350350
# Skip if specifically excluded
351-
if (exists($exclude_list->{$framework}) &&
352-
$exclude_list->{$framework}[0] eq $d) {
353-
verbose " => Excluded\n";
354-
next;
351+
if (exists($exclude_list->{$framework})) {
352+
my $tst = 0;
353+
foreach my $ck (@{$exclude_list->{$framework}}) {
354+
if ($ck eq $d) {
355+
verbose " => Excluded\n";
356+
$tst = 1;
357+
last;
358+
}
359+
}
360+
if ($tst) {
361+
next;
362+
}
355363
}
356364

357365
# Skip if the framework is on the include list, but

0 commit comments

Comments
 (0)