[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20100820094028.6321.95741.sendpatchset@localhost.localdomain>
Date: Fri, 20 Aug 2010 05:36:06 -0400
From: Amerigo Wang <amwang@...hat.com>
To: linux-kernel@...r.kernel.org
Cc: Brice Goglin <Brice.Goglin@...ia.fr>, akpm@...ux-foundation.org,
linux-kbuild@...r.kernel.org, Amerigo Wang <amwang@...hat.com>,
Michal Marek <mmarek@...e.cz>
Subject: [Patch] 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@...ia.fr>
Tested-by: Brice Goglin <Brice.Goglin@...ia.fr>
Signed-off-by: WANG Cong <amwang@...hat.com>
---
diff --git a/Makefile b/Makefile
index f3bdff8..25da252 100644
--- a/Makefile
+++ b/Makefile
@@ -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)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists