From patchwork Fri Aug 20 09:36:06 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amerigo Wang X-Patchwork-Id: 120598 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o7K9bxh4022299 for ; Fri, 20 Aug 2010 09:38:00 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752680Ab0HTJgx (ORCPT ); Fri, 20 Aug 2010 05:36:53 -0400 Received: from mx1.redhat.com ([209.132.183.28]:23459 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752562Ab0HTJgw (ORCPT ); Fri, 20 Aug 2010 05:36:52 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o7K9a9bv032741 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 20 Aug 2010 05:36:09 -0400 Received: from localhost.localdomain (dhcp-65-142.nay.redhat.com [10.66.65.142]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o7K9a66Z020937; Fri, 20 Aug 2010 05:36:07 -0400 Date: Fri, 20 Aug 2010 05:36:06 -0400 From: Amerigo Wang To: linux-kernel@vger.kernel.org Cc: Brice Goglin , akpm@linux-foundation.org, linux-kbuild@vger.kernel.org, Amerigo Wang , Michal Marek Message-Id: <20100820094028.6321.95741.sendpatchset@localhost.localdomain> Subject: [Patch] makefile: not need to regenerate kernel.release file when make kernelrelease X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Fri, 20 Aug 2010 09:38:00 +0000 (UTC) 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)