Allow more generic firmware customization

This commit adds a new Kconfig setting CONFIG_CUSTOMIZATION. If enabled, the
subdirectory src/custom is added to the build. It can contain an own
CMakeLists.txt file to add several different C/C++ files.

Readme has been updated to explain also DTS overlays and custom prj.conf files.
This commit is contained in:
Martin Jäger
2020-06-04 11:50:09 +02:00
committed by Martin Jäger
parent 0e5e2f89b1
commit 7769e4063c
3 changed files with 56 additions and 6 deletions
+20 -6
View File
@@ -19,12 +19,6 @@ config LIBRE_SOLAR_TYPE_ID
help
Numeric Libre Solar hardware type ID
config CUSTOM_DATA_NODES_FILE
bool
default n
help
Use the custom made data_nodes file
#
# Visible (user-configurable) Kconfig symbols
#
@@ -183,3 +177,23 @@ config THINGSET_MAKER_PASSWORD
default "maker456"
endmenu
menuconfig CUSTOMIZATION
bool "Firmware customization"
help
Activating this option allows to overwrite existing firmware functions
or add customizations independent of the master branch.
Custom implementations should be stored in the
src/custom subdirectory.
if CUSTOMIZATION
config CUSTOM_DATA_NODES_FILE
bool "Use custom data nodes file"
default n
help
Use a custom file instead of default data_nodes.cpp for
ThingSet configuration.
endif