Merge tag 'selinux-pr-20220523' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-block.git] / tools / testing / selftests / arm64 / abi / Makefile
CommitLineData
b77e995e
MB
1# SPDX-License-Identifier: GPL-2.0
2# Copyright (C) 2021 ARM Limited
3
30e3a42b 4TEST_GEN_PROGS := syscall-abi tpidr2
b77e995e
MB
5
6include ../../lib.mk
7
8$(OUTPUT)/syscall-abi: syscall-abi.c syscall-abi-asm.S
30e3a42b
MB
9
10# Build with nolibc since TPIDR2 is intended to be actively managed by
11# libc and we're trying to test the functionality that it depends on here.
12$(OUTPUT)/tpidr2: tpidr2.c
13 $(CC) -fno-asynchronous-unwind-tables -fno-ident -s -Os -nostdlib \
14 -static -include ../../../../include/nolibc/nolibc.h \
15 -ffreestanding -Wall $^ -o $@ -lgcc