generate version strings only once per build
Created originally on Bitbucket by frantony (Antony Pavlov)
Was already merged in Bitbucket before import, marked as merged by the import user
Source changeset not longer availableat the time of import. Commit listwill look empty
This pull request fixes the issue #1580 (closed) (two different version strings in the image).
Before this commits there were two sets of version strings --- one in the binary header of per-platform autoboot.bin (version.bin) and the other one in the generate version.c file.
This commits introduce generation of the compile.h header files. The macros in this files are used as for binary headers generation as for version string for displaying it to the user.