mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-10 07:44:23 +08:00
7a9bcaaad5
Add some trivial hwcap validation which checks that /proc/cpuinfo and AT_HWCAP agree with each other and can verify that for extensions that can generate a SIGILL due to adding new instructions one appears or doesn't appear as expected. I've added SVE and SME, other capabilities can be added later if this gets merged. This isn't super exciting but on the other hand took very little time to write and should be handy when verifying that you wired up AT_HWCAP properly. Signed-off-by: Mark Brown <broonie@kernel.org> Link: https://lore.kernel.org/r/20220829154602.827275-1-broonie@kernel.org Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
16 lines
528 B
Makefile
16 lines
528 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
# Copyright (C) 2021 ARM Limited
|
|
|
|
TEST_GEN_PROGS := hwcap 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 \
|
|
-ffreestanding -Wall $^ -o $@ -lgcc
|