Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: GPL-2.0
0002 # Copyright (C) 2021 ARM Limited
0003 
0004 TEST_GEN_PROGS := syscall-abi tpidr2
0005 
0006 include ../../lib.mk
0007 
0008 $(OUTPUT)/syscall-abi: syscall-abi.c syscall-abi-asm.S
0009 
0010 # Build with nolibc since TPIDR2 is intended to be actively managed by
0011 # libc and we're trying to test the functionality that it depends on here.
0012 $(OUTPUT)/tpidr2: tpidr2.c
0013         $(CC) -fno-asynchronous-unwind-tables -fno-ident -s -Os -nostdlib \
0014                 -static -include ../../../../include/nolibc/nolibc.h \ 
0015                 -ffreestanding -Wall $^ -o $@ -lgcc