Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "lib/bm_core"]
path = lib/bm_core
url = https://github.com/bristlemouth/bm_core.git
[submodule "lib/tomlc17"]
path = lib/tomlc17
url = https://github.com/cktan/tomlc17.git
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ set(BM_HOSTED ON CACHE BOOL "Build bm_core for hosted environment (Linux/macOS)"

add_subdirectory(${BM_CORE_DIR})

# ---------------------------------------------------------------------------
# tomlc17 – TOML v1.1 parser (submodule, MIT license, tag R260323)
# ---------------------------------------------------------------------------
add_library(tomlc17 STATIC ${CMAKE_CURRENT_SOURCE_DIR}/lib/tomlc17/src/tomlc17.c)
target_include_directories(tomlc17 PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/lib/tomlc17/src)

# ---------------------------------------------------------------------------
# Git SHA – regenerated on every build via a custom command.
# The helper script only overwrites git_sha.h when the SHA changes,
Expand Down Expand Up @@ -81,7 +87,7 @@ target_include_directories(bm_sbc_core
target_include_directories(bm_sbc_core PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/generated)
add_dependencies(bm_sbc_core git_sha_header)

target_link_libraries(bm_sbc_core PUBLIC bmcore)
target_link_libraries(bm_sbc_core PUBLIC bmcore tomlc17)

# ---------------------------------------------------------------------------
# App selection helpers (section 5)
Expand Down
9 changes: 9 additions & 0 deletions examples/node1.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Example init file for a 2-node mesh: Node 1
#
# Usage:
# bm_sbc_multinode --init examples/node1.toml

node-id = "0x0000000000000001"
cfg-dir = "/tmp/bm_node1"
socket-dir = "/tmp"
peers = ["0x0000000000000002"]
9 changes: 9 additions & 0 deletions examples/node2.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Example init file for a 2-node mesh: Node 2
#
# Usage:
# bm_sbc_multinode --init examples/node2.toml

node-id = "0x0000000000000002"
cfg-dir = "/tmp/bm_node2"
socket-dir = "/tmp"
peers = ["0x0000000000000001"]
1 change: 1 addition & 0 deletions lib/tomlc17
Submodule tomlc17 added at 488cfe
Loading
Loading