Skip to content

Commit

Permalink
kbuild: Do not overwrite include/config/kernel.release needlessly
Browse files Browse the repository at this point in the history
Use filechk to detect if the content changed or not.

Signed-off-by: Michal Marek <[email protected]>
  • Loading branch information
michal42 committed Aug 28, 2013
1 parent 4f9879f commit 0d0e771
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0d0e771

Please sign in to comment.