1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/tools/testing/selftests/powerpc/mm
Madhavan Srinivasan 108e5e6833 selftests/powerpc: make sub-folders buildable on their own
Build breaks when executing make with run_tests for sub-folders
under powerpc. This is because, CFLAGS and GIT_VERSION macros are
defined in Makefile of toplevel powerpc folder.

  make: Entering directory '/home/maddy/linux/tools/testing/selftests/powerpc/mm'
  gcc     hugetlb_vs_thp_test.c ../harness.c ../utils.c  -o /home/maddy/selftest_output//hugetlb_vs_thp_test
  hugetlb_vs_thp_test.c:6:10: fatal error: utils.h: No such file or directory
      6 | #include "utils.h"
        |          ^~~~~~~~~
  compilation terminated.

Fix this by adding the flags.mk in each sub-folder Makefile. Also remove
the CFLAGS and GIT_VERSION macros from powerpc/ folder Makefile since
the same is definied in flags.mk

Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240229093711.581230-3-maddy@linux.ibm.com
2024-04-29 23:54:42 +10:00
..
.gitignore powerpc/selftests: sort mm/.gitignore, add exec_prot 2023-08-18 17:03:15 +10:00
bad_accesses.c selftests/powerpc: Fix uninitialized variable warning 2020-12-04 01:01:21 +11:00
exec_prot.c selftests/powerpc: Add a test for execute-only memory 2022-08-26 11:02:21 +10:00
hugetlb_vs_thp_test.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
large_vm_fork_separation.c selftests/powerpc: Add test of fork with mapping above 512TB 2019-06-13 12:09:48 +10:00
large_vm_gpr_corruption.c selftests/powerpc: Skip 4PB test on 4K PAGE_SIZE systems 2022-09-04 22:39:59 +10:00
Makefile selftests/powerpc: make sub-folders buildable on their own 2024-04-29 23:54:42 +10:00
pkey_exec_prot.c selftests/powerpc: Fix exit status of pkey tests 2021-01-19 08:04:32 +11:00
pkey_siginfo.c selftests/powerpc: Fix exit status of pkey tests 2021-01-19 08:04:32 +11:00
prot_sao.c selftests/powerpc: Skip PROT_SAO test in guests/LPARS 2020-09-01 22:47:02 +10:00
segv_errors.c selftests/powerpc: Add a test of SEGV error behaviour 2018-01-03 16:49:24 +11:00
stack_expansion_ldst.c selftests/powerpc: Remove powerpc special cases from stack expansion test 2020-07-29 21:02:12 +10:00
stack_expansion_signal.c selftests/powerpc: Add test of stack expansion logic 2020-07-29 21:02:11 +10:00
stress_code_patching.sh selftests/powerpc: Test for spurious kernel memory faults on radix 2021-04-08 21:17:42 +10:00
subpage_prot.c selftests/powerpc: Skip the subpage_prot tests if the syscall is unavailable 2018-03-02 11:37:04 +11:00
tlbie_test.c selftests: remove duplicate include 2021-05-07 00:26:33 -07:00
wild_bctr.c selftests/powerpc: Adjust wild_bctr to build with old binutils 2018-11-15 23:05:17 +11:00