Commit 7b8ea53d7f1865cd8f05dfb8f706a4ff5a72abcf

Authored by Amerigo Wang
Committed by Michal Marek
1 parent e981b06076

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>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

... ... @@ -1408,8 +1408,8 @@
1408 1408 $(OBJDUMP) -d vmlinux $$(find . -name '*.ko') | \
1409 1409 $(PERL) $(src)/scripts/checkstack.pl $(CHECKSTACK_ARCH)
1410 1410  
1411   -kernelrelease: include/config/kernel.release
1412   - @echo $(KERNELRELEASE)
  1411 +kernelrelease:
  1412 + @echo "$(KERNELVERSION)$$($(CONFIG_SHELL) $(srctree)/scripts/setlocalversion $(srctree))"
1413 1413  
1414 1414 kernelversion:
1415 1415 @echo $(KERNELVERSION)