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
-2
View File
@@ -19,8 +19,6 @@ LOG_MODULE_REGISTER(data_nodes, CONFIG_LOG_DEFAULT_LEVEL);
#include "setup.h"
#include "version.h"
// can be used to configure custom data objects in separate file instead
// (e.g. data_nodes_custom.cpp)
#ifndef CONFIG_CUSTOM_DATA_NODES_FILE