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