Skip to content
This repository was archived by the owner on Sep 7, 2020. It is now read-only.

Commit 0ca22ec

Browse files
committed
cmake: include AMBIORIX to the bpl with specific flag
Add CMake option to ENABLE_AMBIORIX flag. If this flag is ON, then search and include AMBIORIX libs in the build. Part-of: https://jira.prplfoundation.org/browse/PPM-300 Signed-off-by: Anton Bilohai <a.bilohai@inango-systems.com>
1 parent 4b31821 commit 0ca22ec

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ option (BUILD_AGENT "Build EasyMesh agent" ON)
1414
option (BUILD_CONTROLLER "Build EasyMesh controller" ON)
1515

1616
option(BUILD_SHARED_LIBS "Build shared libraries (.so) instead of static ones (.a)" ON)
17+
option (ENABLE_AMBIORIX "Include Bus agnostic API in the build" OFF)
1718

1819
## Generic checks and defaults
1920

framework/platform/bpl/CMakeLists.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,17 @@ set(BEEROCKS_WPA_SUPPLICANT_WLAN3_CTRL_IFACE "/var/run/wpa_supplicant/${BEEROCKS
2424

2525
# Add prplmesh_platform_db config generation
2626
add_subdirectory(platform_db)
27+
# Include AMBIORIX in the build
28+
message(STATUS "ENABLE_AMBIORIX: ${ENABLE_AMBIORIX}")
29+
if (ENABLE_AMBIORIX)
30+
find_package(amxb REQUIRED)
31+
find_package(amxc REQUIRED)
32+
find_package(amxd REQUIRED)
33+
find_package(amxj REQUIRED)
34+
find_package(amxo REQUIRED)
35+
find_package(amxp REQUIRED)
36+
list(APPEND BPL_LIBS amxb amxc amxd amxj amxo amxp)
37+
endif()
2738

2839
# OpenWRT
2940
if (TARGET_PLATFORM STREQUAL "openwrt")

0 commit comments

Comments
 (0)