From 748c75489eff09a549c8beef2b6c435c9ca837cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20J=C3=A4ger?= Date: Mon, 26 Jul 2021 10:11:39 +0200 Subject: [PATCH] Include ThingSet as Zephyr module instead of git submodule --- .gitmodules | 3 --- lib/thingset | 1 - platformio.ini | 3 +++ zephyr/CMakeLists.txt | 1 - zephyr/prj.conf | 2 ++ zephyr/west.yml | 4 ++++ 6 files changed, 9 insertions(+), 5 deletions(-) delete mode 160000 lib/thingset diff --git a/.gitmodules b/.gitmodules index 3716117..bed68be 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,6 +1,3 @@ -[submodule "lib/thingset"] - path = lib/thingset - url = https://github.com/LibreSolar/thingset-device-library [submodule "lib/oled-display"] path = lib/oled-display url = https://github.com/LibreSolar/oled-display-library diff --git a/lib/thingset b/lib/thingset deleted file mode 160000 index 0c39567..0000000 --- a/lib/thingset +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 0c39567a0feca1ba8036d4bd74d601cb4f02a7ba diff --git a/platformio.ini b/platformio.ini index e808b54..c9eff91 100644 --- a/platformio.ini +++ b/platformio.ini @@ -54,6 +54,9 @@ check_flags = # --addon=addons/misra.py --addon=addons/cert.py clangtidy: --checks=-*,cert-*,clang-analyzer-*,bugprone-*,misc-*,performance-*,readability-*,-readability-magic-numbers,-cert-err58-cpp +lib_deps = + https://github.com/LibreSolar/thingset-device-library.git + #### BOARD DEFINITIONS ######################################################## # You can specify a specific version by adding e.g. @0.2 to the board name diff --git a/zephyr/CMakeLists.txt b/zephyr/CMakeLists.txt index eb1c465..b466c77 100644 --- a/zephyr/CMakeLists.txt +++ b/zephyr/CMakeLists.txt @@ -11,7 +11,6 @@ project(libre_solar_charge_controller) add_subdirectory(../src build/src) -add_subdirectory(../lib/thingset build/thingset) add_subdirectory(../lib/oled-display build/oled-display) # determine git tag and commit hash for automatic firmware versioning diff --git a/zephyr/prj.conf b/zephyr/prj.conf index 9d47148..5aaaab5 100644 --- a/zephyr/prj.conf +++ b/zephyr/prj.conf @@ -24,6 +24,8 @@ CONFIG_CONSOLE_GETCHAR=y CONFIG_LOG=y CONFIG_LOG_MODE_MINIMAL=y +CONFIG_THINGSET=y + # ThingSet protocol interface via UART serial CONFIG_THINGSET_SERIAL=y diff --git a/zephyr/west.yml b/zephyr/west.yml index b335788..cf0c992 100644 --- a/zephyr/west.yml +++ b/zephyr/west.yml @@ -18,3 +18,7 @@ manifest: - cmsis - edtt - hal_stm32 + - name: thingset-device-library + remote: libresolar + revision: 0e695f719bb8cf10de212b2b9f41fba65d9327df + path: zephyr/modules/thingset