162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0 262306a36Sopenharmony_ci# Copyright (C) 2021 ARM Limited 362306a36Sopenharmony_ci 462306a36Sopenharmony_ciTEST_GEN_PROGS := hwcap ptrace syscall-abi tpidr2 562306a36Sopenharmony_ci 662306a36Sopenharmony_ciinclude ../../lib.mk 762306a36Sopenharmony_ci 862306a36Sopenharmony_ci$(OUTPUT)/syscall-abi: syscall-abi.c syscall-abi-asm.S 962306a36Sopenharmony_ci 1062306a36Sopenharmony_ci# Build with nolibc since TPIDR2 is intended to be actively managed by 1162306a36Sopenharmony_ci# libc and we're trying to test the functionality that it depends on here. 1262306a36Sopenharmony_ci$(OUTPUT)/tpidr2: tpidr2.c 1362306a36Sopenharmony_ci $(CC) -fno-asynchronous-unwind-tables -fno-ident -s -Os -nostdlib \ 1462306a36Sopenharmony_ci -static -include ../../../../include/nolibc/nolibc.h \ 1562306a36Sopenharmony_ci -ffreestanding -Wall $^ -o $@ -lgcc 16