diff options
author | Svetlana Khafizova <sv.khafizova@gmail.com> | 2012-07-23 17:36:48 +0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-07-23 22:09:19 +0200 |
commit | 4d1fe257a384a0b6f3a90e819b923f8e94ffdac9 (patch) | |
tree | 60fae1c6a68d7b338acdaa7608df14677c40a3da /Makefile | |
parent | b47220d7f70df9191fc456dbcaeaa6ead72c6c02 (diff) | |
download | barebox-4d1fe257a384a0b6f3a90e819b923f8e94ffdac9.tar.gz barebox-4d1fe257a384a0b6f3a90e819b923f8e94ffdac9.tar.xz |
Makefile: update barebox version if CONFIG_KALLSYMS is not set
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 <sv.khafizova@gmail.com>
Signed-off-by: Aleksey Kuleshov <rndfax@yandex.ru>
Acked-by:: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Tested-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |