Skip to content

Commit 7b8ea53

Browse files
Amerigo Wangmichal42
authored andcommitted
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 <Brice.Goglin@inria.fr> Tested-by: Brice Goglin <Brice.Goglin@inria.fr> Signed-off-by: WANG Cong <amwang@redhat.com> Signed-off-by: Michal Marek <mmarek@suse.cz>
1 parent e981b06 commit 7b8ea53

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎Makefile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1408,8 +1408,8 @@ checkstack:
14081408
$(OBJDUMP) -d vmlinux $$(find . -name '*.ko') | \
14091409
$(PERL) $(src)/scripts/checkstack.pl $(CHECKSTACK_ARCH)
14101410

1411-
kernelrelease: include/config/kernel.release
1412-
@echo $(KERNELRELEASE)
1411+
kernelrelease:
1412+
@echo "$(KERNELVERSION)$$($(CONFIG_SHELL) $(srctree)/scripts/setlocalversion $(srctree))"
14131413

14141414
kernelversion:
14151415
@echo $(KERNELVERSION)

0 commit comments

Comments
 (0)