mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-01 15:14:52 +00:00

Test the RISCV_HWPROBE_WHICH_CPUS flag of hwprobe. The test also has a command line interface in order to get the cpu list for arbitrary hwprobe pairs. Reviewed-by: Palmer Dabbelt <palmer@rivosinc.com> Signed-off-by: Andrew Jones <ajones@ventanamicro.com> Link: https://lore.kernel.org/r/20231122164700.127954-10-ajones@ventanamicro.com Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
19 lines
481 B
Makefile
19 lines
481 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
# Copyright (C) 2021 ARM Limited
|
|
# Originally tools/testing/arm64/abi/Makefile
|
|
|
|
CFLAGS += -I$(top_srcdir)/tools/include
|
|
|
|
TEST_GEN_PROGS := hwprobe cbo which-cpus
|
|
|
|
include ../../lib.mk
|
|
|
|
$(OUTPUT)/hwprobe: hwprobe.c sys_hwprobe.S
|
|
$(CC) -static -o$@ $(CFLAGS) $(LDFLAGS) $^
|
|
|
|
$(OUTPUT)/cbo: cbo.c sys_hwprobe.S
|
|
$(CC) -static -o$@ $(CFLAGS) $(LDFLAGS) $^
|
|
|
|
$(OUTPUT)/which-cpus: which-cpus.c sys_hwprobe.S
|
|
$(CC) -static -o$@ $(CFLAGS) $(LDFLAGS) $^
|