diff options
author | Wolfgang Denk <wd@denx.de> | 2011-02-12 09:37:11 (GMT) |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-04-12 20:58:33 (GMT) |
commit | 976b38c0742dc1db13af03cae9ded4392e47182d (patch) | |
tree | 5c61700ed8b85997084784c3a66a0d7e19815a21 /Makefile | |
parent | 04c2dd827b5887561b182653e47545d19b934c46 (diff) | |
download | u-boot-fsl-qoriq-976b38c0742dc1db13af03cae9ded4392e47182d.tar.xz |
mkimage: add "-V" option to print version information
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -413,8 +413,12 @@ $(obj)u-boot-onenand.bin: onenand_ipl $(obj)u-boot.bin cat $(ONENAND_BIN) $(obj)u-boot.bin > $(obj)u-boot-onenand.bin $(VERSION_FILE): - @( printf '#define U_BOOT_VERSION "U-Boot %s%s"\n' "$(U_BOOT_VERSION)" \ - '$(shell $(TOPDIR)/tools/setlocalversion $(TOPDIR))' ) > $@.tmp + @( localvers='$(shell $(TOPDIR)/tools/setlocalversion $(TOPDIR))' ; \ + printf '#define PLAIN_VERSION "%s%s"\n' \ + "$(U_BOOT_VERSION)" "$${localvers}" ; \ + printf '#define U_BOOT_VERSION "U-Boot %s%s"\n' \ + "$(U_BOOT_VERSION)" "$${localvers}" ; \ + ) > $@.tmp @( printf '#define CC_VERSION_STRING "%s"\n' \ '$(shell $(CC) --version | head -n 1)' )>> $@.tmp @( printf '#define LD_VERSION_STRING "%s"\n' \ |