[PATCH 1/2] kbuild: Mark usr_gen_init_cpio as no-dot-config-target
From: Nicolas Schier
Date: Mon Mar 09 2026 - 03:56:46 EST
Let usr/gen_init_cpio be built also if there is no kernel configuration.
Askar Safin reported that gen_init_cpio may be of use before any kernel
configuration is available. Add usr_gen_init_cpio to list of targets
that do not require a .config file.
Reported-by: Askar Safin <safinaskar@xxxxxxxxx>
Closes: https://lore.kernel.org/all/20260220191150.244006-1-safinaskar@xxxxxxxxx
Fixes: f8e05c10631e ("kbuild: Add top-level target for building gen_init_cpio")
Signed-off-by: Nicolas Schier <nsc@xxxxxxxxxx>
---
Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/Makefile b/Makefile
index e944c6e71e81..0e788ce45457 100644
--- a/Makefile
+++ b/Makefile
@@ -296,6 +296,7 @@ no-dot-config-targets := $(clean-targets) \
$(version_h) headers headers_% archheaders archscripts \
%asm-generic kernelversion %src-pkg dt_binding_check \
outputmakefile rustavailable rustfmt rustfmtcheck \
+ usr_gen_init_cpio \
run-command
no-sync-config-targets := $(no-dot-config-targets) %install modules_sign kernelrelease \
image_name
--
2.51.0