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

Commit

Permalink
cmake: include AMBIORIX to the bpl with specific flag
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
abelog committed Jul 22, 2020
1 parent 4b31821 commit 0ca22ec
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
11 changes: 11 additions & 0 deletions framework/platform/bpl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 0ca22ec

Please sign in to comment.