[<prev] [next>] [day] [month] [year] [list]
Message-ID: <C997B2D86EB526D5+4bc4efa1739f38c14463918474e8bfb3d8071041.1760463245.git.tanyuan@tinylab.org>
Date: Wed, 15 Oct 2025 14:18:08 +0800
From: Yuan Tan <tanyuan@...ylab.org>
To: arnd@...db.de,
masahiroy@...nel.org,
nathan@...nel.org,
palmer@...belt.com,
linux-kbuild@...r.kernel.org,
linux-riscv@...ts.infradead.org
Cc: linux-arch@...r.kernel.org,
linux-kernel@...r.kernel.org,
i@...kray.me,
tanyuan@...ylab.org,
falcon@...ylab.org,
ronbogo@...look.com,
z1652074432@...il.com,
lx24@....ynu.edu.cn
Subject: [PATCH v2 3/8] scripts/Makefile.asm-headers: pass USED_SYSCALLS to syscalltbl.sh
From: Yuhang Zheng <z1652074432@...il.com>
Include auto.conf in asm-headers and pass CONFIG_USED_SYSCALLS to
syscalltbl.sh when CONFIG_TRIM_UNUSED_SYSCALLS is enabled.
Signed-off-by: Yuhang Zheng <z1652074432@...il.com>
Signed-off-by: Yuan Tan <tanyuan@...ylab.org>
Signed-off-by: Zhangjin Wu <falcon@...ylab.org>
---
scripts/Makefile.asm-headers | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/scripts/Makefile.asm-headers b/scripts/Makefile.asm-headers
index 8a4856e74180..0ae82c6a2a15 100644
--- a/scripts/Makefile.asm-headers
+++ b/scripts/Makefile.asm-headers
@@ -13,6 +13,8 @@
PHONY := all
all:
+include $(objtree)/include/config/auto.conf
+
src := $(srctree)/$(subst /generated,,$(obj))
syscall_abis_32 += common,32
@@ -68,6 +70,8 @@ quiet_cmd_systbl = SYSTBL $@
cmd_systbl = $(CONFIG_SHELL) $(systbl) \
$(if $(systbl-args-$*),$(systbl-args-$*),$(systbl-args)) \
--abis $(subst $(space),$(comma),$(strip $(syscall_abis_$*))) \
+ $(if $(CONFIG_TRIM_UNUSED_SYSCALLS), \
+ --used-syscalls=$(subst $(space),$(comma),$(strip $(CONFIG_USED_SYSCALLS)))) \
$< $@
all: $(generic-y) $(syscall-y)
--
2.43.0
Powered by blists - more mailing lists