mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-08-14 06:22:34 +02:00
Standardize the compiler output flag format across all RISC-V selftests by adding a space between '-o' and '$@'. Although '-o$@' is perfectly valid for GCC/Clang to parse, changing it to '-o $@' with a space aligns with the GNU official documentation conventions, improves readability by visually separating the flag from the target variable, and ensures consistency with other architectures. Currently, RISC-V selftests use '-o$@' (without space) in 13 instances across 6 Makefiles, while all other architectures consistently use '-o $@' (with space). This inconsistency makes RISC-V an outlier in the kernel's selftest infrastructure. Signed-off-by: Zong Li <zong.li@sifive.com> Link: https://patch.msgid.link/20260511032917.3542802-1-zong.li@sifive.com [pjw@kernel.org: cleaned up patch description] Signed-off-by: Paul Walmsley <pjw@kernel.org>
19 lines
484 B
Makefile
19 lines
484 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) $^
|