1# SPDX-License-Identifier: GPL-2.0 2 3CFLAGS += -I../../../../../usr/include/ 4TEST_GEN_PROGS := sve-ptrace sve-probe-vls vec-syscfg za-fork za-ptrace 5TEST_GEN_PROGS_EXTENDED := fp-pidbench fpsimd-test \ 6 rdvl-sme rdvl-sve \ 7 sve-test \ 8 ssve-test \ 9 za-test \ 10 vlset 11TEST_PROGS_EXTENDED := fpsimd-stress sve-stress ssve-stress za-stress 12 13# Build with nolibc to avoid effects due to libc's clone() support 14fp-pidbench: fp-pidbench.S asm-utils.o 15 $(CC) -nostdlib $^ -o $@ 16fpsimd-test: fpsimd-test.o asm-utils.o 17 $(CC) -nostdlib $^ -o $@ 18rdvl-sme: rdvl-sme.o rdvl.o 19rdvl-sve: rdvl-sve.o rdvl.o 20sve-ptrace: sve-ptrace.o 21sve-probe-vls: sve-probe-vls.o rdvl.o 22sve-test: sve-test.o asm-utils.o 23 $(CC) -nostdlib $^ -o $@ 24ssve-test: sve-test.S asm-utils.o 25 $(CC) -DSSVE -nostdlib $^ -o $@ 26vec-syscfg: vec-syscfg.o rdvl.o 27vlset: vlset.o 28za-fork: za-fork.o za-fork-asm.o 29 $(CC) -nostdlib -static $^ -o $@ -lgcc 30za-fork.o: za-fork.c 31 $(CC) -c -fno-asynchronous-unwind-tables -fno-ident -s -Os -nostdlib \ 32 -include ../../../../include/nolibc/nolibc.h \ 33 -ffreestanding -Wall $^ -o $@ 34za-test: za-test.o asm-utils.o 35 $(CC) -nostdlib $^ -o $@ 36za-ptrace: za-ptrace.o 37 38include ../../lib.mk 39