linux/tools/testing/selftests/powerpc/pmu/ebb
Masahiro Yamada b61442df74 tools: do not include scripts/Kbuild.include
Since commit 57fd251c78 ("kbuild: split cc-option and friends to
scripts/Makefile.compiler"), some kselftests fail to build.

The tools/ directory opted out Kbuild, and went in a different
direction. People copied scripts and Makefiles to the tools/ directory
to create their own build system.

tools/build/Build.include mimics scripts/Kbuild.include, but some
tool Makefiles include the Kbuild one to import a feature that is
missing in tools/build/Build.include:

 - Commit ec04aa3ae8 ("tools/thermal: tmon: use "-fstack-protector"
   only if supported") included scripts/Kbuild.include from
   tools/thermal/tmon/Makefile to import the cc-option macro.

 - Commit c2390f16fc ("selftests: kvm: fix for compilers that do
   not support -no-pie") included scripts/Kbuild.include from
   tools/testing/selftests/kvm/Makefile to import the try-run macro.

 - Commit 9cae4ace80 ("selftests/bpf: do not ignore clang
   failures") included scripts/Kbuild.include from
   tools/testing/selftests/bpf/Makefile to import the .DELETE_ON_ERROR
   target.

 - Commit 0695f8bca9 ("selftests/powerpc: Handle Makefile for
   unrecognized option") included scripts/Kbuild.include from
   tools/testing/selftests/powerpc/pmu/ebb/Makefile to import the
   try-run macro.

Copy what they need into tools/build/Build.include, and make them
include it instead of scripts/Kbuild.include.

Link: https://lore.kernel.org/lkml/86dadf33-70f7-a5ac-cb8c-64966d2f45a1@linux.ibm.com/
Fixes: 57fd251c78 ("kbuild: split cc-option and friends to scripts/Makefile.compiler")
Reported-by: Janosch Frank <frankja@linux.ibm.com>
Reported-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Tested-by: Christian Borntraeger <borntraeger@de.ibm.com>
Acked-by: Yonghong Song <yhs@fb.com>
2021-04-25 05:26:13 +09:00
..
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
back_to_back_ebbs_test.c selftests/powerpc: Purge extra count_pmc() calls of ebb selftests 2020-07-08 22:09:31 +10:00
busy_loop.S treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 191 2019-05-30 11:29:21 -07:00
close_clears_pmcc_test.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 191 2019-05-30 11:29:21 -07:00
cpu_event_pinned_vs_ebb_test.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 191 2019-05-30 11:29:21 -07:00
cpu_event_vs_ebb_test.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 191 2019-05-30 11:29:21 -07:00
cycles_test.c selftests/powerpc: Purge extra count_pmc() calls of ebb selftests 2020-07-08 22:09:31 +10:00
cycles_with_freeze_test.c selftests/powerpc: Purge extra count_pmc() calls of ebb selftests 2020-07-08 22:09:31 +10:00
cycles_with_mmcr2_test.c selftests/powerpc: Purge extra count_pmc() calls of ebb selftests 2020-07-08 22:09:31 +10:00
ebb_handler.S treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 191 2019-05-30 11:29:21 -07:00
ebb_on_child_test.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 191 2019-05-30 11:29:21 -07:00
ebb_on_willing_child_test.c selftests/powerpc: Purge extra count_pmc() calls of ebb selftests 2020-07-08 22:09:31 +10:00
ebb_vs_cpu_event_test.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 191 2019-05-30 11:29:21 -07:00
ebb.c selftests/powerpc: Purge extra count_pmc() calls of ebb selftests 2020-07-08 22:09:31 +10:00
ebb.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 191 2019-05-30 11:29:21 -07:00
event_attributes_test.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 191 2019-05-30 11:29:21 -07:00
fixed_instruction_loop.S treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 191 2019-05-30 11:29:21 -07:00
fork_cleanup_test.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 191 2019-05-30 11:29:21 -07:00
instruction_count_test.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 191 2019-05-30 11:29:21 -07:00
lost_exception_test.c selftests/powerpc: Purge extra count_pmc() calls of ebb selftests 2020-07-08 22:09:31 +10:00
Makefile tools: do not include scripts/Kbuild.include 2021-04-25 05:26:13 +09:00
multi_counter_test.c selftests/powerpc: Purge extra count_pmc() calls of ebb selftests 2020-07-08 22:09:31 +10:00
multi_ebb_procs_test.c selftests/powerpc: Purge extra count_pmc() calls of ebb selftests 2020-07-08 22:09:31 +10:00
no_handler_test.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 191 2019-05-30 11:29:21 -07:00
pmae_handling_test.c selftests/powerpc: Purge extra count_pmc() calls of ebb selftests 2020-07-08 22:09:31 +10:00
pmc56_overflow_test.c selftests/powerpc: Purge extra count_pmc() calls of ebb selftests 2020-07-08 22:09:31 +10:00
reg_access_test.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 191 2019-05-30 11:29:21 -07:00
task_event_pinned_vs_ebb_test.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 191 2019-05-30 11:29:21 -07:00
task_event_vs_ebb_test.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 191 2019-05-30 11:29:21 -07:00
trace.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 191 2019-05-30 11:29:21 -07:00
trace.h powerpc/mm: Replace zero-length array with flexible-array 2020-05-15 11:58:54 +10:00