Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / tools / testing / selftests / arm64 / gcs / Makefile
blobd2f3497a9103fc12ebc90c7f4e33ab9b846c6c8a
1 # SPDX-License-Identifier: GPL-2.0
2 # Copyright (C) 2023 ARM Limited
4 # In order to avoid interaction with the toolchain and dynamic linker the
5 # portions of these tests that interact with the GCS are implemented using
6 # nolibc.
9 TEST_GEN_PROGS := basic-gcs libc-gcs gcs-locking gcs-stress gcspushm gcsstr
10 TEST_GEN_PROGS_EXTENDED := gcs-stress-thread
12 LDLIBS+=-lpthread
14 include ../../lib.mk
16 $(OUTPUT)/basic-gcs: basic-gcs.c
17 $(CC) -g -fno-asynchronous-unwind-tables -fno-ident -s -Os -nostdlib \
18 -static -include ../../../../include/nolibc/nolibc.h \
19 -I../../../../../usr/include \
20 -std=gnu99 -I../.. -g \
21 -ffreestanding -Wall $^ -o $@ -lgcc
23 $(OUTPUT)/gcs-stress-thread: gcs-stress-thread.S
24 $(CC) -nostdlib $^ -o $@
26 $(OUTPUT)/gcspushm: gcspushm.S
27 $(CC) -nostdlib $^ -o $@
29 $(OUTPUT)/gcsstr: gcsstr.S
30 $(CC) -nostdlib $^ -o $@