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

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

kbuild: Propagate LOCALVERSION= down to scripts/setlocalversion



Variables given on the make commandline are not exported to $(shell
...) commands, so run the setlocalversion script in the make rule
directly.

Signed-off-by: default avatarMichal Marek <mmarek@suse.cz>
parent 09155120
Loading
Loading
Loading
Loading
+1 −3
Original line number Original line Diff line number Diff line
@@ -884,11 +884,9 @@ $(vmlinux-dirs): prepare scripts
	$(Q)$(MAKE) $(build)=$@
	$(Q)$(MAKE) $(build)=$@


# Store (new) KERNELRELASE string in include/config/kernel.release
# Store (new) KERNELRELASE string in include/config/kernel.release
localversion = $(shell $(CONFIG_SHELL) \
	       $(srctree)/scripts/setlocalversion $(srctree))
include/config/kernel.release: include/config/auto.conf FORCE
include/config/kernel.release: include/config/auto.conf FORCE
	$(Q)rm -f $@
	$(Q)rm -f $@
	$(Q)echo $(KERNELVERSION)$(localversion) > $@
	$(Q)echo "$(KERNELVERSION)$$($(CONFIG_SHELL) 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