16 lines
522 B
Makefile
Raw Normal View History

2022-04-02 18:24:21 +05:00
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2021 ARM Limited
2022-09-09 14:21:57 +05:00
TEST_GEN_PROGS := syscall-abi tpidr2
2022-04-02 18:24:21 +05:00
include ../../lib.mk
$(OUTPUT)/syscall-abi: syscall-abi.c syscall-abi-asm.S
2022-09-09 14:21:57 +05:00
# Build with nolibc since TPIDR2 is intended to be actively managed by
# libc and we're trying to test the functionality that it depends on here.
$(OUTPUT)/tpidr2: tpidr2.c
$(CC) -fno-asynchronous-unwind-tables -fno-ident -s -Os -nostdlib \
-static -include ../../../../include/nolibc/nolibc.h \
-ffreestanding -Wall $^ -o $@ -lgcc