linux-yocto/tools/testing/selftests/powerpc/security
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 selftests/powerpc: Add missing files to .gitignores 2022-06-29 19:37:04 +10:00
branch_loops.S
entry_flush.c selftests/powerpc: Add read/write debugfs file, int 2023-02-09 23:56:45 +11:00
flush_utils.c selftests/powerpc: Use mfspr/mtspr macros 2022-12-02 18:04:27 +11:00
flush_utils.h selftests/powerpc: Add uaccess flush test 2021-04-23 01:38:03 +10:00
Makefile selftests/powerpc: make sub-folders buildable on their own 2024-04-29 23:54:42 +10:00
mitigation-patching.sh selftests/powerpc: skip tests for unavailable mitigations. 2021-12-16 21:31:46 +11:00
rfi_flush.c selftests/powerpc: Add read/write debugfs file, int 2023-02-09 23:56:45 +11:00
spectre_v2.c selftests/powerpc/pmu: fix spelling mistake "mis-match" -> "mismatch" 2022-05-22 15:59:54 +10:00
uaccess_flush.c selftests/powerpc: Add read/write debugfs file, int 2023-02-09 23:56:45 +11:00