From: Michal Marek Date: Thu, 11 Jul 2013 13:34:51 +0000 (+0200) Subject: kbuild: Do not overwrite include/config/kernel.release needlessly X-Git-Tag: firefly_0821_release~176^2~5390^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0d0e7718a9da789dec7932b7411ab16047540c4f;p=firefly-linux-kernel-4.4.55.git kbuild: Do not overwrite include/config/kernel.release needlessly Use filechk to detect if the content changed or not. Signed-off-by: Michal Marek --- diff --git a/Makefile b/Makefile index 9262ba8da4f9..cf897763d98e 100644 --- a/Makefile +++ b/Makefile @@ -794,10 +794,13 @@ PHONY += $(vmlinux-dirs) $(vmlinux-dirs): prepare scripts $(Q)$(MAKE) $(build)=$@ +define filechk_kernel.release + echo "$(KERNELVERSION)$$($(CONFIG_SHELL) $(srctree)/scripts/setlocalversion $(srctree))" +endef + # Store (new) KERNELRELEASE string in include/config/kernel.release include/config/kernel.release: include/config/auto.conf FORCE - $(Q)rm -f $@ - $(Q)echo "$(KERNELVERSION)$$($(CONFIG_SHELL) $(srctree)/scripts/setlocalversion $(srctree))" > $@ + $(call filechk,kernel.release) # Things we need to do before we recursively start building the kernel