makefile: not need to regenerate kernel.release file when make kernelrelease
PATCH 1/1 makefile: not need to regenerate kernel.release file when make kernelrelease
Brice reported that 'kernelrelease' has a dependence on include/config/kernel.release, causes this file to be regenerated every time when invoke it. It doesn't have to.
Reported-by Brice Goglin <[email protected]>
Tested-by Brice Goglin <[email protected]>
Signed-off-by WANG Cong <[email protected]>
---
Makefile +2 -2
@@ -1408,8 +1408,8 @@ checkstack: $(OBJDUMP) -d vmlinux $$(find . -name '*.ko') | \ $(PERL) $(src)/scripts/checkstack.pl $(CHECKSTACK_ARCH) -kernelrelease: include/config/kernel.release - @echo $(KERNELRELEASE) +kernelrelease: + @echo "$(KERNELVERSION)$$($(CONFIG_SHELL) $(srctree)/scripts/setlocalversion $(srctree))" kernelversion: @echo $(KERNELVERSION)
Michal Marek
AppliedQuoted 6 lines · Amerigo Wang
Brice reported that 'kernelrelease' has a dependence on
include/config/kernel.release, causes this file to be regenerated every time when invoke it. It doesn't have to.Reported-by Brice Goglin<[email protected]>Tested-by Brice Goglin<[email protected]>Signed-off-by WANG Cong<[email protected]>
Thanks, applied. And sorry for breaking your previous patch.
Michal