From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-lb0-f177.google.com ([209.85.217.177]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1StIr3-0008B3-4I for barebox@lists.infradead.org; Mon, 23 Jul 2012 13:39:29 +0000 Received: by lbbgg6 with SMTP id gg6so8391472lbb.36 for ; Mon, 23 Jul 2012 06:39:17 -0700 (PDT) From: Svetlana Khafizova Date: Mon, 23 Jul 2012 17:36:48 +0400 Message-Id: <1343050608-2091-1-git-send-email-sv.khafizova@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH] Makefile: update barebox version if CONFIG_KALLSYMS is not set To: barebox@lists.infradead.org Cc: Aleksey Kuleshov , Svetlana Khafizova If CONFIG_KALLSYMS is not set then barebox version is always "#0". By-default on mips boards CONFIG_KALLSYMS don't set, so barebox version does not increase after every build. This patch fixes the problem. Signed-off-by: Svetlana Khafizova Signed-off-by: Aleksey Kuleshov Acked-by:: Antony Pavlov --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ebcf9bf..ac5eaaf 100644 --- a/Makefile +++ b/Makefile @@ -549,12 +549,13 @@ quiet_cmd_sysmap = SYSMAP cmd_sysmap = $(CONFIG_SHELL) $(srctree)/scripts/mksysmap # Link of barebox +# If CONFIG_KALLSYMS is set .version is already updated # Generate System.map and verify that the content is consistent # Use + in front of the barebox_version rule to silent warning with make -j2 # First command is ':' to allow us to use + in front of the rule define rule_barebox__ : - + $(if $(CONFIG_KALLSYMS),,+$(call cmd,barebox_version)) $(call cmd,barebox__) $(Q)echo 'cmd_$@ := $(cmd_barebox__)' > $(@D)/.$(@F).cmd -- 1.7.10.4 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox