mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-11-23 14:21:35 +00:00
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
23 lines
670 B
Makefile
23 lines
670 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
TEST_GEN_PROGS := fpu_syscall fpu_preempt fpu_signal fpu_denormal vmx_syscall vmx_preempt vmx_signal vsx_preempt mma
|
|
|
|
top_srcdir = ../../../../..
|
|
include ../../lib.mk
|
|
include ../flags.mk
|
|
|
|
$(TEST_GEN_PROGS): ../harness.c
|
|
$(TEST_GEN_PROGS): CFLAGS += -O2 -g -pthread -m64 -maltivec
|
|
|
|
$(OUTPUT)/fpu_syscall: fpu_asm.S
|
|
$(OUTPUT)/fpu_preempt: fpu_asm.S
|
|
$(OUTPUT)/fpu_signal: fpu_asm.S
|
|
|
|
$(OUTPUT)/vmx_syscall: vmx_asm.S ../utils.c
|
|
$(OUTPUT)/vmx_preempt: vmx_asm.S ../utils.c
|
|
$(OUTPUT)/vmx_signal: vmx_asm.S ../utils.c
|
|
|
|
$(OUTPUT)/vsx_preempt: CFLAGS += -mvsx
|
|
$(OUTPUT)/vsx_preempt: vsx_asm.S ../utils.c
|
|
|
|
$(OUTPUT)/mma: mma.c mma.S ../utils.c
|