
Dear Alexander Holler,
In message 4D35C836.3020400@ahsoftware.de you wrote:
@@ -416,6 +416,8 @@ $(U_BOOT_ONENAND): $(ONENAND_IPL) $(obj)u-boot.bin $(VERSION_FILE): @( printf '#define U_BOOT_VERSION "U-Boot %s%s"\n' "$(U_BOOT_VERSION)" \ '$(shell $(TOPDIR)/tools/setlocalversion $(TOPDIR))' )> $@.tmp
@( printf '#define CC_VERSION_STRING "%s"\n' \
'$(shell $(CC) --version | head -1)' )>> $@.tmp @cmp -s $@ $@.tmp&& rm -f $@.tmp || mv -f $@.tmp $@
$(TIMESTAMP_FILE):
That would the trick. The first line of gcc --version includes here the correct string. Thanks. (Btw. I would use head -n 1)
But I will wait for a comment from one of the maintainers about defining CC_VERSION_STRING.
If someone gives me an ok, I will write a patch including your suggestion and will print that version in the command version.
Looks good to me - please go on.
Hm... while we are at it... the bintuils (especially linker) version is probably equally interesting, so eventually we should also add a LD_VERSION_STRING.
Best regards,
Wolfgang Denk