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:
+1
-3
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user