Generate COMMIT_HASH define via CMake

Previously the commit hash was generated with a python script which was only
called by PlatformIO and caused issues when using Zephyr SDK directly.
This commit is contained in:
Martin Jäger
2020-07-23 17:34:41 +02:00
parent c2ef955a63
commit 5e213fdfb1
5 changed files with 13 additions and 27 deletions
+1 -3
View File
@@ -45,8 +45,6 @@ build_flags =
-Wl,-Map,memory.map
build_unflags = -std=gnu++98 -std=gnu++14
extra_scripts =
generate_version_file.py
check_tool = cppcheck, clangtidy
check_flags =
@@ -84,7 +82,7 @@ build_flags =
-Wall
-D UNIT_TEST
-D __STDC_FORMAT_MACROS
-D COMMIT_HASH=\"test\"
-I test
# include src directory (otherwise unit-tests will only include lib directory)
test_build_project_src = true
extra_scripts =