Skip to content

Commit

Permalink
nrf_modem: prepare to add dect-phy binaries
Browse files Browse the repository at this point in the history
Prepare to add Dect NR+ PHY modem library binaries to nrfxlib.

Signed-off-by: Eivind Jølsgard <[email protected]>
  • Loading branch information
eivindj-nordic committed Apr 16, 2024
1 parent 13cd978 commit 331cc34
Show file tree
Hide file tree
Showing 21 changed files with 16 additions and 8 deletions.
12 changes: 8 additions & 4 deletions nrf_modem/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

if(CONFIG_NRF_MODEM_LINK_BINARY)
if(CONFIG_NRF_MODEM_LINK_BINARY_CELLULAR OR CONFIG_NRF_MODEM_LINK_BINARY_DECT_PHY)

string(REGEX REPLACE "_[a-zA-Z][a-zA-Z][a-zA-Z][a-zA-Z]$" "" arch_soc_dir ${CONFIG_SOC})

Expand All @@ -24,14 +24,18 @@ if(CONFIG_NRF_MODEM_LINK_BINARY)
set(float_dir soft-float)
endif()

set(NRF_MODEM_LIB_DIR "lib/${arch_soc_dir}/${float_dir}")
if(CONFIG_NRF_MODEM_LINK_BINARY_CELLULAR)
zephyr_include_directories(cellular/include)
set(NRF_MODEM_LIB_DIR "cellular/lib/${arch_soc_dir}/${float_dir}")
elseif(CONFIG_NRF_MODEM_LINK_BINARY_DECT_PHY)
zephyr_include_directories(dect_phy/include)
set(NRF_MODEM_LIB_DIR "dect_phy/lib/${arch_soc_dir}/${float_dir}")
endif()

if(CONFIG_NRF_MODEM_LOG)
zephyr_library_import(modem ${CMAKE_CURRENT_SOURCE_DIR}/${NRF_MODEM_LIB_DIR}/libmodem_log.a)
else()
zephyr_library_import(modem ${CMAKE_CURRENT_SOURCE_DIR}/${NRF_MODEM_LIB_DIR}/libmodem.a)
endif()

zephyr_include_directories(include)

endif()
12 changes: 8 additions & 4 deletions nrf_modem/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,15 @@ choice NRF_MODEM_BUILD_STRATEGY
depends on NRF_MODEM
prompt "Build strategy"

config NRF_MODEM_LINK_BINARY
bool "Link binary"
config NRF_MODEM_LINK_BINARY_CELLULAR
bool "Link cellular binary"

config NRF_MODEM_LINK_BINARY_DECT_PHY
bool "Link DECT PHY binary"
endchoice

config NRF_MODEM_LOG
depends on NRF_MODEM_LINK_BINARY
depends on NRF_MODEM_LINK_BINARY_CELLULAR || NRF_MODEM_LINK_BINARY_DECT_PHY
bool "Link binary with logs"
help
Links the application with the library version capable of emitting logs.
Expand All @@ -32,4 +35,5 @@ endmenu
# Do not edit.
config NRF_MODEM_SHMEM_CTRL_SIZE
hex
default 0x4e8 # import
default 0x728 if NRF_MODEM_LINK_BINARY_DECT_PHY # import DECT_PHY
default 0x4e8 # import CELLULAR
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 331cc34

Please sign in to comment.