aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMichal Marek <mmarek@suse.cz>2013-07-11 09:34:51 -0400
committerMichal Marek <mmarek@suse.cz>2013-08-28 11:09:54 -0400
commit0d0e7718a9da789dec7932b7411ab16047540c4f (patch)
treefdc9b67e397376155296adb19ad2a67899b264dd /Makefile
parent4f9879f6c6454f255cb81b7a34dd35e355679f4b (diff)
kbuild: Do not overwrite include/config/kernel.release needlessly
Use filechk to detect if the content changed or not. Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 9262ba8da4f9..cf897763d98e 100644
--- a/Makefile
+++ b/Makefile
@@ -794,10 +794,13 @@ PHONY += $(vmlinux-dirs)
794$(vmlinux-dirs): prepare scripts 794$(vmlinux-dirs): prepare scripts
795 $(Q)$(MAKE) $(build)=$@ 795 $(Q)$(MAKE) $(build)=$@
796 796
797define filechk_kernel.release
798 echo "$(KERNELVERSION)$$($(CONFIG_SHELL) $(srctree)/scripts/setlocalversion $(srctree))"
799endef
800
797# Store (new) KERNELRELEASE string in include/config/kernel.release 801# Store (new) KERNELRELEASE string in include/config/kernel.release
798include/config/kernel.release: include/config/auto.conf FORCE 802include/config/kernel.release: include/config/auto.conf FORCE
799 $(Q)rm -f $@ 803 $(call filechk,kernel.release)
800 $(Q)echo "$(KERNELVERSION)$$($(CONFIG_SHELL) $(srctree)/scripts/setlocalversion $(srctree))" > $@
801 804
802 805
803# Things we need to do before we recursively start building the kernel 806# Things we need to do before we recursively start building the kernel