aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/buildversion.py
Commit message (Collapse)AuthorAgeFilesLines
* build: Use git describe --alwaysKevin O'Connor2018-02-271-1/+1
| | | | | | | | Add --always flag to "git describe" command to get a build identifier even if one checks out the repo with a depth parameter that prunes out the last tagged version. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* build: fix typo in buildversion.pyRoger Pau Monne2015-12-281-1/+1
| | | | | | | | | | | | | | | | | Fixes the following build error: Building ld scripts Traceback (most recent call last): File "./scripts/buildversion.py", line 134, in <module> main() File "./scripts/buildversion.py", line 114, in main cleanbuild, toolstr = tool_versions(options.tools) File "./scripts/buildversion.py", line 90, in tool_versions vers[isbinutils] = "mixed" NameError: global name 'vers' is not defined Makefile:160: recipe for target 'out/romlayout16.lds' failed Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
* buildversion: Add debugging messagesKevin O'Connor2015-11-111-2/+19
| | | | | | | Add ability to output debug messages from the buildversion.py build script. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* buildversion: Avoid subprocess.check_output() as that requires python2.7Kevin O'Connor2015-11-091-13/+19
| | | | | | | Don't require python2.7 in buildversion.py. Also, ignore only those exceptions that are known to be possible. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* build: Allow official tarball builds to be considered "clean"Kevin O'Connor2015-10-231-2/+8
| | | | | | | | | | | If building from an official tarball and EXTRAVERSION info is provided, then consider the build to be "clean" (don't include hostname/build timestamp). This is done on the expectation that EXTRAVERSION will have enough information to allow developers to find the builder and build environment should a defect be reported, and therefore the hostname/timestamp is not necessary. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* build: Be more permissive in buildversion.py tool version scanKevin O'Connor2015-10-221-25/+23
| | | | | | | | There is some variation in version strings between various tool chain builds. Make the version tool scan more permissive to attempt to handle these variations. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* build: Generate "reproducible" version strings on "clean" buildsKevin O'Connor2015-10-151-4/+6
| | | | | | | | If the build environment looks "clean" then don't add the build hostname or build time to the version string. This makes the default build string reproducible across builds. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* build: Report gcc and binutils versions in debug logKevin O'Connor2015-10-151-4/+43
| | | | | | | Attempt to extract the gcc and binutils versions. Report that information in the debug log. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* build: Rework version generation; don't allow make version overrideKevin O'Connor2015-10-151-0/+66
Convert the script to generate the build version from a shell script to a python script. Remove the ability to override the version at build time via "make VERSION=xyz". Replace it with ability to add extra version information at build time via "make EXTRAVERSION=xyz". Signed-off-by: Kevin O'Connor <kevin@koconnor.net>