Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0d0e7718 authored by Michal Marek's avatar Michal Marek
Browse files

kbuild: Do not overwrite include/config/kernel.release needlessly



Use filechk to detect if the content changed or not.

Signed-off-by: default avatarMichal Marek <mmarek@suse.cz>
parent 4f9879f6
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -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