16 lines · plain
1# SPDX-License-Identifier: GPL-2.02# Copyright (C) 2021 ARM Limited3 4TEST_GEN_PROGS := hwcap ptrace syscall-abi tpidr25 6include ../../lib.mk7 8$(OUTPUT)/syscall-abi: syscall-abi.c syscall-abi-asm.S9 10# Build with nolibc since TPIDR2 is intended to be actively managed by11# libc and we're trying to test the functionality that it depends on here.12$(OUTPUT)/tpidr2: tpidr2.c13 $(CC) -fno-asynchronous-unwind-tables -fno-ident -s -Os -nostdlib \14 -static -include ../../../../include/nolibc/nolibc.h \15 -ffreestanding -Wall $^ -o $@ -lgcc16