diff options
author | Michal Marek <mmarek@suse.cz> | 2013-07-11 15:34:51 +0200 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2013-08-28 17:09:54 +0200 |
commit | 0d0e7718a9da789dec7932b7411ab16047540c4f (patch) | |
tree | fdc9b67e397376155296adb19ad2a67899b264dd /Makefile | |
parent | 4f9879f6c6454f255cb81b7a34dd35e355679f4b (diff) | |
download | lwn-0d0e7718a9da789dec7932b7411ab16047540c4f.tar.gz lwn-0d0e7718a9da789dec7932b7411ab16047540c4f.zip |
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-- | Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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 |