1b77e995eSMark Brown# SPDX-License-Identifier: GPL-2.0 2b77e995eSMark Brown# Copyright (C) 2021 ARM Limited 3b77e995eSMark Brown 4*ecaf4d3fSMark BrownTEST_GEN_PROGS := hwcap ptrace syscall-abi tpidr2 5b77e995eSMark Brown 6b77e995eSMark Browninclude ../../lib.mk 7b77e995eSMark Brown 8b77e995eSMark Brown$(OUTPUT)/syscall-abi: syscall-abi.c syscall-abi-asm.S 930e3a42bSMark Brown 1030e3a42bSMark Brown# Build with nolibc since TPIDR2 is intended to be actively managed by 1130e3a42bSMark Brown# libc and we're trying to test the functionality that it depends on here. 1230e3a42bSMark Brown$(OUTPUT)/tpidr2: tpidr2.c 1330e3a42bSMark Brown $(CC) -fno-asynchronous-unwind-tables -fno-ident -s -Os -nostdlib \ 1430e3a42bSMark Brown -static -include ../../../../include/nolibc/nolibc.h \ 1530e3a42bSMark Brown -ffreestanding -Wall $^ -o $@ -lgcc 16