Makefile 535 B

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