diff --git a/CMakeLists.txt b/CMakeLists.txt index 61e3534b01..003f61e316 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,6 +14,7 @@ option (BUILD_AGENT "Build EasyMesh agent" ON) option (BUILD_CONTROLLER "Build EasyMesh controller" ON) option(BUILD_SHARED_LIBS "Build shared libraries (.so) instead of static ones (.a)" ON) +option (ENABLE_AMBIORIX "Include Bus agnostic API in the build" OFF) ## Generic checks and defaults diff --git a/framework/platform/bpl/CMakeLists.txt b/framework/platform/bpl/CMakeLists.txt index 3fe9d810f4..82be1819eb 100644 --- a/framework/platform/bpl/CMakeLists.txt +++ b/framework/platform/bpl/CMakeLists.txt @@ -24,6 +24,17 @@ set(BEEROCKS_WPA_SUPPLICANT_WLAN3_CTRL_IFACE "/var/run/wpa_supplicant/${BEEROCKS # Add prplmesh_platform_db config generation add_subdirectory(platform_db) +# Include AMBIORIX in the build +message(STATUS "ENABLE_AMBIORIX: ${ENABLE_AMBIORIX}") +if (ENABLE_AMBIORIX) + find_package(amxb REQUIRED) + find_package(amxc REQUIRED) + find_package(amxd REQUIRED) + find_package(amxj REQUIRED) + find_package(amxo REQUIRED) + find_package(amxp REQUIRED) + list(APPEND BPL_LIBS amxb amxc amxd amxj amxo amxp) +endif() # OpenWRT if (TARGET_PLATFORM STREQUAL "openwrt")