mirror of
https://github.com/torvalds/linux
synced 2024-10-15 15:59:15 +00:00
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>
This commit is contained in:
parent
4f9879f6c6
commit
0d0e7718a9
7
Makefile
7
Makefile
|
@ -794,10 +794,13 @@ PHONY += $(vmlinux-dirs)
|
||||||
$(vmlinux-dirs): prepare scripts
|
$(vmlinux-dirs): prepare scripts
|
||||||
$(Q)$(MAKE) $(build)=$@
|
$(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
|
# Store (new) KERNELRELEASE string in include/config/kernel.release
|
||||||
include/config/kernel.release: include/config/auto.conf FORCE
|
include/config/kernel.release: include/config/auto.conf FORCE
|
||||||
$(Q)rm -f $@
|
$(call filechk,kernel.release)
|
||||||
$(Q)echo "$(KERNELVERSION)$$($(CONFIG_SHELL) $(srctree)/scripts/setlocalversion $(srctree))" > $@
|
|
||||||
|
|
||||||
|
|
||||||
# Things we need to do before we recursively start building the kernel
|
# Things we need to do before we recursively start building the kernel
|
||||||
|
|
Loading…
Reference in a new issue