]> granicus.if.org Git - esp-idf/commit
build system: trim crosstool-ng commit ID when checking version
authorIvan Grokhotkov <ivan@espressif.com>
Tue, 12 Sep 2017 10:50:33 +0000 (18:50 +0800)
committerIvan Grokhotkov <ivan@espressif.com>
Wed, 13 Sep 2017 09:27:47 +0000 (17:27 +0800)
commit82fb2768aaec2bc738826ebb36c37ac26f22ef79
tree093e500ab4f31def63e35f2551c2282b03dc81b6
parent61e3a5bd16e8e4d0b6ffe26c3d8a9f2517e1d26c
build system: trim crosstool-ng commit ID when checking version

Since 2.11.0, git does not default to 7 characters for short commit IDs,
instead automatically estimating the number of characters based on
repository size [1]. If the toolchain was compiled on a computer with
new version of git installed, commit ID will contain 8 characters, and
the check for the toolchain version will fail. As a workaround, trim the
commit ID to 7 characters when checking the version.

[1] https://github.com/git/git/commit/e6c587c733b4634030b353f4024794b08bc86892
make/project.mk