summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorNathan Chancellor <nathan@kernel.org>2026-10-17 15:20:23 -0700
committerNathan Chancellor <nathan@kernel.org>2026-10-17 15:20:23 -0700
commit997208ce9f43f01febac956cf9aeffe89945e3c1 (patch)
treed4231d4fd038bb85afba855543686ceb5cafc0f6 /kernel
parent2b358510d5cc56164f83110ca1499c95a5a352cd (diff)
parentae5f6044c4cdffe2b3361b15c1d6fc67b339f2a4 (diff)
downloadlinux-997208ce9f43f01febac956cf9aeffe89945e3c1.tar.gz
linux-997208ce9f43f01febac956cf9aeffe89945e3c1.zip
Merge branch 'kbuild-next-speedups' into kbuild-next
This is the first round of commits and fix-ups from Lorenzo's Kbuild speed up series. Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/kernel/Makefile b/kernel/Makefile
index 1e1a31673577..c64c82c96b40 100644
--- a/kernel/Makefile
+++ b/kernel/Makefile
@@ -153,9 +153,13 @@ obj-$(CONFIG_SCF_TORTURE_TEST) += scftorture.o
$(obj)/configs.o: $(obj)/config_data.gz
+# .config is small, so it is compressed with gzip rather than the image compressor.
+quiet_cmd_gzip_config = GZIP $@
+ cmd_gzip_config = cat $(real-prereqs) | $(KGZIP) -n -f -9 > $@
+
targets += config_data config_data.gz
$(obj)/config_data.gz: $(obj)/config_data FORCE
- $(call if_changed,gzip)
+ $(call if_changed,gzip_config)
filechk_cat = cat $<