mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-01 06:39:05 +00:00

Recent work by Thomas Weißschuh means that it is now possible to use kselftest.h with nolibc. Convert the tpidr2 test which is nolibc specific to use kselftest.h, making it look more standard and ensuring it gets the benefit of any work done on kselftest.h. Signed-off-by: Mark Brown <broonie@kernel.org> Link: https://lore.kernel.org/r/20250609-kselftest-arm64-nolibc-header-v1-1-16ee1c6fbfed@kernel.org Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
16 lines
543 B
Makefile
16 lines
543 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
# Copyright (C) 2021 ARM Limited
|
|
|
|
TEST_GEN_PROGS := hwcap ptrace syscall-abi tpidr2
|
|
|
|
include ../../lib.mk
|
|
|
|
$(OUTPUT)/syscall-abi: syscall-abi.c syscall-abi-asm.S
|
|
|
|
# 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 \
|
|
-I../.. -ffreestanding -Wall $^ -o $@ -lgcc
|