style: fix 'if (' usage in cmake files
Replace with 'if(' and 'else(' per the cmake style guidelines.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
committed by
Johan Hedberg
parent
f0da1d79ff
commit
303af992e5
@@ -409,7 +409,7 @@ if(CONFIG_COMPILER_FREESTANDING)
|
||||
zephyr_compile_options($<$<COMPILE_LANGUAGE:ASM>:$<TARGET_PROPERTY:compiler,freestanding>>)
|
||||
endif()
|
||||
|
||||
if (CONFIG_PICOLIBC AND NOT CONFIG_PICOLIBC_IO_FLOAT)
|
||||
if(CONFIG_PICOLIBC AND NOT CONFIG_PICOLIBC_IO_FLOAT)
|
||||
# @Intent: Set compiler specific flag to disable printf-related optimizations
|
||||
zephyr_compile_options($<$<COMPILE_LANGUAGE:C>:$<TARGET_PROPERTY:compiler,no_printf_return_value>>)
|
||||
endif()
|
||||
@@ -1157,7 +1157,7 @@ endif()
|
||||
|
||||
get_property(OUTPUT_FORMAT GLOBAL PROPERTY PROPERTY_OUTPUT_FORMAT)
|
||||
|
||||
if (CONFIG_CODE_DATA_RELOCATION)
|
||||
if(CONFIG_CODE_DATA_RELOCATION)
|
||||
set(CODE_RELOCATION_DEP code_relocation_source_lib)
|
||||
endif() # CONFIG_CODE_DATA_RELOCATION
|
||||
|
||||
@@ -2134,7 +2134,7 @@ if(CONFIG_BUILD_OUTPUT_INFO_HEADER)
|
||||
)
|
||||
endif()
|
||||
|
||||
if (CONFIG_LLEXT AND CONFIG_LLEXT_EXPORT_BUILTINS_BY_SLID)
|
||||
if(CONFIG_LLEXT AND CONFIG_LLEXT_EXPORT_BUILTINS_BY_SLID)
|
||||
#slidgen must be the first post-build command to be executed
|
||||
#on the Zephyr ELF to ensure that all other commands, such as
|
||||
#binary file generation, are operating on a preparated ELF.
|
||||
@@ -2200,7 +2200,7 @@ if(signing_script)
|
||||
endif()
|
||||
|
||||
# Generate USB-C VIF policies in XML format
|
||||
if (CONFIG_BUILD_OUTPUT_VIF)
|
||||
if(CONFIG_BUILD_OUTPUT_VIF)
|
||||
include(${CMAKE_CURRENT_LIST_DIR}/cmake/vif.cmake)
|
||||
endif()
|
||||
|
||||
@@ -2251,7 +2251,7 @@ if(LOG_DICT_DB_NAME_ARG)
|
||||
--build-header ${PROJECT_BINARY_DIR}/include/generated/zephyr/version.h
|
||||
)
|
||||
|
||||
if (NOT CONFIG_LOG_DICTIONARY_DB_TARGET)
|
||||
if(NOT CONFIG_LOG_DICTIONARY_DB_TARGET)
|
||||
# If not using a separate target for generating logging dictionary
|
||||
# database, add the generation to post build command to make sure
|
||||
# the database is actually being generated.
|
||||
|
||||
@@ -27,7 +27,7 @@ add_subdirectory_ifdef(CONFIG_ARM_AARCH32_MMU mmu)
|
||||
add_subdirectory_ifdef(CONFIG_CPU_AARCH32_CORTEX_R cortex_a_r)
|
||||
add_subdirectory_ifdef(CONFIG_CPU_AARCH32_CORTEX_A cortex_a_r)
|
||||
|
||||
if (CONFIG_ARM_ZIMAGE_HEADER)
|
||||
if(CONFIG_ARM_ZIMAGE_HEADER)
|
||||
zephyr_linker_sources(ROM_START SORT_KEY 0x0vectors zimage_header.ld)
|
||||
zephyr_linker_sources(ROM_START SORT_KEY 0x1vectors vector_table.ld)
|
||||
zephyr_linker_sources(ROM_START SORT_KEY 0x2vectors cortex_m/vector_table_pad.ld)
|
||||
|
||||
@@ -49,13 +49,13 @@ if(CONFIG_NULL_POINTER_EXCEPTION_DETECTION_DWT)
|
||||
endif()
|
||||
|
||||
if(CONFIG_CORTEX_M_DWT)
|
||||
if (CONFIG_TIMING_FUNCTIONS)
|
||||
if(CONFIG_TIMING_FUNCTIONS)
|
||||
zephyr_library_sources(timing.c)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if (CONFIG_SW_VECTOR_RELAY)
|
||||
if (CONFIG_CPU_CORTEX_M_HAS_VTOR)
|
||||
if(CONFIG_SW_VECTOR_RELAY)
|
||||
if(CONFIG_CPU_CORTEX_M_HAS_VTOR)
|
||||
set(relay_vector_table_sort_key relay_vectors)
|
||||
else()
|
||||
# Using 0x0 prefix will result in placing the relay vector table section
|
||||
@@ -72,14 +72,14 @@ zephyr_linker_sources(
|
||||
)
|
||||
endif()
|
||||
|
||||
if (CONFIG_SW_VECTOR_RELAY OR CONFIG_SW_VECTOR_RELAY_CLIENT)
|
||||
if(CONFIG_SW_VECTOR_RELAY OR CONFIG_SW_VECTOR_RELAY_CLIENT)
|
||||
zephyr_linker_sources(
|
||||
RAM_SECTIONS
|
||||
vt_pointer_section.ld
|
||||
)
|
||||
endif()
|
||||
|
||||
if (CONFIG_CPU_CORTEX_M_HAS_VTOR)
|
||||
if(CONFIG_CPU_CORTEX_M_HAS_VTOR)
|
||||
zephyr_linker_sources_ifdef(CONFIG_SRAM_VECTOR_TABLE
|
||||
RAM_SECTIONS
|
||||
# Maybe need to be changed in order to be placed at the beginning of RAM
|
||||
|
||||
@@ -11,10 +11,10 @@ if(CONFIG_CPU_CORTEX_M AND NOT CONFIG_CPU_HAS_CUSTOM_FIXED_SOC_MPU_REGIONS)
|
||||
zephyr_library_sources_ifdef(CONFIG_CPU_HAS_NXP_SYSMPU nxp_mpu_regions.c)
|
||||
endif()
|
||||
|
||||
if (CONFIG_CPU_AARCH32_CORTEX_R)
|
||||
if(CONFIG_CPU_AARCH32_CORTEX_R)
|
||||
zephyr_library_include_directories(cortex_a_r)
|
||||
elseif (CONFIG_CPU_CORTEX_M)
|
||||
elseif(CONFIG_CPU_CORTEX_M)
|
||||
zephyr_library_include_directories(cortex_m)
|
||||
else ()
|
||||
else()
|
||||
message(FATAL_ERROR "CPU is not Cortex-A/R/M")
|
||||
endif ()
|
||||
endif()
|
||||
|
||||
@@ -41,9 +41,9 @@ zephyr_library_sources_ifdef(CONFIG_HAS_ARM_SMCCC smccc-call.S)
|
||||
zephyr_library_sources_ifdef(CONFIG_AARCH64_IMAGE_HEADER header.S)
|
||||
zephyr_library_sources_ifdef(CONFIG_SEMIHOST semihost.c)
|
||||
zephyr_library_sources_ifdef(CONFIG_DEBUG_COREDUMP coredump.c)
|
||||
if ((CONFIG_MP_MAX_NUM_CPUS GREATER 1) OR (CONFIG_SMP))
|
||||
if((CONFIG_MP_MAX_NUM_CPUS GREATER 1) OR (CONFIG_SMP))
|
||||
zephyr_library_sources(smp.c)
|
||||
endif ()
|
||||
endif()
|
||||
|
||||
zephyr_cc_option_ifdef(CONFIG_USERSPACE -mno-outline-atomics)
|
||||
zephyr_cc_option_ifdef(CONFIG_FRAME_POINTER -mno-omit-leaf-frame-pointer)
|
||||
|
||||
@@ -86,7 +86,7 @@ zephyr_linker_sources_ifdef(CONFIG_NOCACHE_MEMORY
|
||||
nocache.ld
|
||||
)
|
||||
|
||||
if (DEFINED CONFIG_ARCH_SUPPORTS_ROM_OFFSET)
|
||||
if(DEFINED CONFIG_ARCH_SUPPORTS_ROM_OFFSET)
|
||||
# Exclamation mark is printable character with lowest number in ASCII table.
|
||||
# We are sure that this file will be included as a first.
|
||||
zephyr_linker_sources(ROM_START SORT_KEY ! rom_start_address.ld)
|
||||
@@ -101,7 +101,7 @@ endif()
|
||||
|
||||
# isr_tables is a normal CMake library and not a zephyr_library because it
|
||||
# should not be --whole-archive'd
|
||||
if (CONFIG_GEN_ISR_TABLES)
|
||||
if(CONFIG_GEN_ISR_TABLES)
|
||||
add_library(isr_tables
|
||||
isr_tables.c
|
||||
)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if (NOT CMAKE_HOST_UNIX OR CMAKE_HOST_APPLE)
|
||||
if(NOT CMAKE_HOST_UNIX OR CMAKE_HOST_APPLE)
|
||||
message(FATAL_ERROR "The POSIX architecture only works on Linux. If on Windows or macOS "
|
||||
"consider using a virtual machine to run a Linux guest.")
|
||||
endif()
|
||||
@@ -43,14 +43,14 @@ if(EXISTS ${CMAKE_CURRENT_LIST_DIR}/${CMAKE_HOST_SYSTEM_NAME}.${CMAKE_HOST_SYSTE
|
||||
# @Intent: Set necessary compiler & linker options for this specific host architecture & OS
|
||||
include(${CMAKE_HOST_SYSTEM_NAME}.${CMAKE_HOST_SYSTEM_PROCESSOR}.cmake)
|
||||
else() # Linux.x86_64
|
||||
if (CONFIG_64BIT)
|
||||
if(CONFIG_64BIT)
|
||||
# some gcc versions fail to build without -fPIC
|
||||
zephyr_compile_options(-m64 -fPIC)
|
||||
zephyr_link_libraries(-m64)
|
||||
|
||||
target_link_options(native_simulator INTERFACE "-m64")
|
||||
target_compile_options(native_simulator INTERFACE "-m64")
|
||||
else ()
|
||||
else()
|
||||
zephyr_compile_options(-m32)
|
||||
zephyr_link_libraries(-m32)
|
||||
|
||||
@@ -64,7 +64,7 @@ else() # Linux.x86_64
|
||||
check_set_compiler_property(APPEND PROPERTY fpsse2 "SHELL:-msse2 -mfpmath=sse")
|
||||
zephyr_compile_options($<TARGET_PROPERTY:compiler,fpsse2>)
|
||||
target_compile_options(native_simulator INTERFACE "$<TARGET_PROPERTY:compiler,fpsse2>")
|
||||
endif ()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
zephyr_compile_options(
|
||||
@@ -81,7 +81,7 @@ zephyr_ld_options(
|
||||
-Wl,--unresolved-symbols=ignore-all
|
||||
)
|
||||
|
||||
if (NOT CONFIG_EXTERNAL_LIBC)
|
||||
if(NOT CONFIG_EXTERNAL_LIBC)
|
||||
# Get the *compiler* include path, that is where the *compiler* provided headers are (not the
|
||||
# default libC ones). This includes basic headers like stdint.h, stddef.h or float.h
|
||||
# We expect something like
|
||||
@@ -106,7 +106,7 @@ if (NOT CONFIG_EXTERNAL_LIBC)
|
||||
)
|
||||
endif()
|
||||
|
||||
if (CONFIG_COMPILER_WARNINGS_AS_ERRORS)
|
||||
if(CONFIG_COMPILER_WARNINGS_AS_ERRORS)
|
||||
target_compile_options(native_simulator INTERFACE $<TARGET_PROPERTY:compiler,warnings_as_errors>)
|
||||
endif()
|
||||
|
||||
@@ -126,7 +126,7 @@ if(CONFIG_COVERAGE)
|
||||
target_link_options(native_simulator INTERFACE $<TARGET_PROPERTY:linker,coverage>)
|
||||
endif()
|
||||
|
||||
if (CONFIG_GPROF)
|
||||
if(CONFIG_GPROF)
|
||||
zephyr_compile_options($<TARGET_PROPERTY:compiler,gprof>)
|
||||
zephyr_link_libraries($<TARGET_PROPERTY:linker,gprof>)
|
||||
|
||||
|
||||
@@ -14,8 +14,8 @@ execute_process(
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
)
|
||||
|
||||
if (CONFIG_64BIT)
|
||||
if (${WORDSIZE} STREQUAL "32")
|
||||
if(CONFIG_64BIT)
|
||||
if(${WORDSIZE} STREQUAL "32")
|
||||
message(FATAL_ERROR
|
||||
"CONFIG_64BIT=y but this Aarch64 machine has a 32-bit userspace.\n"
|
||||
"If you were targeting native_sim/native/64, target native_sim instead.\n"
|
||||
@@ -23,12 +23,12 @@ if (CONFIG_64BIT)
|
||||
)
|
||||
endif()
|
||||
zephyr_compile_options(-fPIC)
|
||||
else ()
|
||||
if (${WORDSIZE} STREQUAL "64")
|
||||
else()
|
||||
if(${WORDSIZE} STREQUAL "64")
|
||||
message(FATAL_ERROR
|
||||
"CONFIG_64BIT=n but this Aarch64 machine has a 64-bit userspace.\n"
|
||||
"If you were targeting native_sim, target native_sim/native/64 instead.\n"
|
||||
"Otherwise, be sure to define CONFIG_64BIT appropriately.\n"
|
||||
)
|
||||
endif()
|
||||
endif ()
|
||||
endif()
|
||||
|
||||
@@ -13,11 +13,11 @@ zephyr_library_sources(
|
||||
thread.c
|
||||
)
|
||||
|
||||
if ((CONFIG_MP_MAX_NUM_CPUS GREATER 1) OR (CONFIG_SMP))
|
||||
if((CONFIG_MP_MAX_NUM_CPUS GREATER 1) OR (CONFIG_SMP))
|
||||
zephyr_library_sources(smp.c)
|
||||
endif ()
|
||||
endif()
|
||||
|
||||
if (CONFIG_SMP)
|
||||
if(CONFIG_SMP)
|
||||
zephyr_library_sources(ipi.c)
|
||||
|
||||
zephyr_library_sources_ifdef(CONFIG_RISCV_SMP_IPI_CLINT ipi_clint.c)
|
||||
|
||||
@@ -32,7 +32,7 @@ else()
|
||||
endif()
|
||||
|
||||
# Always set for 64-bit (long mode requires page tables), optional for 32-bit
|
||||
if (CONFIG_MMU)
|
||||
if(CONFIG_MMU)
|
||||
set(GEN_MMU ${ZEPHYR_BASE}/arch/x86/gen_mmu.py)
|
||||
|
||||
if(DEFINED X86_EXTRA_GEN_MMU_ARGUMENTS)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Copyright (c) 2019 Intel Corp.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if (CMAKE_C_COMPILER_ID STREQUAL "Clang"
|
||||
if(CMAKE_C_COMPILER_ID STREQUAL "Clang"
|
||||
OR CMAKE_C_COMPILER_ID STREQUAL "IntelLLVM")
|
||||
# We rely on GAS for assembling, so don't use the integrated assembler
|
||||
zephyr_compile_options($<$<COMPILE_LANGUAGE:ASM>:-no-integrated-as>)
|
||||
|
||||
@@ -6,7 +6,7 @@ get_target_property(zephyr_COMPILE_OPTIONS zephyr_interface INTERFACE_COMPILE_OP
|
||||
#Any -Os is (or may be) wraped in $<COMPILE_LANGUAGE> guards
|
||||
list(FILTER zephyr_COMPILE_OPTIONS INCLUDE REGEX "-Os")
|
||||
list(LENGTH zephyr_COMPILE_OPTIONS have_os)
|
||||
if (${have_os} GREATER 0)
|
||||
if(${have_os} GREATER 0)
|
||||
zephyr_cc_option(-mpreferred-stack-boundary=2)
|
||||
else()
|
||||
zephyr_compile_definitions(PERF_OPT)
|
||||
|
||||
@@ -4,7 +4,7 @@ zephyr_syscall_header(${ZEPHYR_BASE}/include/zephyr/arch/xtensa/arch.h)
|
||||
set_property(GLOBAL PROPERTY PROPERTY_OUTPUT_FORMAT elf32-xtensa-le)
|
||||
add_subdirectory(core)
|
||||
|
||||
if (CONFIG_XTENSA_INSECURE_USERSPACE)
|
||||
if(CONFIG_XTENSA_INSECURE_USERSPACE)
|
||||
message(WARNING "
|
||||
This userspace implementation uses the window ABI this means that the kernel
|
||||
will spill registers on behalf of the userspace. Use it carefully.")
|
||||
|
||||
@@ -20,7 +20,7 @@ if("${OPENOCD_NRF5_SUBFAMILY}" STREQUAL "")
|
||||
"To fix, set CMake variable OPENOCD_NRF5_SUBFAMILY.")
|
||||
endif()
|
||||
|
||||
if (NOT DEFINED OPENOCD_NRF5_INTERFACE)
|
||||
if(NOT DEFINED OPENOCD_NRF5_INTERFACE)
|
||||
set(OPENOCD_NRF5_INTERFACE "jlink")
|
||||
endif()
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if (CONFIG_INTEL_ADSP_SIM)
|
||||
if(CONFIG_INTEL_ADSP_SIM)
|
||||
set(SUPPORTED_EMU_PLATFORMS acesim)
|
||||
endif()
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#
|
||||
|
||||
#Allow users to pre-specify the tool using '-DMEC172X_SPI_GEN=<path-to-tool>/toolname'
|
||||
if (NOT DEFINED MEC172X_SPI_GEN)
|
||||
if(NOT DEFINED MEC172X_SPI_GEN)
|
||||
set(MEC172X_SPI_GEN $ENV{MEC172X_SPI_GEN})
|
||||
endif()
|
||||
find_program (MEC172X_SPI_GEN NAMES mec172x_spi_gen_lin_x86_64 mec172x_spi_gen)
|
||||
@@ -13,7 +13,7 @@ if(MEC172X_SPI_GEN STREQUAL MEC172X_SPI_GEN-NOTFOUND)
|
||||
message(WARNING "Microchip SPI Image Generation tool is not available. SPI Image will not be generated.")
|
||||
endif()
|
||||
|
||||
if (NOT DEFINED MEC172X_SPI_CFG)
|
||||
if(NOT DEFINED MEC172X_SPI_CFG)
|
||||
set(MEC172X_SPI_CFG $ENV{MEC172X_SPI_CFG})
|
||||
endif()
|
||||
find_file (MEC172X_SPI_CFG NAMES spi_cfg_4MBit.txt spi_cfg_128MBit.txt spi_cfg.txt PATHS ${BOARD_DIR}/support)
|
||||
@@ -21,7 +21,7 @@ if(MEC172X_SPI_CFG STREQUAL MEC172X_SPI_CFG-NOTFOUND)
|
||||
message(WARNING "Microchip SPI Image Generation tool configuration file is not available. SPI Image will not be generated.")
|
||||
endif()
|
||||
|
||||
if (NOT MEC172X_SPI_GEN STREQUAL MEC172X_SPI_GEN-NOTFOUND AND NOT MEC172X_SPI_CFG STREQUAL MEC172X_SPI_CFG-NOTFOUND)
|
||||
if(NOT MEC172X_SPI_GEN STREQUAL MEC172X_SPI_GEN-NOTFOUND AND NOT MEC172X_SPI_CFG STREQUAL MEC172X_SPI_CFG-NOTFOUND)
|
||||
set_property(GLOBAL APPEND PROPERTY extra_post_build_commands
|
||||
COMMAND ${MEC172X_SPI_GEN}
|
||||
-i ${MEC172X_SPI_CFG}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Copyright (c) 2024 Nordic Semiconductor ASA
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if (CONFIG_NATIVE_EXTRA_CMDLINE_ARGS)
|
||||
if(CONFIG_NATIVE_EXTRA_CMDLINE_ARGS)
|
||||
zephyr_library()
|
||||
zephyr_library_sources(extra_args.c)
|
||||
endif()
|
||||
|
||||
@@ -6,7 +6,7 @@ find_package(BabbleSim)
|
||||
|
||||
zephyr_library()
|
||||
|
||||
if (CONFIG_BOARD_NRF54L15BSIM_NRF54L15_CPUFLPR)
|
||||
if(CONFIG_BOARD_NRF54L15BSIM_NRF54L15_CPUFLPR)
|
||||
message(FATAL_ERROR "Targeting the nrf54l15bsim/nrf54l15/cpuflpr core is not yet supported")
|
||||
endif()
|
||||
|
||||
@@ -45,7 +45,7 @@ target_sources(native_simulator INTERFACE
|
||||
common/trace_hook.c
|
||||
)
|
||||
|
||||
if (CONFIG_IPC_SERVICE AND CONFIG_BOARD_NRF5340BSIM_NRF5340_CPUAPP)
|
||||
if(CONFIG_IPC_SERVICE AND CONFIG_BOARD_NRF5340BSIM_NRF5340_CPUAPP)
|
||||
zephyr_library_sources(
|
||||
ipc_backend.c
|
||||
)
|
||||
|
||||
@@ -18,14 +18,14 @@ if(CONFIG_NXP_RW6XX_BOOT_HEADER)
|
||||
zephyr_library_sources(W25Q512JVFIQ_FCB.c)
|
||||
endif()
|
||||
|
||||
if (CONFIG_DT_HAS_NXP_ENET_MAC_ENABLED AND ${xtal32_status})
|
||||
if(CONFIG_DT_HAS_NXP_ENET_MAC_ENABLED AND ${xtal32_status})
|
||||
message(FATAL_ERROR "Ethernet and external 32K clock source are "
|
||||
"mutually exclusive on FRDM_RW612 due to shared PCB nets "
|
||||
"between the ethernet PHY and the external oscillator")
|
||||
endif()
|
||||
|
||||
# Set TX power limit file to override the default one
|
||||
if (CONFIG_WIFI_NXP)
|
||||
if(CONFIG_WIFI_NXP)
|
||||
zephyr_include_directories(
|
||||
tx_pwr_limits
|
||||
)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if (CONFIG_BOARD_HEXIWEAR_MK64F12)
|
||||
if(CONFIG_BOARD_HEXIWEAR_MK64F12)
|
||||
board_runner_args(pyocd "--target=k64f")
|
||||
board_runner_args(jlink "--device=MK64FN1M0xxx12")
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
if (CONFIG_DISPLAY)
|
||||
if(CONFIG_DISPLAY)
|
||||
message(WARNING "
|
||||
CONFIG_DISPLAY: Running this firmware on a board without a display may damage the board
|
||||
")
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
if (CONFIG_DISPLAY)
|
||||
if(CONFIG_DISPLAY)
|
||||
message(WARNING "
|
||||
CONFIG_DISPLAY: Running this firmware on a board without a display may damage the board
|
||||
")
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
if (CONFIG_DISPLAY)
|
||||
if(CONFIG_DISPLAY)
|
||||
message(WARNING "
|
||||
CONFIG_DISPLAY: Running this firmware on a board without a display may damage the board
|
||||
")
|
||||
|
||||
@@ -13,9 +13,9 @@ endif()
|
||||
board_runner_args(pyocd "--target=mimxrt1060")
|
||||
board_runner_args(jlink "--device=MIMXRT1062xxx6A")
|
||||
|
||||
if ("${BOARD_REVISION}" STREQUAL "B")
|
||||
if("${BOARD_REVISION}" STREQUAL "B")
|
||||
board_runner_args(linkserver "--device=MIMXRT1062xxxxB:MIMXRT1060-EVKB")
|
||||
elseif ("${BOARD_REVISION}" STREQUAL "C")
|
||||
elseif("${BOARD_REVISION}" STREQUAL "C")
|
||||
board_runner_args(linkserver "--device=MIMXRT1062xxxxB:MIMXRT1060-EVKC")
|
||||
else()
|
||||
board_runner_args(linkserver "--device=MIMXRT1062xxxxA:EVK-MIMXRT1060")
|
||||
@@ -23,7 +23,7 @@ endif()
|
||||
|
||||
if(("${BOARD_QUALIFIERS}" MATCHES "qspi") OR ("${BOARD_REVISION}" STREQUAL "B") OR ("${BOARD_REVISION}" STREQUAL "C"))
|
||||
board_runner_args(jlink "--loader=BankAddr=0x60000000&Loader=QSPI")
|
||||
elseif ("${BOARD_QUALIFIERS}" MATCHES "hyperflash")
|
||||
elseif("${BOARD_QUALIFIERS}" MATCHES "hyperflash")
|
||||
board_runner_args(jlink "--loader=BankAddr=0x60000000&Loader=HyperFlash")
|
||||
endif()
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
if (CONFIG_DISPLAY)
|
||||
if(CONFIG_DISPLAY)
|
||||
message(WARNING "
|
||||
CONFIG_DISPLAY: Running this firmware on a board without a display may damage the board
|
||||
")
|
||||
|
||||
@@ -12,9 +12,9 @@ if(CONFIG_NXP_IMXRT_BOOT_HEADER)
|
||||
"the MIMXRT1170-EVK, but targeting a custom board. You may need to "
|
||||
"update your flash configuration or device configuration data blocks")
|
||||
endif()
|
||||
if (${BOARD_REVISION} STREQUAL "A")
|
||||
if(${BOARD_REVISION} STREQUAL "A")
|
||||
set(RT1170_BOARD_NAME "evkmimxrt1170")
|
||||
elseif (${BOARD_REVISION} STREQUAL "B")
|
||||
elseif(${BOARD_REVISION} STREQUAL "B")
|
||||
set(RT1170_BOARD_NAME "evkbmimxrt1170")
|
||||
endif()
|
||||
if(CONFIG_BOOT_FLEXSPI_NOR)
|
||||
|
||||
@@ -20,14 +20,14 @@ if(CONFIG_NXP_RW6XX_BOOT_HEADER)
|
||||
zephyr_library_sources(MX25U51245GZ4I00_FCB.c)
|
||||
endif()
|
||||
|
||||
if (CONFIG_DT_HAS_NXP_ENET_MAC_ENABLED AND ${xtal32_status})
|
||||
if(CONFIG_DT_HAS_NXP_ENET_MAC_ENABLED AND ${xtal32_status})
|
||||
message(FATAL_ERROR "Ethernet and external 32K clock source are "
|
||||
"mutually exclusive on RD_RW612_BGA due to shared PCB nets "
|
||||
"between the ethernet PHY and the external oscillator")
|
||||
endif()
|
||||
|
||||
# Set TX power limit file to override the default one
|
||||
if (CONFIG_WIFI_NXP)
|
||||
if(CONFIG_WIFI_NXP)
|
||||
zephyr_include_directories(
|
||||
tx_pwr_limits
|
||||
)
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
if(CONFIG_SOC_NRF54L15_CPUAPP)
|
||||
board_runner_args(jlink "--device=nRF54L15_M33" "--speed=4000")
|
||||
elseif (CONFIG_SOC_NRF54L15_CPUFLPR)
|
||||
elseif(CONFIG_SOC_NRF54L15_CPUFLPR)
|
||||
board_runner_args(jlink "--device=nRF54L15_RV32")
|
||||
endif()
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
set(RX26T_REVISIONS "typea" "typeb" "typec")
|
||||
if (NOT DEFINED BOARD_REVISION)
|
||||
if(NOT DEFINED BOARD_REVISION)
|
||||
set(BOARD_REVISION "RX26T_REVISIONS")
|
||||
else()
|
||||
if (NOT BOARD_REVISION IN_LIST RX26T_REVISIONS)
|
||||
if(NOT BOARD_REVISION IN_LIST RX26T_REVISIONS)
|
||||
message(FATAL_ERROR "${BOARD_REVISION} is not a valid revision for mcb_rx26t. Accepted revisions: ${RX26T_REVISIONS}")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
set(RX130_REVISIONS "512kb" "128kb")
|
||||
if (NOT DEFINED BOARD_REVISION)
|
||||
if(NOT DEFINED BOARD_REVISION)
|
||||
set(BOARD_REVISION "RX130_REVISIONS")
|
||||
else()
|
||||
if (NOT BOARD_REVISION IN_LIST RX130_REVISIONS)
|
||||
if(NOT BOARD_REVISION IN_LIST RX130_REVISIONS)
|
||||
message(FATAL_ERROR "${BOARD_REVISION} is not a valid revision for rsk_rx130. Accepted revisions: ${RX130_REVISIONS}")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
@@ -5,7 +5,7 @@ if(CONFIG_BOARD_RZV2H_EVK_R9A09G057H44GBG_CM33)
|
||||
board_runner_args(jlink "--device=R9A09G057H44_M33_0")
|
||||
endif()
|
||||
|
||||
if (CONFIG_BOARD_RZV2H_EVK_R9A09G057H44GBG_CR8_0)
|
||||
if(CONFIG_BOARD_RZV2H_EVK_R9A09G057H44GBG_CR8_0)
|
||||
board_runner_args(jlink "--device=R9A09G057H44_R8_0")
|
||||
endif()
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
set(LEGEND_REVISIONS "25hdd" "25ssd" "35")
|
||||
if (NOT DEFINED BOARD_REVISION)
|
||||
if(NOT DEFINED BOARD_REVISION)
|
||||
set(BOARD_REVISION "25hdd")
|
||||
else()
|
||||
if (NOT BOARD_REVISION IN_LIST LEGEND_REVISIONS)
|
||||
if(NOT BOARD_REVISION IN_LIST LEGEND_REVISIONS)
|
||||
message(FATAL_ERROR "${BOARD_REVISION} is not a valid revision for Legend. Accepted revisions: ${LEGEND_REVISIONS}")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
@@ -5,7 +5,7 @@ if(CONFIG_BUILD_WITH_TFM)
|
||||
# Flash merged TF-M + Zephyr binary
|
||||
set_property(TARGET runners_yaml_props_target PROPERTY hex_file tfm_merged.hex)
|
||||
|
||||
if (CONFIG_HAS_FLASH_LOAD_OFFSET)
|
||||
if(CONFIG_HAS_FLASH_LOAD_OFFSET)
|
||||
MATH(EXPR TFM_HEX_BASE_ADDRESS_NS "${TFM_FLASH_BASE_ADDRESS}+${CONFIG_FLASH_LOAD_OFFSET}")
|
||||
else()
|
||||
set(TFM_HEX_BASE_ADDRESS_NS ${TFM_TFM_FLASH_BASE_ADDRESS})
|
||||
|
||||
@@ -6,7 +6,7 @@ if(CONFIG_BUILD_WITH_TFM)
|
||||
# Flash merged TF-M + Zephyr binary
|
||||
set_property(TARGET runners_yaml_props_target PROPERTY hex_file tfm_merged.hex)
|
||||
|
||||
if (CONFIG_HAS_FLASH_LOAD_OFFSET)
|
||||
if(CONFIG_HAS_FLASH_LOAD_OFFSET)
|
||||
MATH(EXPR TFM_HEX_BASE_ADDRESS_NS "${FLASH_BASE_ADDRESS_S}+${CONFIG_FLASH_LOAD_OFFSET}")
|
||||
else()
|
||||
set(TFM_HEX_BASE_ADDRESS_NS ${TFM_FLASH_BASE_ADDRESS_S})
|
||||
|
||||
@@ -5,7 +5,7 @@ if(CONFIG_BUILD_WITH_TFM)
|
||||
# Flash merged TF-M + Zephyr binary
|
||||
set_property(TARGET runners_yaml_props_target PROPERTY hex_file tfm_merged.hex)
|
||||
|
||||
if (CONFIG_HAS_FLASH_LOAD_OFFSET)
|
||||
if(CONFIG_HAS_FLASH_LOAD_OFFSET)
|
||||
MATH(EXPR TFM_HEX_BASE_ADDRESS_NS "${TFM_FLASH_BASE_ADDRESS}+${CONFIG_FLASH_LOAD_OFFSET}")
|
||||
else()
|
||||
set(TFM_HEX_BASE_ADDRESS_NS ${TFM_TFM_FLASH_BASE_ADDRESS})
|
||||
|
||||
@@ -23,7 +23,7 @@ if(CONFIG_NXP_RW6XX_BOOT_HEADER)
|
||||
endif()
|
||||
|
||||
# Set TX power limit
|
||||
if (CONFIG_WIFI_NXP)
|
||||
if(CONFIG_WIFI_NXP)
|
||||
zephyr_include_directories(
|
||||
tx_pwr_limits
|
||||
)
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
cmake_minimum_required(VERSION 3.20.0)
|
||||
|
||||
# Handle stripping
|
||||
if (STRIP_DEBUG OR STRIP_ALL)
|
||||
if(STRIP_DEBUG OR STRIP_ALL)
|
||||
set(obj_copy_target_output "--elf")
|
||||
if(STRIP_ALL)
|
||||
set(obj_copy_strip "--strip=all")
|
||||
|
||||
@@ -116,7 +116,7 @@ set_compiler_property(PROPERTY warning_error_misra_sane -Werror=vla)
|
||||
|
||||
set_compiler_property(PROPERTY cstd -std=)
|
||||
|
||||
if (NOT CONFIG_ARCMWDT_LIBC)
|
||||
if(NOT CONFIG_ARCMWDT_LIBC)
|
||||
set_compiler_property(PROPERTY nostdinc -Hno_default_include -Hnoarcexlib -U__STDC_LIB_EXT1__)
|
||||
set_compiler_property(APPEND PROPERTY nostdinc_include ${NOSTDINC})
|
||||
endif()
|
||||
|
||||
@@ -114,7 +114,7 @@ set_property(TARGET compiler-cpp PROPERTY dialect_cpp2b "-std=c++2b" "-Wno-regis
|
||||
###################################################
|
||||
|
||||
# clang flags for coverage generation
|
||||
if (CONFIG_COVERAGE_NATIVE_SOURCE)
|
||||
if(CONFIG_COVERAGE_NATIVE_SOURCE)
|
||||
set_compiler_property(PROPERTY coverage -fprofile-instr-generate -fcoverage-mapping)
|
||||
else()
|
||||
set_compiler_property(PROPERTY coverage --coverage -fno-inline)
|
||||
|
||||
@@ -113,7 +113,7 @@ set_compiler_property(PROPERTY warning_error_coding_guideline
|
||||
# GCC compiler flags for C standard. The specific standard must be appended by user.
|
||||
set_compiler_property(PROPERTY cstd -std=)
|
||||
|
||||
if (NOT CONFIG_NEWLIB_LIBC AND
|
||||
if(NOT CONFIG_NEWLIB_LIBC AND
|
||||
NOT (CONFIG_PICOLIBC AND NOT CONFIG_PICOLIBC_USE_MODULE) AND
|
||||
NOT COMPILER STREQUAL "xcc" AND
|
||||
NOT COMPILER STREQUAL "xt-clang" AND
|
||||
|
||||
@@ -35,7 +35,7 @@ if(CONFIG_BUILD_WITH_TFA)
|
||||
)
|
||||
elseif(CONFIG_ARMV8_A_NS)
|
||||
foreach(filetype BL1 FIP)
|
||||
if ((NOT DEFINED ARMFVP_${filetype}_FILE) AND (EXISTS "$ENV{ARMFVP_${filetype}_FILE}"))
|
||||
if((NOT DEFINED ARMFVP_${filetype}_FILE) AND (EXISTS "$ENV{ARMFVP_${filetype}_FILE}"))
|
||||
set(ARMFVP_${filetype}_FILE "$ENV{ARMFVP_${filetype}_FILE}" CACHE FILEPATH
|
||||
"ARM FVP ${filetype} File specified in environment"
|
||||
)
|
||||
|
||||
@@ -65,22 +65,22 @@ function(eclipse_cdt4_generator_amendment _param_defs)
|
||||
## 4 - work mode: "C and CXX includes, defines in .settings with project defines - [EXPERIMENTAL]"
|
||||
#
|
||||
message(" Eclipse CDT4 generator amendment mode:")
|
||||
if (${_param_defs} EQUAL 1)
|
||||
if(${_param_defs} EQUAL 1)
|
||||
set(_work_mode "C and CXX includes, defines in .cproject without __cplusplus")
|
||||
message(" ${_work_mode}")
|
||||
message(" with project includes and defines")
|
||||
elseif (${_param_defs} EQUAL 2)
|
||||
elseif(${_param_defs} EQUAL 2)
|
||||
set(_work_mode "C and CXX includes, defines in .cproject with __cplusplus")
|
||||
message(" ${_work_mode}")
|
||||
message(" with project includes and defines")
|
||||
#elseif (${_param_defs} EQUAL 3)
|
||||
#elseif(${_param_defs} EQUAL 3)
|
||||
# set(_work_mode "C and CXX includes, defines in .settings - [EXPERIMENTAL]")
|
||||
# message(" ${_work_mode}")
|
||||
# message(" without project defines")
|
||||
#elseif (${_param_defs} EQUAL 4)
|
||||
#elseif(${_param_defs} EQUAL 4)
|
||||
# set(_work_mode "C and CXX includes, defines in .settings with project defines - [EXPERIMENTAL]")
|
||||
# message(" ${_work_mode}")
|
||||
elseif (${_param_defs} EQUAL 5)
|
||||
elseif(${_param_defs} EQUAL 5)
|
||||
set(_work_mode "C and CXX includes, defines in Eclipse with project defines")
|
||||
message(" ${_work_mode}")
|
||||
else(${_param_defs} EQUAL 1)
|
||||
@@ -99,7 +99,7 @@ foreach( d ${_int_comp_def} )
|
||||
file(APPEND ${OUTPUT_FILE} "#define ${CMAKE_MATCH_1} ${CMAKE_MATCH_2}\n")
|
||||
endforeach()
|
||||
|
||||
if (${_work_mode} STREQUAL "C and CXX includes, defines in Eclipse with project defines")
|
||||
if(${_work_mode} STREQUAL "C and CXX includes, defines in Eclipse with project defines")
|
||||
message("")
|
||||
message(" -------------------------------------------------------------------------")
|
||||
message(" Add the following two command line parameters:")
|
||||
@@ -112,7 +112,7 @@ if (${_work_mode} STREQUAL "C and CXX includes, defines in Eclipse with project
|
||||
message("")
|
||||
endif()
|
||||
|
||||
if ( (${_work_mode} STREQUAL "C and CXX includes, defines in .settings - [EXPERIMENTAL]") OR
|
||||
if( (${_work_mode} STREQUAL "C and CXX includes, defines in .settings - [EXPERIMENTAL]") OR
|
||||
(${_work_mode} STREQUAL "C and CXX includes, defines in .settings with project defines - [EXPERIMENTAL]") )
|
||||
|
||||
set(OUTPUT_FILE ${CMAKE_BINARY_DIR}/.settings/language.settings.xml)
|
||||
@@ -124,11 +124,11 @@ if ( (${_work_mode} STREQUAL "C and CXX includes, defines in .settings - [EXPERI
|
||||
file(APPEND ${OUTPUT_FILE} "\t\t\t<provider copy-of=\"extension\" id=\"org.eclipse.cdt.ui.UserLanguageSettingsProvider\"/>\n")
|
||||
file(APPEND ${OUTPUT_FILE} "\t\t\t<provider-reference id=\"org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider\" ref=\"shared-provider\"/>\n")
|
||||
file(APPEND ${OUTPUT_FILE} "\t\t\t<provider-reference id=\"org.eclipse.cdt.core.PathEntryScannerInfoLanguageSettingsProvider\" ref=\"shared-provider\"/>\n")
|
||||
if (${_work_mode} STREQUAL "C and CXX includes, defines in .settings with project defines - [EXPERIMENTAL]")
|
||||
if(${_work_mode} STREQUAL "C and CXX includes, defines in .settings with project defines - [EXPERIMENTAL]")
|
||||
file(APPEND ${OUTPUT_FILE} "\t\t\t<provider class=\"org.eclipse.cdt.managedbuilder.language.settings.providers.GCCBuiltinSpecsDetector\" console=\"false\" id=\"org.eclipse.cdt.managedbuilder.core.GCCBuiltinSpecsDetector\" keep-relative-paths=\"false\" name=\"Zephyr autoconf and SDK Compiler Settings\" parameter=\"${CROSS_COMPILE}\${COMMAND} \${FLAGS} -imacros ${CMAKE_BINARY_DIR}/zephyr/include/generated/zephyr/cmake_intdef.h -imacros ${AUTOCONF_H} -E -P -v -dD "\${INPUTS}"\" store-entries-with-project=\"true\">\n")
|
||||
else ()
|
||||
else()
|
||||
file(APPEND ${OUTPUT_FILE} "\t\t\t<provider class=\"org.eclipse.cdt.managedbuilder.language.settings.providers.GCCBuiltinSpecsDetector\" console=\"false\" id=\"org.eclipse.cdt.managedbuilder.core.GCCBuiltinSpecsDetector\" keep-relative-paths=\"false\" name=\"Zephyr autoconf and SDK Compiler Settings\" parameter=\"${CROSS_COMPILE}\${COMMAND} \${FLAGS} -E -P -v -dD "\${INPUTS}"\" store-entries-with-project=\"true\">\n")
|
||||
endif ()
|
||||
endif()
|
||||
file(APPEND ${OUTPUT_FILE} "\t\t\t\t<language-scope id=\"org.eclipse.cdt.core.gcc\"/>\n")
|
||||
file(APPEND ${OUTPUT_FILE} "\t\t\t\t<language-scope id=\"org.eclipse.cdt.core.g++\"/>\n")
|
||||
file(APPEND ${OUTPUT_FILE} "\t\t\t</provider>\n")
|
||||
@@ -136,16 +136,16 @@ if ( (${_work_mode} STREQUAL "C and CXX includes, defines in .settings - [EXPERI
|
||||
file(APPEND ${OUTPUT_FILE} "\t</configuration>\n")
|
||||
file(APPEND ${OUTPUT_FILE} "</project>\n")
|
||||
|
||||
endif ()
|
||||
endif()
|
||||
|
||||
if ( (${_work_mode} STREQUAL "C and CXX includes, defines in .cproject without __cplusplus") OR
|
||||
if( (${_work_mode} STREQUAL "C and CXX includes, defines in .cproject without __cplusplus") OR
|
||||
(${_work_mode} STREQUAL "C and CXX includes, defines in .cproject with __cplusplus") OR
|
||||
(${_work_mode} STREQUAL "C and CXX includes, defines in .settings - [EXPERIMENTAL]") )
|
||||
|
||||
if ( (${_work_mode} STREQUAL "C and CXX includes, defines in .cproject without __cplusplus") OR
|
||||
if( (${_work_mode} STREQUAL "C and CXX includes, defines in .cproject without __cplusplus") OR
|
||||
(${_work_mode} STREQUAL "C and CXX includes, defines in .cproject with __cplusplus") )
|
||||
|
||||
if (${_work_mode} STREQUAL "C and CXX includes, defines in .cproject without __cplusplus")
|
||||
if(${_work_mode} STREQUAL "C and CXX includes, defines in .cproject without __cplusplus")
|
||||
# Delete __cplusplus define
|
||||
set(TEMP_VAR "${CMAKE_EXTRA_GENERATOR_CXX_SYSTEM_DEFINED_MACROS}")
|
||||
STRING(REGEX REPLACE "__cplusplus;.*;" "" TEMP_VAR "${TEMP_VAR}")
|
||||
@@ -155,15 +155,15 @@ if ( (${_work_mode} STREQUAL "C and CXX includes, defines in .cproject without _
|
||||
else()
|
||||
|
||||
# Wiping C compiler system defined macros and include directories
|
||||
if (CMAKE_C_COMPILER_ID MATCHES GNU)
|
||||
if(CMAKE_C_COMPILER_ID MATCHES GNU)
|
||||
set(CMAKE_EXTRA_GENERATOR_C_SYSTEM_INCLUDE_DIRS "" CACHE INTERNAL "C compiler system include directories")
|
||||
set(CMAKE_EXTRA_GENERATOR_C_SYSTEM_DEFINED_MACROS "" CACHE INTERNAL "C compiler system defined macros")
|
||||
endif ()
|
||||
endif()
|
||||
# Wiping CXX compiler system defined macros and include directories
|
||||
if ("${CMAKE_CXX_COMPILER_ID}" MATCHES GNU)
|
||||
if("${CMAKE_CXX_COMPILER_ID}" MATCHES GNU)
|
||||
set(CMAKE_EXTRA_GENERATOR_CXX_SYSTEM_INCLUDE_DIRS "" CACHE INTERNAL "CXX compiler system include directories")
|
||||
set(CMAKE_EXTRA_GENERATOR_CXX_SYSTEM_DEFINED_MACROS "" CACHE INTERNAL "CXX compiler system defined macros")
|
||||
endif ()
|
||||
endif()
|
||||
|
||||
endif()
|
||||
|
||||
@@ -171,9 +171,9 @@ if ( (${_work_mode} STREQUAL "C and CXX includes, defines in .cproject without _
|
||||
set (_resultDefines "${CMAKE_EXTRA_GENERATOR_C_SYSTEM_DEFINED_MACROS}")
|
||||
foreach( d ${_int_comp_def} )
|
||||
string(REGEX MATCH "^#define +([A-Za-z_][A-Za-z0-9_]*) *(.*) *$" _dummy "${d}")
|
||||
if (NOT ("${CMAKE_MATCH_1}" STREQUAL "") )
|
||||
if(NOT ("${CMAKE_MATCH_1}" STREQUAL "") )
|
||||
list(APPEND _resultDefines "${CMAKE_MATCH_1}")
|
||||
if ("${CMAKE_MATCH_2}" STREQUAL "")
|
||||
if("${CMAKE_MATCH_2}" STREQUAL "")
|
||||
list(APPEND _resultDefines "")
|
||||
else()
|
||||
list(APPEND _resultDefines "${CMAKE_MATCH_2}")
|
||||
@@ -186,9 +186,9 @@ if ( (${_work_mode} STREQUAL "C and CXX includes, defines in .cproject without _
|
||||
set (_resultDefines "${CMAKE_EXTRA_GENERATOR_C_SYSTEM_DEFINED_MACROS}")
|
||||
foreach( d ${_auto_conf} )
|
||||
string(REGEX MATCH "^#define +([A-Za-z_][A-Za-z0-9_]*) *(.*) *$" _dummy "${d}")
|
||||
if (NOT ("${CMAKE_MATCH_1}" STREQUAL "") )
|
||||
if(NOT ("${CMAKE_MATCH_1}" STREQUAL "") )
|
||||
list(APPEND _resultDefines "${CMAKE_MATCH_1}")
|
||||
if ("${CMAKE_MATCH_2}" STREQUAL "")
|
||||
if("${CMAKE_MATCH_2}" STREQUAL "")
|
||||
list(APPEND _resultDefines " ")
|
||||
else()
|
||||
list(APPEND _resultDefines "${CMAKE_MATCH_2}")
|
||||
|
||||
@@ -61,11 +61,11 @@ function(gen_kobject_list_headers)
|
||||
"GEN_DIR_OUT_VAR"
|
||||
"INCLUDES;DEPENDS"
|
||||
)
|
||||
if (PROJECT_BINARY_DIR)
|
||||
if(PROJECT_BINARY_DIR)
|
||||
set(gen_dir ${PROJECT_BINARY_DIR}/include/generated/zephyr)
|
||||
else ()
|
||||
else()
|
||||
set(gen_dir ${CMAKE_BINARY_DIR}/include/generated/zephyr)
|
||||
endif ()
|
||||
endif()
|
||||
|
||||
set(KOBJ_TYPES ${gen_dir}/kobj-types-enum.h)
|
||||
set(KOBJ_OTYPE ${gen_dir}/otype-to-str.h)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# The coverage linker flag is specific for clang.
|
||||
if (CONFIG_COVERAGE_NATIVE_GCOV)
|
||||
if(CONFIG_COVERAGE_NATIVE_GCOV)
|
||||
set_property(TARGET linker PROPERTY coverage --coverage)
|
||||
elseif(CONFIG_COVERAGE_NATIVE_SOURCE)
|
||||
set_property(TARGET linker PROPERTY coverage -fprofile-instr-generate -fcoverage-mapping)
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
# Using a config check is ok for now, but in future it would be desired if
|
||||
# linker flags themselves are not depending on actual configurations.
|
||||
# All flags should be described, and the caller should know the flag name to use.
|
||||
if (NOT CONFIG_COVERAGE_GCOV)
|
||||
if(NOT CONFIG_COVERAGE_GCOV)
|
||||
set_property(TARGET linker PROPERTY coverage -lgcov)
|
||||
endif()
|
||||
|
||||
|
||||
@@ -201,7 +201,7 @@ if(CONFIG_SYMTAB)
|
||||
zephyr_linker_section_configure(SECTION symtab INPUT ".gnu.linkonce.symtab*")
|
||||
endif()
|
||||
|
||||
if (CONFIG_DEVICE_DEPS)
|
||||
if(CONFIG_DEVICE_DEPS)
|
||||
zephyr_linker_section(NAME device_deps KVMA RAM_REGION GROUP RODATA_REGION NOINPUT ${XIP_ALIGN_WITH_INPUT} ENDALIGN 16)
|
||||
zephyr_linker_section_configure(SECTION device_deps INPUT .__device_deps_pass1* KEEP SORT NAME PASS LINKER_DEVICE_DEPS_PASS1)
|
||||
zephyr_linker_section_configure(SECTION device_deps INPUT .__device_deps_pass2* KEEP SORT NAME PASS NOT LINKER_DEVICE_DEPS_PASS1)
|
||||
@@ -209,28 +209,28 @@ endif()
|
||||
|
||||
zephyr_iterable_section(NAME _static_thread_data KVMA RAM_REGION GROUP RODATA_REGION)
|
||||
|
||||
if (CONFIG_BT_IAS)
|
||||
if(CONFIG_BT_IAS)
|
||||
zephyr_iterable_section(NAME bt_ias_cb KVMA RAM_REGION GROUP RODATA_REGION)
|
||||
endif()
|
||||
|
||||
if (CONFIG_LOG)
|
||||
if(CONFIG_LOG)
|
||||
zephyr_iterable_section(NAME log_link KVMA RAM_REGION GROUP RODATA_REGION)
|
||||
zephyr_iterable_section(NAME log_backend KVMA RAM_REGION GROUP RODATA_REGION)
|
||||
endif()
|
||||
|
||||
if (CONFIG_MULTI_LEVEL_INTERRUPTS)
|
||||
if(CONFIG_MULTI_LEVEL_INTERRUPTS)
|
||||
zephyr_iterable_section(NAME intc_table KVMA RAM_REGION GROUP RODATA_REGION)
|
||||
endif()
|
||||
|
||||
if (CONFIG_HTTP_SERVER)
|
||||
if(CONFIG_HTTP_SERVER)
|
||||
zephyr_iterable_section(NAME http_service_desc KVMA RAM_REGION GROUP RODATA_REGION)
|
||||
endif()
|
||||
|
||||
if (CONFIG_COAP_SERVER)
|
||||
if(CONFIG_COAP_SERVER)
|
||||
zephyr_iterable_section(NAME coap_service KVMA RAM_REGION GROUP RODATA_REGION)
|
||||
endif()
|
||||
|
||||
if (CONFIG_NET_MGMT)
|
||||
if(CONFIG_NET_MGMT)
|
||||
zephyr_iterable_section(NAME net_mgmt_event_static_handler KVMA RAM_REGION GROUP RODATA_REGION)
|
||||
endif()
|
||||
|
||||
|
||||
@@ -147,7 +147,7 @@ endfunction()
|
||||
# read in computed build configuration
|
||||
import_kconfig(CONFIG ${PROJECT_BINARY_DIR}/.config)
|
||||
|
||||
if (CONFIG_LLEXT_EXPORT_BUILTINS_BY_SLID)
|
||||
if(CONFIG_LLEXT_EXPORT_BUILTINS_BY_SLID)
|
||||
message(FATAL_ERROR
|
||||
"The LLEXT EDK is not compatible with CONFIG_LLEXT_EXPORT_BUILTINS_BY_SLID.")
|
||||
endif()
|
||||
@@ -211,7 +211,7 @@ list(APPEND base_flags ${llext_edk_cflags} ${imacros})
|
||||
|
||||
file(MAKE_DIRECTORY ${llext_edk_inc})
|
||||
foreach(dir ${INTERFACE_INCLUDE_DIRECTORIES})
|
||||
if (NOT EXISTS ${dir})
|
||||
if(NOT EXISTS ${dir})
|
||||
continue()
|
||||
endif()
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
zephyr_get(BSIM_COMPONENTS_PATH)
|
||||
zephyr_get(BSIM_OUT_PATH)
|
||||
|
||||
if ((DEFINED WEST) AND (NOT DEFINED BSIM_COMPONENTS_PATH) AND (NOT DEFINED BSIM_OUT_PATH))
|
||||
if((DEFINED WEST) AND (NOT DEFINED BSIM_COMPONENTS_PATH) AND (NOT DEFINED BSIM_OUT_PATH))
|
||||
# Let's ask west for the bsim_project existence and its path
|
||||
execute_process(COMMAND ${WEST}
|
||||
status babblesim_base
|
||||
@@ -33,7 +33,7 @@ if ((DEFINED WEST) AND (NOT DEFINED BSIM_COMPONENTS_PATH) AND (NOT DEFINED BSIM_
|
||||
OUTPUT_VARIABLE BSIM_BASE_PATH
|
||||
ERROR_QUIET
|
||||
RESULT_VARIABLE ret_val2)
|
||||
if (NOT (${ret_val1} OR ${ret_val2}))
|
||||
if(NOT (${ret_val1} OR ${ret_val2}))
|
||||
string(STRIP ${BSIM_BASE_PATH} BSIM_COMPONENTS_PATH)
|
||||
get_filename_component(BSIM_OUT_PATH ${BSIM_COMPONENTS_PATH}/.. ABSOLUTE)
|
||||
endif()
|
||||
@@ -42,7 +42,7 @@ endif()
|
||||
message(STATUS "Using BSIM from BSIM_COMPONENTS_PATH=${BSIM_COMPONENTS_PATH}\
|
||||
BSIM_OUT_PATH=${BSIM_OUT_PATH}")
|
||||
|
||||
if ((NOT DEFINED BSIM_COMPONENTS_PATH) OR (NOT DEFINED BSIM_OUT_PATH))
|
||||
if((NOT DEFINED BSIM_COMPONENTS_PATH) OR (NOT DEFINED BSIM_OUT_PATH))
|
||||
message(FATAL_ERROR "This board requires the BabbleSim simulator. Please either\n\
|
||||
a) Enable the west babblesim group with\n\
|
||||
west config manifest.group-filter +babblesim && west update\n\
|
||||
@@ -79,7 +79,7 @@ endfunction(bsim_handle_not_built_error)
|
||||
# Do NOT use it outside of this module. It uses variables internal to it
|
||||
function(bsim_check_build_version bs_comp req_comp_ver)
|
||||
set(version_file ${BSIM_OUT_PATH}/lib/${bs_comp}.version)
|
||||
if (EXISTS ${version_file})
|
||||
if(EXISTS ${version_file})
|
||||
file(READ ${version_file} found_version)
|
||||
string(STRIP ${found_version} found_version)
|
||||
else()
|
||||
@@ -87,7 +87,7 @@ function(bsim_check_build_version bs_comp req_comp_ver)
|
||||
bsim_handle_not_built_error()
|
||||
endif()
|
||||
|
||||
if (found_version VERSION_LESS req_comp_ver)
|
||||
if(found_version VERSION_LESS req_comp_ver)
|
||||
message(WARNING
|
||||
"Built ${bs_comp} version = ${found_version} < ${req_comp_ver} (required version)")
|
||||
bsim_handle_not_built_error()
|
||||
|
||||
@@ -60,7 +60,7 @@ if(("zephyr" STREQUAL ${ZEPHYR_TOOLCHAIN_VARIANT}) OR
|
||||
(Zephyr-sdk_FIND_REQUIRED))
|
||||
|
||||
# No toolchain was specified, so inform user that we will be searching.
|
||||
if (NOT Zephyr-sdk_FIND_QUIETLY AND
|
||||
if(NOT Zephyr-sdk_FIND_QUIETLY AND
|
||||
NOT DEFINED ZEPHYR_SDK_INSTALL_DIR AND
|
||||
NOT DEFINED ZEPHYR_TOOLCHAIN_VARIANT)
|
||||
message(STATUS "ZEPHYR_TOOLCHAIN_VARIANT not set, trying to locate Zephyr SDK")
|
||||
@@ -118,7 +118,7 @@ if(("zephyr" STREQUAL ${ZEPHYR_TOOLCHAIN_VARIANT}) OR
|
||||
cmake_path(GET dir PARENT_PATH dir)
|
||||
list(APPEND Zephyr-sdk ${version})
|
||||
list(APPEND Zephyr-sdk_DIRS ${dir})
|
||||
if (NOT Zephyr-sdk_FIND_QUIETLY)
|
||||
if(NOT Zephyr-sdk_FIND_QUIETLY)
|
||||
message(STATUS "Zephyr-sdk, version=${version}, dir=${dir}")
|
||||
endif()
|
||||
endforeach()
|
||||
@@ -145,7 +145,7 @@ if(("zephyr" STREQUAL ${ZEPHYR_TOOLCHAIN_VARIANT}) OR
|
||||
# Then see if this version is compatible.
|
||||
find_package(Zephyr-sdk ${Zephyr-sdk_FIND_VERSION_COMPLETE} QUIET CONFIG PATHS ${zephyr_sdk_current_check_path} NO_DEFAULT_PATH)
|
||||
|
||||
if (${Zephyr-sdk_FOUND})
|
||||
if(${Zephyr-sdk_FOUND})
|
||||
# A compatible version of the Zephyr SDK has been found which is the highest
|
||||
# supported version, exit.
|
||||
break()
|
||||
@@ -153,7 +153,7 @@ if(("zephyr" STREQUAL ${ZEPHYR_TOOLCHAIN_VARIANT}) OR
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
if (NOT ${Zephyr-sdk_FOUND})
|
||||
if(NOT ${Zephyr-sdk_FOUND})
|
||||
# This means no compatible Zephyr SDK versions were found, set the version
|
||||
# back to the minimum version so that it is displayed in the error text.
|
||||
find_package(Zephyr-sdk ${Zephyr-sdk_FIND_VERSION_COMPLETE} REQUIRED CONFIG PATHS ${zephyr_sdk_search_paths})
|
||||
@@ -181,7 +181,7 @@ if(LOAD IN_LIST Zephyr-sdk_FIND_COMPONENTS)
|
||||
if(Zephyr-sdk_FOUND)
|
||||
include(${ZEPHYR_SDK_INSTALL_DIR}/cmake/zephyr/host-tools.cmake)
|
||||
|
||||
if (NOT Zephyr-sdk_FIND_QUIETLY)
|
||||
if(NOT Zephyr-sdk_FIND_QUIETLY)
|
||||
message(STATUS "Found host-tools: zephyr ${SDK_VERSION} (${ZEPHYR_SDK_INSTALL_DIR})")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
@@ -366,20 +366,20 @@ if(DTC)
|
||||
|
||||
set(DTC_WARN_UNIT_ADDR_IF_ENABLED "")
|
||||
check_dtc_flag("-Wunique_unit_address_if_enabled" check)
|
||||
if (check)
|
||||
if(check)
|
||||
set(DTC_WARN_UNIT_ADDR_IF_ENABLED "-Wunique_unit_address_if_enabled")
|
||||
endif()
|
||||
|
||||
set(DTC_NO_WARN_UNIT_ADDR "")
|
||||
check_dtc_flag("-Wno-unique_unit_address" check)
|
||||
if (check)
|
||||
if(check)
|
||||
set(DTC_NO_WARN_UNIT_ADDR "-Wno-unique_unit_address")
|
||||
endif()
|
||||
|
||||
set(VALID_EXTRA_DTC_FLAGS "")
|
||||
foreach(extra_opt ${EXTRA_DTC_FLAGS})
|
||||
check_dtc_flag(${extra_opt} check)
|
||||
if (check)
|
||||
if(check)
|
||||
list(APPEND VALID_EXTRA_DTC_FLAGS ${extra_opt})
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
@@ -7,7 +7,7 @@ include_guard(GLOBAL)
|
||||
# are invoked by CMake code and, on Windows, standard I/O encoding defaults
|
||||
# to the current code page if not connected to a terminal, which is often
|
||||
# not what we want.
|
||||
if (WIN32)
|
||||
if(WIN32)
|
||||
set(ENV{PYTHONIOENCODING} "utf-8")
|
||||
endif()
|
||||
|
||||
|
||||
@@ -130,7 +130,7 @@ if(CONFIG_COVERAGE)
|
||||
target_link_libraries(testbinary PRIVATE $<TARGET_PROPERTY:linker,coverage>)
|
||||
endif()
|
||||
|
||||
if (CONFIG_COMPILER_WARNINGS_AS_ERRORS)
|
||||
if(CONFIG_COMPILER_WARNINGS_AS_ERRORS)
|
||||
target_compile_options(test_interface INTERFACE $<TARGET_PROPERTY:compiler,warnings_as_errors>)
|
||||
endif()
|
||||
|
||||
|
||||
@@ -129,7 +129,7 @@ foreach(type file IN ZIP_LISTS VERSION_TYPE VERSION_FILE)
|
||||
set(BUILD_VERSION_STR ", build: ${BUILD_VERSION}")
|
||||
endif()
|
||||
|
||||
if (NOT NO_PRINT_VERSION)
|
||||
if(NOT NO_PRINT_VERSION)
|
||||
message(STATUS "Zephyr version: ${PROJECT_VERSION_STR} (${ZEPHYR_BASE})${BUILD_VERSION_STR}")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
@@ -34,7 +34,7 @@ endif()
|
||||
|
||||
file(GLOB build_dir_contents ${BINARY_DIR}/*)
|
||||
foreach(file ${build_dir_contents})
|
||||
if (EXISTS ${file})
|
||||
if(EXISTS ${file})
|
||||
file(REMOVE_RECURSE ${file})
|
||||
endif()
|
||||
endforeach(file)
|
||||
|
||||
@@ -67,49 +67,49 @@ elseif(ECLAIR_RULESET_ZEPHYR_GUIDELINES)
|
||||
endif()
|
||||
|
||||
# ECLAIR report
|
||||
if (ECLAIR_METRICS_TAB)
|
||||
if(ECLAIR_METRICS_TAB)
|
||||
list(APPEND ECLAIR_REPORT_ADDITIONAL_OPTIONS "-metrics_tab=${ECLAIR_OUTPUT_DIR}/metrics")
|
||||
endif()
|
||||
if (ECLAIR_REPORTS_TAB)
|
||||
if(ECLAIR_REPORTS_TAB)
|
||||
list(APPEND ECLAIR_REPORT_ADDITIONAL_OPTIONS "-reports_tab=${ECLAIR_OUTPUT_DIR}/reports")
|
||||
endif()
|
||||
if (ECLAIR_REPORTS_SARIF)
|
||||
if(ECLAIR_REPORTS_SARIF)
|
||||
list(APPEND ECLAIR_REPORT_ADDITIONAL_OPTIONS "-reports_sarif=${ECLAIR_OUTPUT_DIR}/reports.sarif")
|
||||
endif()
|
||||
if (ECLAIR_SUMMARY_TXT)
|
||||
if(ECLAIR_SUMMARY_TXT)
|
||||
list(APPEND ECLAIR_REPORT_ADDITIONAL_OPTIONS "-summary_txt=${ECLAIR_OUTPUT_DIR}/summary_txt")
|
||||
endif()
|
||||
if (ECLAIR_SUMMARY_DOC)
|
||||
if(ECLAIR_SUMMARY_DOC)
|
||||
list(APPEND ECLAIR_REPORT_ADDITIONAL_OPTIONS "-summary_doc=${ECLAIR_OUTPUT_DIR}/summary_doc")
|
||||
endif()
|
||||
if (ECLAIR_SUMMARY_ODT)
|
||||
if(ECLAIR_SUMMARY_ODT)
|
||||
list(APPEND ECLAIR_REPORT_ADDITIONAL_OPTIONS "-summary_odt=${ECLAIR_OUTPUT_DIR}/summary_odt")
|
||||
endif()
|
||||
if (ECLAIR_SUMMARY_HTML)
|
||||
if(ECLAIR_SUMMARY_HTML)
|
||||
list(APPEND ECLAIR_REPORT_ADDITIONAL_OPTIONS "-summary_html=${ECLAIR_OUTPUT_DIR}/summary_html")
|
||||
endif()
|
||||
if (ECLAIR_FULL_TXT_ALL_AREAS)
|
||||
if(ECLAIR_FULL_TXT_ALL_AREAS)
|
||||
list(APPEND ECLAIR_REPORT_ADDITIONAL_OPTIONS "-setq=report_areas,areas")
|
||||
endif()
|
||||
if (ECLAIR_FULL_TXT_FIRST_AREA)
|
||||
if(ECLAIR_FULL_TXT_FIRST_AREA)
|
||||
list(APPEND ECLAIR_REPORT_ADDITIONAL_OPTIONS "-setq=report_areas,first_area")
|
||||
endif()
|
||||
if (ECLAIR_FULL_TXT)
|
||||
if(ECLAIR_FULL_TXT)
|
||||
list(APPEND ECLAIR_REPORT_ADDITIONAL_OPTIONS "-full_txt=${ECLAIR_OUTPUT_DIR}/report_full_txt")
|
||||
endif()
|
||||
if (ECLAIR_FULL_DOC_ALL_AREAS)
|
||||
if(ECLAIR_FULL_DOC_ALL_AREAS)
|
||||
list(APPEND ECLAIR_REPORT_ADDITIONAL_OPTIONS "-setq=report_areas,areas")
|
||||
endif()
|
||||
if (ECLAIR_FULL_DOC_FIRST_AREA)
|
||||
if(ECLAIR_FULL_DOC_FIRST_AREA)
|
||||
list(APPEND ECLAIR_REPORT_ADDITIONAL_OPTIONS "-setq=report_areas,first_area")
|
||||
endif()
|
||||
if (ECLAIR_FULL_DOC)
|
||||
if(ECLAIR_FULL_DOC)
|
||||
list(APPEND ECLAIR_REPORT_ADDITIONAL_OPTIONS "-full_doc=${ECLAIR_OUTPUT_DIR}/report_full_doc")
|
||||
endif()
|
||||
if (ECLAIR_FULL_ODT)
|
||||
if(ECLAIR_FULL_ODT)
|
||||
list(APPEND ECLAIR_REPORT_ADDITIONAL_OPTIONS "-full_odt=${ECLAIR_OUTPUT_DIR}/report_full_odt")
|
||||
endif()
|
||||
if (ECLAIR_FULL_HTL)
|
||||
if(ECLAIR_FULL_HTL)
|
||||
list(APPEND ECLAIR_REPORT_ADDITIONAL_OPTIONS "-full_html=${ECLAIR_OUTPUT_DIR}/report_full_html")
|
||||
endif()
|
||||
|
||||
|
||||
@@ -14,38 +14,38 @@ set(cmd_gen_vif ${PYTHON_EXECUTABLE} ${gen_vif_script}
|
||||
--vif-out ${vif_out}
|
||||
)
|
||||
|
||||
if (CONFIG_GENVIF_INPUT_VIF_XML_PATH)
|
||||
if (IS_ABSOLUTE ${CONFIG_GENVIF_INPUT_VIF_XML_PATH})
|
||||
if (EXISTS ${CONFIG_GENVIF_INPUT_VIF_XML_PATH})
|
||||
if(CONFIG_GENVIF_INPUT_VIF_XML_PATH)
|
||||
if(IS_ABSOLUTE ${CONFIG_GENVIF_INPUT_VIF_XML_PATH})
|
||||
if(EXISTS ${CONFIG_GENVIF_INPUT_VIF_XML_PATH})
|
||||
set(vif_source_xml ${CONFIG_GENVIF_INPUT_VIF_XML_PATH})
|
||||
endif ()
|
||||
elseif (EXISTS ${APPLICATION_CONFIG_DIR}/${CONFIG_GENVIF_INPUT_VIF_XML_PATH})
|
||||
endif()
|
||||
elseif(EXISTS ${APPLICATION_CONFIG_DIR}/${CONFIG_GENVIF_INPUT_VIF_XML_PATH})
|
||||
set(vif_source_xml ${APPLICATION_CONFIG_DIR}/${CONFIG_GENVIF_INPUT_VIF_XML_PATH})
|
||||
endif ()
|
||||
else ()
|
||||
if (EXISTS ${APPLICATION_CONFIG_DIR}/boards/${board_vif_xml})
|
||||
endif()
|
||||
else()
|
||||
if(EXISTS ${APPLICATION_CONFIG_DIR}/boards/${board_vif_xml})
|
||||
set(vif_source_xml ${APPLICATION_CONFIG_DIR}/boards/${board_vif_xml})
|
||||
elseif (EXISTS ${APPLICATION_CONFIG_DIR}/${vif_xml})
|
||||
elseif(EXISTS ${APPLICATION_CONFIG_DIR}/${vif_xml})
|
||||
set(vif_source_xml ${APPLICATION_CONFIG_DIR}/${vif_xml})
|
||||
elseif (EXISTS ${BOARD_DIR}/${vif_xml})
|
||||
elseif(EXISTS ${BOARD_DIR}/${vif_xml})
|
||||
set(vif_source_xml ${BOARD_DIR}/${vif_xml})
|
||||
endif ()
|
||||
endif ()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if (DEFINED vif_source_xml)
|
||||
if(DEFINED vif_source_xml)
|
||||
list(APPEND cmd_gen_vif --vif-source-xml ${vif_source_xml})
|
||||
else ()
|
||||
if (CONFIG_GENVIF_INPUT_VIF_XML_PATH)
|
||||
else()
|
||||
if(CONFIG_GENVIF_INPUT_VIF_XML_PATH)
|
||||
message(FATAL_ERROR "Incorrect VIF source XML file path. To fix specify"
|
||||
" correct XML file path at 'CONFIG_GENVIF_INPUT_VIF_XML_PATH'.")
|
||||
else ()
|
||||
else()
|
||||
message(FATAL_ERROR "No VIF source XML file found. To fix, create"
|
||||
" '${board_vif_xml}' in 'boards' directory of application"
|
||||
" directory, or create '${vif_xml}' file in application"
|
||||
" directory or board directory, or supply a custom XML VIF path"
|
||||
" using 'CONFIG_GENVIF_INPUT_VIF_XML_PATH'.")
|
||||
endif ()
|
||||
endif ()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
add_custom_command(
|
||||
OUTPUT ${vif_xml}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if (CONFIG_BUILD_ONLY_NO_BLOBS)
|
||||
if(CONFIG_BUILD_ONLY_NO_BLOBS)
|
||||
message(WARNING "
|
||||
---------------------------------------------------------------------------
|
||||
Building only the Bluetooth driver without binary blobs and patches.
|
||||
|
||||
@@ -54,7 +54,7 @@ zephyr_library_sources_ifdef(CONFIG_MICROBIT_DISPLAY
|
||||
mb_font.c
|
||||
)
|
||||
|
||||
if (CONFIG_SDL_DISPLAY)
|
||||
if(CONFIG_SDL_DISPLAY)
|
||||
zephyr_library_sources(display_sdl.c)
|
||||
target_sources(native_simulator INTERFACE display_sdl_bottom.c)
|
||||
endif()
|
||||
|
||||
@@ -16,7 +16,7 @@ add_subdirectory_ifdef(CONFIG_FUEL_GAUGE_LTC2959 ltc2959)
|
||||
|
||||
zephyr_library_sources_ifdef(CONFIG_USERSPACE fuel_gauge_syscall_handlers.c)
|
||||
|
||||
if (CONFIG_EMUL AND CONFIG_USERSPACE)
|
||||
if(CONFIG_EMUL AND CONFIG_USERSPACE)
|
||||
zephyr_syscall_header(${ZEPHYR_BASE}/include/zephyr/drivers/emul_fuel_gauge.h)
|
||||
zephyr_library_sources(emul_fuel_gauge_syscall_handlers.c)
|
||||
endif()
|
||||
|
||||
@@ -136,7 +136,7 @@ zephyr_library_sources_ifdef(CONFIG_GPIO_SHELL gpio_shell.c)
|
||||
zephyr_library_sources_ifdef(CONFIG_USERSPACE gpio_handlers.c)
|
||||
# zephyr-keep-sorted-stop
|
||||
|
||||
if (CONFIG_GPIO_EMUL_SDL)
|
||||
if(CONFIG_GPIO_EMUL_SDL)
|
||||
zephyr_library_sources(gpio_emul_sdl.c)
|
||||
target_sources(native_simulator INTERFACE gpio_emul_sdl_bottom.c)
|
||||
endif()
|
||||
|
||||
@@ -44,7 +44,7 @@ zephyr_library_sources_ifdef(CONFIG_INPUT_XEC_KBD input_xec_kbd.c)
|
||||
zephyr_library_sources_ifdef(CONFIG_INPUT_XPT2046 input_xpt2046.c)
|
||||
# zephyr-keep-sorted-stop
|
||||
|
||||
if (CONFIG_INPUT_SDL_TOUCH)
|
||||
if(CONFIG_INPUT_SDL_TOUCH)
|
||||
zephyr_library_sources(input_sdl_touch.c)
|
||||
target_sources(native_simulator INTERFACE input_sdl_touch_bottom.c)
|
||||
endif()
|
||||
|
||||
@@ -27,7 +27,7 @@ if(CONFIG_MODEM_WNCM14A2A)
|
||||
zephyr_library_sources(wncm14a2a.c)
|
||||
endif()
|
||||
|
||||
if (CONFIG_MODEM_HL7800)
|
||||
if(CONFIG_MODEM_HL7800)
|
||||
zephyr_library_sources(hl7800.c)
|
||||
endif()
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ zephyr_library_sources_ifdef(CONFIG_PINCTRL_SF32LB52X pinctrl_sf32lb52x.c)
|
||||
|
||||
add_subdirectory(renesas)
|
||||
|
||||
if (CONFIG_PINCTRL_BFLB)
|
||||
if(CONFIG_PINCTRL_BFLB)
|
||||
zephyr_library_sources(pinctrl_bflb.c)
|
||||
zephyr_library_sources_ifdef(CONFIG_SOC_SERIES_BL60X pinctrl_bflb_bl60x_70x.c)
|
||||
zephyr_library_sources_ifdef(CONFIG_SOC_SERIES_BL61X pinctrl_bflb_bl61x.c)
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
|
||||
zephyr_library_sources(pfc_rcar.c)
|
||||
|
||||
if (CONFIG_SOC_R8A77951_R7 OR CONFIG_SOC_R8A77951_A57)
|
||||
if(CONFIG_SOC_R8A77951_R7 OR CONFIG_SOC_R8A77951_A57)
|
||||
zephyr_library_sources(pfc_r8a77951.c)
|
||||
elseif (CONFIG_SOC_R8A779F0_R52 OR CONFIG_SOC_R8A779F0_A55)
|
||||
elseif(CONFIG_SOC_R8A779F0_R52 OR CONFIG_SOC_R8A779F0_A55)
|
||||
zephyr_library_sources(pfc_r8a779f0.c)
|
||||
endif()
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Copyright 2022 NXP
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
if (CONFIG_SDHC)
|
||||
if(CONFIG_SDHC)
|
||||
|
||||
zephyr_library()
|
||||
zephyr_library_sources_ifdef(CONFIG_IMX_USDHC imx_usdhc.c)
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
add_subdirectory_ifdef(CONFIG_OPTEE optee)
|
||||
|
||||
if (CONFIG_TEE)
|
||||
if(CONFIG_TEE)
|
||||
zephyr_library()
|
||||
zephyr_library_sources(tee.c)
|
||||
endif()
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
zephyr_library()
|
||||
zephyr_library_property(ALLOW_EMPTY TRUE)
|
||||
|
||||
if (CONFIG_BUILD_ONLY_NO_BLOBS)
|
||||
if(CONFIG_BUILD_ONLY_NO_BLOBS)
|
||||
message(WARNING "
|
||||
---------------------------------------------------------------------------
|
||||
Building only the Wi-Fi driver without binary blobs and patches.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Copyright (c) 2025 Arduino SA
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if (CONFIG_WIFI_ESP_HOSTED)
|
||||
if(CONFIG_WIFI_ESP_HOSTED)
|
||||
|
||||
zephyr_library_named(esp_hosted)
|
||||
|
||||
|
||||
@@ -74,11 +74,11 @@ zephyr_library_sources_ifdef(CONFIG_NRF70_DEBUG_SHELL
|
||||
|
||||
zephyr_library_link_libraries(nrf70-buslib nrf-wifi-shim)
|
||||
|
||||
if (CONFIG_NRF_WIFI_PATCHES_BUILTIN)
|
||||
if(CONFIG_NRF_WIFI_PATCHES_BUILTIN)
|
||||
zephyr_blobs_verify(MODULE nrf_wifi REQUIRED)
|
||||
# RPU FW patch binaries based on the selected configuration
|
||||
if(CONFIG_NRF70_SYSTEM_MODE)
|
||||
if (CONFIG_NRF70_SYSTEM_WITH_RAW_MODES)
|
||||
if(CONFIG_NRF70_SYSTEM_WITH_RAW_MODES)
|
||||
set(NRF70_PATCH ${FW_BINS_BASE}/system_with_raw/nrf70.bin)
|
||||
else()
|
||||
set(NRF70_PATCH ${FW_BINS_BASE}/default/nrf70.bin)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Copyright 2022-2024 NXP
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if (CONFIG_WIFI_NXP)
|
||||
if(CONFIG_WIFI_NXP)
|
||||
|
||||
zephyr_library_sources_ifdef(CONFIG_NXP_WIFI_AUTO_INIT nxp_wifi_drv.c)
|
||||
|
||||
|
||||
@@ -93,7 +93,7 @@ kernel_sources_ifdef(CONFIG_MULTITHREADING
|
||||
)
|
||||
|
||||
if(CONFIG_MULTITHREADING)
|
||||
if (CONFIG_SCHED_SCALABLE OR CONFIG_WAITQ_SCALABLE)
|
||||
if(CONFIG_SCHED_SCALABLE OR CONFIG_WAITQ_SCALABLE)
|
||||
kernel_sources(priority_queues.c)
|
||||
endif()
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ if(NOT CONFIG_PICOLIBC)
|
||||
zephyr_sources(cbprintf.c)
|
||||
endif()
|
||||
|
||||
if (CONFIG_ASSERT OR CONFIG_ASSERT_VERBOSE)
|
||||
if(CONFIG_ASSERT OR CONFIG_ASSERT_VERBOSE)
|
||||
zephyr_sources(assert.c)
|
||||
endif()
|
||||
|
||||
|
||||
@@ -3,6 +3,6 @@
|
||||
|
||||
set(POSIX_VERSION 200809L)
|
||||
|
||||
if (CONFIG_POSIX_C_LANG_SUPPORT_R)
|
||||
if(CONFIG_POSIX_C_LANG_SUPPORT_R)
|
||||
zephyr_compile_definitions(-D_POSIX_THREAD_SAFE_FUNCTIONS=${POSIX_VERSION})
|
||||
endif()
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
zephyr_include_directories(getopt)
|
||||
|
||||
if (CONFIG_TC_PROVIDES_POSIX_C_LIB_EXT)
|
||||
if(CONFIG_TC_PROVIDES_POSIX_C_LIB_EXT)
|
||||
return()
|
||||
endif()
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ if(CONFIG_POSIX_SYSTEM_INTERFACES)
|
||||
zephyr_include_directories(${ZEPHYR_BASE}/include/zephyr/posix)
|
||||
endif()
|
||||
|
||||
if (NOT CONFIG_TC_PROVIDES_POSIX_SIGNALS)
|
||||
if(NOT CONFIG_TC_PROVIDES_POSIX_SIGNALS)
|
||||
if(CONFIG_POSIX_SIGNALS)
|
||||
set(STRSIGNAL_TABLE_H ${GEN_DIR}/posix/strsignal_table.h)
|
||||
|
||||
@@ -31,22 +31,22 @@ endif()
|
||||
|
||||
zephyr_library()
|
||||
|
||||
if (NOT CONFIG_TC_PROVIDES_POSIX_ASYNCHRONOUS_IO)
|
||||
if(NOT CONFIG_TC_PROVIDES_POSIX_ASYNCHRONOUS_IO)
|
||||
zephyr_library_sources_ifdef(CONFIG_POSIX_ASYNCHRONOUS_IO aio.c)
|
||||
endif()
|
||||
|
||||
if (NOT CONFIG_TC_PROVIDES_POSIX_BARRIERS)
|
||||
if(NOT CONFIG_TC_PROVIDES_POSIX_BARRIERS)
|
||||
zephyr_library_sources_ifdef(CONFIG_POSIX_BARRIERS barrier.c)
|
||||
endif()
|
||||
|
||||
if (NOT CONFIG_TC_PROVIDES_POSIX_CLOCK_SELECTION)
|
||||
if(NOT CONFIG_TC_PROVIDES_POSIX_CLOCK_SELECTION)
|
||||
zephyr_library_sources_ifdef(CONFIG_POSIX_CLOCK_SELECTION clock_selection.c)
|
||||
endif()
|
||||
if (CONFIG_POSIX_CLOCK_SELECTION)
|
||||
if(CONFIG_POSIX_CLOCK_SELECTION)
|
||||
zephyr_compile_definitions(-D_POSIX_CLOCK_SELECTION=${POSIX_VERSION})
|
||||
endif()
|
||||
|
||||
if (NOT CONFIG_TC_PROVIDES_POSIX_DEVICE_IO)
|
||||
if(NOT CONFIG_TC_PROVIDES_POSIX_DEVICE_IO)
|
||||
zephyr_library_sources_ifdef(CONFIG_POSIX_DEVICE_IO
|
||||
# perror should be moved to the common libc
|
||||
perror.c
|
||||
@@ -54,54 +54,54 @@ if (NOT CONFIG_TC_PROVIDES_POSIX_DEVICE_IO)
|
||||
)
|
||||
endif()
|
||||
|
||||
if (NOT CONFIG_TC_PROVIDES_POSIX_FD_MGMT)
|
||||
if(NOT CONFIG_TC_PROVIDES_POSIX_FD_MGMT)
|
||||
zephyr_library_sources_ifdef(CONFIG_POSIX_FD_MGMT
|
||||
fd_mgmt.c
|
||||
)
|
||||
endif()
|
||||
|
||||
if (NOT CONFIG_TC_PROVIDES_POSIX_FILE_SYSTEM)
|
||||
if(NOT CONFIG_TC_PROVIDES_POSIX_FILE_SYSTEM)
|
||||
zephyr_library_sources_ifdef(CONFIG_POSIX_FILE_SYSTEM fs.c)
|
||||
endif()
|
||||
|
||||
if (NOT CONFIG_TC_PROVIDES_POSIX_FILE_SYSTEM_R)
|
||||
if(NOT CONFIG_TC_PROVIDES_POSIX_FILE_SYSTEM_R)
|
||||
zephyr_library_sources_ifdef(CONFIG_POSIX_FILE_SYSTEM_R file_system_r.c)
|
||||
endif()
|
||||
if (CONFIG_POSIX_FILE_SYSTEM_R)
|
||||
if(CONFIG_POSIX_FILE_SYSTEM_R)
|
||||
zephyr_compile_definitions(-D_POSIX_THREAD_SAFE_FUNCTIONS=${POSIX_VERSION})
|
||||
endif()
|
||||
|
||||
if (NOT CONFIG_TC_PROVIDES_POSIX_MEMORY_PROTECTION)
|
||||
if(NOT CONFIG_TC_PROVIDES_POSIX_MEMORY_PROTECTION)
|
||||
zephyr_library_sources_ifdef(CONFIG_POSIX_MEMORY_PROTECTION mprotect.c)
|
||||
endif()
|
||||
|
||||
if (NOT CONFIG_TC_PROVIDES_POSIX_MAPPED_FILES)
|
||||
if(NOT CONFIG_TC_PROVIDES_POSIX_MAPPED_FILES)
|
||||
zephyr_library_sources_ifdef(CONFIG_POSIX_MAPPED_FILES mmap.c)
|
||||
endif()
|
||||
|
||||
if (NOT CONFIG_TC_PROVIDES_POSIX_MULTI_PROCESS)
|
||||
if(NOT CONFIG_TC_PROVIDES_POSIX_MULTI_PROCESS)
|
||||
zephyr_library_sources_ifdef(CONFIG_POSIX_MULTI_PROCESS
|
||||
sleep.c
|
||||
multi_process.c
|
||||
)
|
||||
endif()
|
||||
if (CONFIG_POSIX_MULTI_PROCESS)
|
||||
if(CONFIG_POSIX_MULTI_PROCESS)
|
||||
zephyr_compile_definitions(-D_POSIX_MULTI_PROCESS=${POSIX_VERSION})
|
||||
endif()
|
||||
|
||||
if (NOT CONFIG_TC_PROVIDES_POSIX_NETWORKING)
|
||||
if(NOT CONFIG_TC_PROVIDES_POSIX_NETWORKING)
|
||||
zephyr_library_sources_ifdef(CONFIG_POSIX_NETWORKING net.c)
|
||||
endif()
|
||||
|
||||
if (CONFIG_POSIX_REALTIME_SIGNALS)
|
||||
if(CONFIG_POSIX_REALTIME_SIGNALS)
|
||||
zephyr_compile_definitions(-D_POSIX_REALTIME_SIGNALS=${POSIX_VERSION})
|
||||
endif()
|
||||
|
||||
if (NOT CONFIG_TC_PROVIDES_POSIX_SIGNALS)
|
||||
if(NOT CONFIG_TC_PROVIDES_POSIX_SIGNALS)
|
||||
zephyr_library_sources_ifdef(CONFIG_POSIX_SIGNALS signal.c ${STRSIGNAL_TABLE_H})
|
||||
endif()
|
||||
|
||||
if (NOT CONFIG_TC_PROVIDES_POSIX_SINGLE_PROCESS)
|
||||
if(NOT CONFIG_TC_PROVIDES_POSIX_SINGLE_PROCESS)
|
||||
zephyr_library_sources_ifdef(CONFIG_POSIX_SINGLE_PROCESS
|
||||
confstr.c
|
||||
env.c
|
||||
@@ -111,18 +111,18 @@ if (NOT CONFIG_TC_PROVIDES_POSIX_SINGLE_PROCESS)
|
||||
)
|
||||
endif()
|
||||
|
||||
if (NOT CONFIG_TC_PROVIDES_POSIX_SPIN_LOCKS)
|
||||
if(NOT CONFIG_TC_PROVIDES_POSIX_SPIN_LOCKS)
|
||||
zephyr_library_sources_ifdef(CONFIG_POSIX_SPIN_LOCKS spinlock.c)
|
||||
endif()
|
||||
|
||||
if (NOT CONFIG_TC_PROVIDES_POSIX_TIMERS)
|
||||
if(NOT CONFIG_TC_PROVIDES_POSIX_TIMERS)
|
||||
zephyr_library_sources_ifdef(CONFIG_POSIX_TIMERS
|
||||
clock.c
|
||||
timer.c
|
||||
timespec_to_timeout.c
|
||||
)
|
||||
endif()
|
||||
if (CONFIG_POSIX_TIMERS)
|
||||
if(CONFIG_POSIX_TIMERS)
|
||||
zephyr_compile_definitions(-D_POSIX_TIMERS=${POSIX_VERSION})
|
||||
# FIXME: Until we have a Kconfig for XSI_ADVANCED_REALTIME, define _POSIX_CPUTIME and
|
||||
# _POSIX_MONOTONIC_CLOCK with _POSIX_TIMERS.
|
||||
@@ -132,15 +132,15 @@ if (CONFIG_POSIX_TIMERS)
|
||||
zephyr_compile_definitions(-D_POSIX_MONOTONIC_CLOCK=${POSIX_VERSION})
|
||||
endif()
|
||||
|
||||
if (NOT CONFIG_TC_PROVIDES_POSIX_RW_LOCKS)
|
||||
if(NOT CONFIG_TC_PROVIDES_POSIX_RW_LOCKS)
|
||||
zephyr_library_sources_ifdef(CONFIG_POSIX_RW_LOCKS rwlock.c)
|
||||
endif()
|
||||
|
||||
if (NOT CONFIG_TC_PROVIDES_POSIX_SEMAPHORES)
|
||||
if(NOT CONFIG_TC_PROVIDES_POSIX_SEMAPHORES)
|
||||
zephyr_library_sources_ifdef(CONFIG_POSIX_SEMAPHORES semaphore.c)
|
||||
endif()
|
||||
|
||||
if (NOT CONFIG_TC_PROVIDES_POSIX_THREADS)
|
||||
if(NOT CONFIG_TC_PROVIDES_POSIX_THREADS)
|
||||
# Note: the Option is _POSIX_THREADS, while the Option Group is POSIX_THREADS_BASE.
|
||||
# We have opted to use POSIX_THREADS here to match the Option name.
|
||||
zephyr_library_sources_ifdef(CONFIG_POSIX_THREADS
|
||||
@@ -152,7 +152,7 @@ if (NOT CONFIG_TC_PROVIDES_POSIX_THREADS)
|
||||
pwd.c
|
||||
)
|
||||
endif()
|
||||
if (CONFIG_POSIX_THREADS)
|
||||
if(CONFIG_POSIX_THREADS)
|
||||
zephyr_compile_definitions(-D_POSIX_THREADS=${POSIX_VERSION})
|
||||
endif()
|
||||
|
||||
@@ -167,14 +167,14 @@ endif()
|
||||
|
||||
zephyr_library_sources_ifdef(CONFIG_XOPEN_STREAMS stropts.c)
|
||||
|
||||
if (NOT CONFIG_TC_PROVIDES_XSI_SINGLE_PROCESS)
|
||||
if(NOT CONFIG_TC_PROVIDES_XSI_SINGLE_PROCESS)
|
||||
zephyr_library_sources_ifdef(CONFIG_XSI_SINGLE_PROCESS
|
||||
env_common.c
|
||||
xsi_single_process.c
|
||||
)
|
||||
endif()
|
||||
|
||||
if (NOT CONFIG_TC_PROVIDES_XSI_SYSTEM_LOGGING)
|
||||
if(NOT CONFIG_TC_PROVIDES_XSI_SYSTEM_LOGGING)
|
||||
zephyr_library_sources_ifdef(CONFIG_XSI_SYSTEM_LOGGING syslog.c)
|
||||
endif()
|
||||
|
||||
|
||||
@@ -36,12 +36,12 @@ if(CONFIG_CMSIS_DSP)
|
||||
|
||||
zephyr_compile_definitions_ifndef(CONFIG_ARM __GNUC_PYTHON__)
|
||||
|
||||
if (CONFIG_CMSIS_DSP_NEON OR CONFIG_CMSIS_DSP_NEON_EXPERIMENTAL)
|
||||
if(CONFIG_CMSIS_DSP_NEON OR CONFIG_CMSIS_DSP_NEON_EXPERIMENTAL)
|
||||
zephyr_library_include_directories("${CMSIS_DSP_DIR}/ComputeLibrary/Include")
|
||||
endif()
|
||||
|
||||
if (CONFIG_ARMV8_1_M_MVEI OR CONFIG_ARMV8_1_M_MVEF)
|
||||
if (CONFIG_CMSIS_DSP_LAX_VECTOR_CONVERSIONS)
|
||||
if(CONFIG_ARMV8_1_M_MVEI OR CONFIG_ARMV8_1_M_MVEF)
|
||||
if(CONFIG_CMSIS_DSP_LAX_VECTOR_CONVERSIONS)
|
||||
zephyr_library_compile_options($<$<STREQUAL:${CMAKE_C_COMPILER_ID},GNU>:-flax-vector-conversions>)
|
||||
zephyr_library_compile_options($<$<STREQUAL:${CMAKE_C_COMPILER_ID},ARMClang>:-flax-vector-conversions=integer>)
|
||||
else()
|
||||
@@ -142,7 +142,7 @@ if(CONFIG_CMSIS_DSP)
|
||||
zephyr_library_sources(${SRCF64})
|
||||
zephyr_library_sources(${SRCF32})
|
||||
|
||||
if ((NOT ARMAC5) AND (NOT DISABLEFLOAT16))
|
||||
if((NOT ARMAC5) AND (NOT DISABLEFLOAT16))
|
||||
zephyr_library_sources(${SRCF16})
|
||||
endif()
|
||||
|
||||
@@ -156,10 +156,10 @@ if(CONFIG_CMSIS_DSP)
|
||||
endif()
|
||||
|
||||
# BayesFunctions
|
||||
if (CONFIG_CMSIS_DSP_BAYES)
|
||||
if(CONFIG_CMSIS_DSP_BAYES)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/BayesFunctions/arm_gaussian_naive_bayes_predict_f32.c)
|
||||
|
||||
if ((NOT ARMAC5) AND (NOT DISABLEFLOAT16))
|
||||
if((NOT ARMAC5) AND (NOT DISABLEFLOAT16))
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/BayesFunctions/arm_gaussian_naive_bayes_predict_f16.c)
|
||||
endif()
|
||||
endif()
|
||||
@@ -173,22 +173,22 @@ if(CONFIG_CMSIS_DSP)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/CommonTables/arm_const_structs_f16.c)
|
||||
|
||||
|
||||
if (CONFIG_CMSIS_DSP_NEON OR CONFIG_CMSIS_DSP_NEON_EXPERIMENTAL)
|
||||
if(CONFIG_CMSIS_DSP_NEON OR CONFIG_CMSIS_DSP_NEON_EXPERIMENTAL)
|
||||
zephyr_library_sources("${CMSIS_DSP_DIR}/ComputeLibrary/Source/arm_cl_tables.c")
|
||||
endif()
|
||||
|
||||
if (CONFIG_ARMV8_1_M_MVEI OR CONFIG_ARMV8_1_M_MVEF)
|
||||
if(CONFIG_ARMV8_1_M_MVEI OR CONFIG_ARMV8_1_M_MVEF)
|
||||
zephyr_library_sources("${CMSIS_DSP_DIR}/Source/CommonTables/arm_mve_tables.c")
|
||||
zephyr_library_sources("${CMSIS_DSP_DIR}/Source/CommonTables/arm_mve_tables_f16.c")
|
||||
endif()
|
||||
|
||||
|
||||
if (WRAPPER)
|
||||
if(WRAPPER)
|
||||
target_compile_definitions(CMSISDSP PUBLIC ARM_TABLE_BITREV_1024)
|
||||
target_compile_definitions(CMSISDSP PUBLIC ARM_TABLE_TWIDDLECOEF_F32_4096)
|
||||
target_compile_definitions(CMSISDSP PUBLIC ARM_TABLE_TWIDDLECOEF_Q31_4096)
|
||||
target_compile_definitions(CMSISDSP PUBLIC ARM_TABLE_TWIDDLECOEF_Q15_4096)
|
||||
if ((NOT ARMAC5) AND (NOT DISABLEFLOAT16))
|
||||
if((NOT ARMAC5) AND (NOT DISABLEFLOAT16))
|
||||
target_compile_definitions(CMSISDSP PUBLIC ARM_TABLE_TWIDDLECOEF_F16_4096)
|
||||
endif()
|
||||
endif()
|
||||
@@ -197,7 +197,7 @@ if(CONFIG_CMSIS_DSP)
|
||||
# MVE code is using a table for computing the fast sqrt arm_cmplx_mag_q31
|
||||
# There is the possibility of not compiling this function and not including
|
||||
# the table.
|
||||
if (CONFIG_CMSIS_DSP_COMPLEXMATH)
|
||||
if(CONFIG_CMSIS_DSP_COMPLEXMATH)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/ComplexMathFunctions/arm_cmplx_mag_q31.c)
|
||||
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/ComplexMathFunctions/arm_cmplx_mag_q15.c)
|
||||
@@ -224,7 +224,7 @@ if(CONFIG_CMSIS_DSP)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/ComplexMathFunctions/arm_cmplx_mult_real_q15.c)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/ComplexMathFunctions/arm_cmplx_mult_real_q31.c)
|
||||
|
||||
if ((NOT ARMAC5) AND (NOT DISABLEFLOAT16))
|
||||
if((NOT ARMAC5) AND (NOT DISABLEFLOAT16))
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/ComplexMathFunctions/arm_cmplx_conj_f16.c)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/ComplexMathFunctions/arm_cmplx_dot_prod_f16.c)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/ComplexMathFunctions/arm_cmplx_mag_f16.c)
|
||||
@@ -235,7 +235,7 @@ if(CONFIG_CMSIS_DSP)
|
||||
endif()
|
||||
|
||||
# Controller Functions
|
||||
if (CONFIG_CMSIS_DSP_CONTROLLER)
|
||||
if(CONFIG_CMSIS_DSP_CONTROLLER)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/ControllerFunctions/arm_pid_init_f32.c)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/ControllerFunctions/arm_pid_init_q15.c)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/ControllerFunctions/arm_pid_init_q31.c)
|
||||
@@ -249,7 +249,7 @@ if(CONFIG_CMSIS_DSP)
|
||||
endif()
|
||||
|
||||
# Distance Functions
|
||||
if (CONFIG_CMSIS_DSP_DISTANCE)
|
||||
if(CONFIG_CMSIS_DSP_DISTANCE)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/DistanceFunctions/arm_boolean_distance.c)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/DistanceFunctions/arm_braycurtis_distance_f32.c)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/DistanceFunctions/arm_canberra_distance_f32.c)
|
||||
@@ -280,7 +280,7 @@ if(CONFIG_CMSIS_DSP)
|
||||
|
||||
zephyr_library_include_directories("${CMSIS_DSP_DIR}/Source/DistanceFunctions")
|
||||
|
||||
if ((NOT ARMAC5) AND (NOT DISABLEFLOAT16))
|
||||
if((NOT ARMAC5) AND (NOT DISABLEFLOAT16))
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/DistanceFunctions/arm_braycurtis_distance_f16.c)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/DistanceFunctions/arm_canberra_distance_f16.c)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/DistanceFunctions/arm_chebyshev_distance_f16.c)
|
||||
@@ -294,7 +294,7 @@ if(CONFIG_CMSIS_DSP)
|
||||
endif()
|
||||
|
||||
# Fast Math Functions
|
||||
if (CONFIG_CMSIS_DSP_FASTMATH)
|
||||
if(CONFIG_CMSIS_DSP_FASTMATH)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/FastMathFunctions/arm_cos_f32.c)
|
||||
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/FastMathFunctions/arm_cos_q15.c)
|
||||
@@ -320,7 +320,7 @@ if(CONFIG_CMSIS_DSP)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/FastMathFunctions/arm_vlog_q15.c)
|
||||
|
||||
|
||||
if ((NOT ARMAC5) AND (NOT DISABLEFLOAT16))
|
||||
if((NOT ARMAC5) AND (NOT DISABLEFLOAT16))
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/FastMathFunctions/arm_vlog_f16.c)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/FastMathFunctions/arm_vexp_f16.c)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/FastMathFunctions/arm_vinverse_f16.c)
|
||||
@@ -336,7 +336,7 @@ if(CONFIG_CMSIS_DSP)
|
||||
endif()
|
||||
|
||||
# Filtering Functions
|
||||
if (CONFIG_CMSIS_DSP_FILTERING)
|
||||
if(CONFIG_CMSIS_DSP_FILTERING)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/FilteringFunctions/arm_lms_norm_init_q31.c)
|
||||
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/FilteringFunctions/arm_lms_norm_init_q15.c)
|
||||
@@ -444,7 +444,7 @@ if(CONFIG_CMSIS_DSP)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/FilteringFunctions/arm_levinson_durbin_f32.c)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/FilteringFunctions/arm_levinson_durbin_q31.c)
|
||||
|
||||
if ((NOT ARMAC5) AND (NOT DISABLEFLOAT16))
|
||||
if((NOT ARMAC5) AND (NOT DISABLEFLOAT16))
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/FilteringFunctions/arm_fir_f16.c)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/FilteringFunctions/arm_fir_init_f16.c)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/FilteringFunctions/arm_biquad_cascade_df1_f16.c)
|
||||
@@ -459,7 +459,7 @@ if(CONFIG_CMSIS_DSP)
|
||||
endif()
|
||||
|
||||
# Interpolation Functions
|
||||
if (CONFIG_CMSIS_DSP_INTERPOLATION)
|
||||
if(CONFIG_CMSIS_DSP_INTERPOLATION)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/InterpolationFunctions/arm_bilinear_interp_f32.c)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/InterpolationFunctions/arm_bilinear_interp_q15.c)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/InterpolationFunctions/arm_bilinear_interp_q31.c)
|
||||
@@ -472,14 +472,14 @@ if(CONFIG_CMSIS_DSP)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/InterpolationFunctions/arm_spline_interp_init_f32.c)
|
||||
|
||||
|
||||
if ((NOT ARMAC5) AND (NOT DISABLEFLOAT16))
|
||||
if((NOT ARMAC5) AND (NOT DISABLEFLOAT16))
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/InterpolationFunctions/arm_bilinear_interp_f16.c)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/InterpolationFunctions/arm_linear_interp_f16.c)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# Matrix Functions
|
||||
if (CONFIG_CMSIS_DSP_MATRIX)
|
||||
if(CONFIG_CMSIS_DSP_MATRIX)
|
||||
set(SRCF64 ${CMSIS_DSP_DIR}/Source/MatrixFunctions/arm_mat_cholesky_f64.c
|
||||
${CMSIS_DSP_DIR}/Source/MatrixFunctions/arm_mat_inverse_f64.c
|
||||
${CMSIS_DSP_DIR}/Source/MatrixFunctions/arm_mat_ldlt_f64.c
|
||||
@@ -548,7 +548,7 @@ if(CONFIG_CMSIS_DSP)
|
||||
zephyr_library_sources(${SRCQ7})
|
||||
|
||||
|
||||
if ((NOT ARMAC5) AND (NOT DISABLEFLOAT16))
|
||||
if((NOT ARMAC5) AND (NOT DISABLEFLOAT16))
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/MatrixFunctions/arm_mat_add_f16.c
|
||||
${CMSIS_DSP_DIR}/Source/MatrixFunctions/arm_mat_cholesky_f16.c
|
||||
${CMSIS_DSP_DIR}/Source/MatrixFunctions/arm_mat_cmplx_mult_f16.c
|
||||
@@ -569,7 +569,7 @@ if(CONFIG_CMSIS_DSP)
|
||||
endif()
|
||||
|
||||
# Quaternion Math Functions
|
||||
if (CONFIG_CMSIS_DSP_QUATERNIONMATH)
|
||||
if(CONFIG_CMSIS_DSP_QUATERNIONMATH)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/QuaternionMathFunctions/arm_quaternion_norm_f32.c)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/QuaternionMathFunctions/arm_quaternion_inverse_f32.c)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/QuaternionMathFunctions/arm_quaternion_conjugate_f32.c)
|
||||
@@ -581,7 +581,7 @@ if(CONFIG_CMSIS_DSP)
|
||||
endif()
|
||||
|
||||
# Statistics Functions
|
||||
if (CONFIG_CMSIS_DSP_STATISTICS)
|
||||
if(CONFIG_CMSIS_DSP_STATISTICS)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/StatisticsFunctions/arm_entropy_f32.c)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/StatisticsFunctions/arm_entropy_f64.c)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/StatisticsFunctions/arm_kullback_leibler_f32.c)
|
||||
@@ -663,7 +663,7 @@ if(CONFIG_CMSIS_DSP)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/StatisticsFunctions/arm_accumulate_f32.c)
|
||||
|
||||
|
||||
if ((NOT ARMAC5) AND (NOT DISABLEFLOAT16))
|
||||
if((NOT ARMAC5) AND (NOT DISABLEFLOAT16))
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/StatisticsFunctions/arm_max_f16.c)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/StatisticsFunctions/arm_min_f16.c)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/StatisticsFunctions/arm_mean_f16.c)
|
||||
@@ -687,7 +687,7 @@ if(CONFIG_CMSIS_DSP)
|
||||
endif()
|
||||
|
||||
# Support Functions
|
||||
if (CONFIG_CMSIS_DSP_SUPPORT)
|
||||
if(CONFIG_CMSIS_DSP_SUPPORT)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/SupportFunctions/arm_barycenter_f32.c
|
||||
${CMSIS_DSP_DIR}/Source/SupportFunctions/arm_bitonic_sort_f32.c
|
||||
${CMSIS_DSP_DIR}/Source/SupportFunctions/arm_bubble_sort_f32.c
|
||||
@@ -734,7 +734,7 @@ if(CONFIG_CMSIS_DSP)
|
||||
${CMSIS_DSP_DIR}/Source/SupportFunctions/arm_weighted_average_f32.c
|
||||
)
|
||||
|
||||
if ((NOT ARMAC5) AND (NOT DISABLEFLOAT16))
|
||||
if((NOT ARMAC5) AND (NOT DISABLEFLOAT16))
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/SupportFunctions/arm_copy_f16.c)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/SupportFunctions/arm_fill_f16.c)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/SupportFunctions/arm_f16_to_q15.c)
|
||||
@@ -749,7 +749,7 @@ if(CONFIG_CMSIS_DSP)
|
||||
endif()
|
||||
|
||||
# SVM Functions
|
||||
if (CONFIG_CMSIS_DSP_SVM)
|
||||
if(CONFIG_CMSIS_DSP_SVM)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/SVMFunctions/arm_svm_linear_init_f32.c)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/SVMFunctions/arm_svm_rbf_init_f32.c)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/SVMFunctions/arm_svm_linear_predict_f32.c)
|
||||
@@ -759,7 +759,7 @@ if(CONFIG_CMSIS_DSP)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/SVMFunctions/arm_svm_polynomial_predict_f32.c)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/SVMFunctions/arm_svm_sigmoid_predict_f32.c)
|
||||
|
||||
if ((NOT ARMAC5) AND (NOT DISABLEFLOAT16))
|
||||
if((NOT ARMAC5) AND (NOT DISABLEFLOAT16))
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/SVMFunctions/arm_svm_linear_init_f16.c)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/SVMFunctions/arm_svm_rbf_init_f16.c)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/SVMFunctions/arm_svm_linear_predict_f16.c)
|
||||
@@ -772,11 +772,11 @@ if(CONFIG_CMSIS_DSP)
|
||||
endif()
|
||||
|
||||
# Transform Functions
|
||||
if (CONFIG_CMSIS_DSP_TRANSFORM)
|
||||
if(CONFIG_CMSIS_DSP_TRANSFORM)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/TransformFunctions/arm_bitreversal.c)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/TransformFunctions/arm_bitreversal2.c)
|
||||
|
||||
if ((NOT ARMAC5) AND (NOT DISABLEFLOAT16))
|
||||
if((NOT ARMAC5) AND (NOT DISABLEFLOAT16))
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/TransformFunctions/arm_bitreversal_f16.c)
|
||||
endif()
|
||||
|
||||
@@ -786,14 +786,14 @@ if(CONFIG_CMSIS_DSP)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/TransformFunctions/arm_cfft_f32.c)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/TransformFunctions/arm_cfft_init_f32.c)
|
||||
|
||||
if ((NOT ARMAC5) AND (NOT DISABLEFLOAT16))
|
||||
if((NOT ARMAC5) AND (NOT DISABLEFLOAT16))
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/TransformFunctions/arm_cfft_radix2_f16.c)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/TransformFunctions/arm_cfft_radix4_f16.c)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/TransformFunctions/arm_cfft_f16.c)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/TransformFunctions/arm_cfft_init_f16.c)
|
||||
endif()
|
||||
|
||||
if ((NOT ARMAC5) AND (NOT DISABLEFLOAT16))
|
||||
if((NOT ARMAC5) AND (NOT DISABLEFLOAT16))
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/TransformFunctions/arm_cfft_radix4_init_f16.c)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/TransformFunctions/arm_cfft_radix4_f16.c)
|
||||
endif()
|
||||
@@ -849,7 +849,7 @@ if(CONFIG_CMSIS_DSP)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/TransformFunctions/arm_rfft_fast_f64.c)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/TransformFunctions/arm_rfft_fast_init_f64.c)
|
||||
|
||||
if ((NOT ARMAC5) AND (NOT DISABLEFLOAT16))
|
||||
if((NOT ARMAC5) AND (NOT DISABLEFLOAT16))
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/TransformFunctions/arm_rfft_fast_f16.c)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/TransformFunctions/arm_rfft_fast_init_f16.c)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/TransformFunctions/arm_cfft_f16.c)
|
||||
@@ -874,7 +874,7 @@ if(CONFIG_CMSIS_DSP)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/TransformFunctions/arm_cfft_init_q31.c)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/TransformFunctions/arm_cfft_radix4_q31.c)
|
||||
|
||||
if (WRAPPER)
|
||||
if(WRAPPER)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/TransformFunctions/arm_cfft_radix2_init_q15.c)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/TransformFunctions/arm_cfft_radix2_init_q31.c)
|
||||
endif()
|
||||
@@ -884,9 +884,9 @@ if(CONFIG_CMSIS_DSP)
|
||||
|
||||
|
||||
# For scipy or wrappers or benchmarks
|
||||
if (WRAPPER)
|
||||
if(WRAPPER)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/TransformFunctions/arm_cfft_radix2_init_f32.c)
|
||||
if ((NOT ARMAC5) AND (NOT DISABLEFLOAT16))
|
||||
if((NOT ARMAC5) AND (NOT DISABLEFLOAT16))
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/TransformFunctions/arm_cfft_radix2_init_f16.c)
|
||||
endif()
|
||||
endif()
|
||||
@@ -900,14 +900,14 @@ if(CONFIG_CMSIS_DSP)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/TransformFunctions/arm_mfcc_init_q15.c)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/TransformFunctions/arm_mfcc_q15.c)
|
||||
|
||||
if ((NOT ARMAC5) AND (NOT DISABLEFLOAT16))
|
||||
if((NOT ARMAC5) AND (NOT DISABLEFLOAT16))
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/TransformFunctions/arm_mfcc_init_f16.c)
|
||||
zephyr_library_sources(${CMSIS_DSP_DIR}/Source/TransformFunctions/arm_mfcc_f16.c)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# Window Functions
|
||||
if (CONFIG_CMSIS_DSP_WINDOW)
|
||||
if(CONFIG_CMSIS_DSP_WINDOW)
|
||||
set(SRCF64 ${CMSIS_DSP_DIR}/Source/WindowFunctions/arm_welch_f64.c
|
||||
${CMSIS_DSP_DIR}/Source/WindowFunctions/arm_bartlett_f64.c
|
||||
${CMSIS_DSP_DIR}/Source/WindowFunctions/arm_hamming_f64.c
|
||||
|
||||
@@ -14,10 +14,10 @@ if(CONFIG_ETHOS_U AND CONFIG_MULTITHREADING)
|
||||
set(ETHOSU_LOG_SEVERITY_MAP err err warning info debug)
|
||||
list(LENGTH ETHOSU_LOG_SEVERITY_MAP ETHOSU_LOG_SEVERITY_MAP_LENGTH)
|
||||
|
||||
if (${CONFIG_ETHOS_U_LOG_LEVEL} EQUAL 0)
|
||||
if(${CONFIG_ETHOS_U_LOG_LEVEL} EQUAL 0)
|
||||
# The Ethos-U driver does not have a corresponding "none" log level. Disable logging instead.
|
||||
set(ETHOSU_LOG_ENABLE OFF CACHE BOOL "")
|
||||
elseif (${CONFIG_ETHOS_U_LOG_LEVEL} LESS "${ETHOSU_LOG_SEVERITY_MAP_LENGTH}")
|
||||
elseif(${CONFIG_ETHOS_U_LOG_LEVEL} LESS "${ETHOSU_LOG_SEVERITY_MAP_LENGTH}")
|
||||
list(GET ETHOSU_LOG_SEVERITY_MAP ${CONFIG_ETHOS_U_LOG_LEVEL} ETHOSU_LOG_SEVERITY)
|
||||
set(ETHOSU_LOG_SEVERITY ${ETHOSU_LOG_SEVERITY} CACHE STRING "")
|
||||
else()
|
||||
|
||||
@@ -41,7 +41,7 @@ endif()
|
||||
# GD32E50X series HAL public headers require extra definitions
|
||||
if(${CONFIG_SOC_SERIES_GD32E50X})
|
||||
zephyr_compile_definitions(GD32E50X)
|
||||
if (${CONFIG_SOC_GD32E507})
|
||||
if(${CONFIG_SOC_GD32E507})
|
||||
zephyr_compile_definitions(GD32E50X_CL)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
@@ -75,7 +75,7 @@ if(CONFIG_SOC_SERIES_PSC3)
|
||||
endif()
|
||||
|
||||
## Add Wi-Fi assets for AIROC devices
|
||||
if (CONFIG_WIFI_AIROC)
|
||||
if(CONFIG_WIFI_AIROC)
|
||||
add_subdirectory(whd-expansion)
|
||||
|
||||
## Add core-lib sources for CAT1 devices
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
# Copyright (c) 2021 Nordic Semiconductor ASA
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if (CONFIG_NRF_802154_RADIO_DRIVER OR CONFIG_NRF_802154_SERIALIZATION)
|
||||
if(CONFIG_NRF_802154_RADIO_DRIVER OR CONFIG_NRF_802154_SERIALIZATION)
|
||||
add_subdirectory(nrf_802154)
|
||||
endif (CONFIG_NRF_802154_RADIO_DRIVER OR CONFIG_NRF_802154_SERIALIZATION)
|
||||
endif(CONFIG_NRF_802154_RADIO_DRIVER OR CONFIG_NRF_802154_SERIALIZATION)
|
||||
|
||||
add_subdirectory_ifdef(CONFIG_HAS_NRFX nrfx)
|
||||
add_subdirectory_ifdef(CONFIG_HAS_NRFS nrfs)
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
zephyr_library_named(nrf-802154-platform)
|
||||
zephyr_interface_library_named(zephyr-802154-interface)
|
||||
|
||||
if (CONFIG_NRF_802154_RADIO_DRIVER)
|
||||
if(CONFIG_NRF_802154_RADIO_DRIVER)
|
||||
target_sources(nrf-802154-platform
|
||||
PRIVATE
|
||||
radio/platform/nrf_802154_random_zephyr.c
|
||||
@@ -12,9 +12,9 @@ if (CONFIG_NRF_802154_RADIO_DRIVER)
|
||||
sl_opensource/platform/nrf_802154_irq_zephyr.c
|
||||
sl_opensource/platform/nrf_802154_temperature_zephyr.c
|
||||
)
|
||||
endif ()
|
||||
endif()
|
||||
|
||||
if (CONFIG_NRF_802154_SERIALIZATION)
|
||||
if(CONFIG_NRF_802154_SERIALIZATION)
|
||||
target_sources(nrf-802154-platform
|
||||
PRIVATE
|
||||
serialization/platform/nrf_802154_serialization_crit_sect.c
|
||||
@@ -22,14 +22,14 @@ if (CONFIG_NRF_802154_SERIALIZATION)
|
||||
serialization/platform/nrf_802154_spinel_backend_ipc.c
|
||||
serialization/platform/nrf_802154_spinel_response_notifier.c
|
||||
)
|
||||
endif ()
|
||||
endif()
|
||||
|
||||
if (CONFIG_NRF_802154_SER_RADIO)
|
||||
if(CONFIG_NRF_802154_SER_RADIO)
|
||||
target_sources(nrf-802154-platform
|
||||
PRIVATE
|
||||
serialization/platform/nrf_802154_init_net.c
|
||||
)
|
||||
endif ()
|
||||
endif()
|
||||
|
||||
target_compile_definitions(zephyr-802154-interface
|
||||
INTERFACE
|
||||
@@ -56,47 +56,47 @@ target_compile_definitions(zephyr-802154-interface
|
||||
NRF_802154_SECURITY_KEY_STORAGE_SIZE=${CONFIG_NRF_802154_SECURITY_KEY_STORAGE_SIZE}
|
||||
)
|
||||
|
||||
if (CONFIG_NRF_802154_CCA_MODE_ED)
|
||||
if(CONFIG_NRF_802154_CCA_MODE_ED)
|
||||
target_compile_definitions(zephyr-802154-interface INTERFACE NRF_802154_CCA_MODE_DEFAULT=NRF_RADIO_CCA_MODE_ED)
|
||||
elseif (CONFIG_NRF_802154_CCA_MODE_CARRIER)
|
||||
elseif(CONFIG_NRF_802154_CCA_MODE_CARRIER)
|
||||
target_compile_definitions(zephyr-802154-interface INTERFACE NRF_802154_CCA_MODE_DEFAULT=NRF_RADIO_CCA_MODE_CARRIER)
|
||||
elseif (CONFIG_NRF_802154_CCA_MODE_CARRIER_AND_ED)
|
||||
elseif(CONFIG_NRF_802154_CCA_MODE_CARRIER_AND_ED)
|
||||
target_compile_definitions(zephyr-802154-interface INTERFACE NRF_802154_CCA_MODE_DEFAULT=NRF_RADIO_CCA_MODE_CARRIER_AND_ED)
|
||||
elseif (CONFIG_NRF_802154_CCA_MODE_CARRIER_OR_ED)
|
||||
elseif(CONFIG_NRF_802154_CCA_MODE_CARRIER_OR_ED)
|
||||
target_compile_definitions(zephyr-802154-interface INTERFACE NRF_802154_CCA_MODE_DEFAULT=NRF_RADIO_CCA_MODE_CARRIER_OR_ED)
|
||||
endif()
|
||||
|
||||
if (CONFIG_NRF_802154_ENCRYPTION)
|
||||
if(CONFIG_NRF_802154_ENCRYPTION)
|
||||
target_compile_definitions(zephyr-802154-interface INTERFACE NRF_802154_ENCRYPTION_ENABLED=1)
|
||||
else ()
|
||||
else()
|
||||
target_compile_definitions(zephyr-802154-interface INTERFACE NRF_802154_ENCRYPTION_ENABLED=0)
|
||||
endif ()
|
||||
endif()
|
||||
|
||||
if (CONFIG_NRF_802154_IE_WRITER)
|
||||
if(CONFIG_NRF_802154_IE_WRITER)
|
||||
target_compile_definitions(zephyr-802154-interface INTERFACE NRF_802154_IE_WRITER_ENABLED=1)
|
||||
else ()
|
||||
else()
|
||||
target_compile_definitions(zephyr-802154-interface INTERFACE NRF_802154_IE_WRITER_ENABLED=0)
|
||||
endif ()
|
||||
endif()
|
||||
|
||||
if (CONFIG_NRF_802154_SECURITY_WRITER)
|
||||
if(CONFIG_NRF_802154_SECURITY_WRITER)
|
||||
target_compile_definitions(zephyr-802154-interface INTERFACE NRF_802154_SECURITY_WRITER_ENABLED=1)
|
||||
else ()
|
||||
else()
|
||||
target_compile_definitions(zephyr-802154-interface INTERFACE NRF_802154_SECURITY_WRITER_ENABLED=0)
|
||||
endif()
|
||||
|
||||
if (NOT CONFIG_IEEE802154_NRF5 AND NOT CONFIG_IEEE802154_NRF5_EXT_IRQ_MGMT AND CONFIG_NRF_802154_SL_OPENSOURCE)
|
||||
if(NOT CONFIG_IEEE802154_NRF5 AND NOT CONFIG_IEEE802154_NRF5_EXT_IRQ_MGMT AND CONFIG_NRF_802154_SL_OPENSOURCE)
|
||||
target_compile_definitions(zephyr-802154-interface INTERFACE NRF_802154_INTERNAL_RADIO_IRQ_HANDLING=1)
|
||||
else()
|
||||
target_compile_definitions(zephyr-802154-interface INTERFACE NRF_802154_INTERNAL_RADIO_IRQ_HANDLING=0)
|
||||
endif()
|
||||
|
||||
if (CONFIG_NRF_802154_CARRIER_FUNCTIONS)
|
||||
if(CONFIG_NRF_802154_CARRIER_FUNCTIONS)
|
||||
target_compile_definitions(zephyr-802154-interface INTERFACE NRF_802154_CARRIER_FUNCTIONS_ENABLED=1)
|
||||
else()
|
||||
target_compile_definitions(zephyr-802154-interface INTERFACE NRF_802154_CARRIER_FUNCTIONS_ENABLED=0)
|
||||
endif()
|
||||
|
||||
if (CONFIG_NRF_802154_ASSERT_ZEPHYR OR CONFIG_NRF_802154_ASSERT_ZEPHYR_MINIMAL)
|
||||
if(CONFIG_NRF_802154_ASSERT_ZEPHYR OR CONFIG_NRF_802154_ASSERT_ZEPHYR_MINIMAL)
|
||||
target_include_directories(zephyr-802154-interface INTERFACE include)
|
||||
target_compile_definitions(zephyr-802154-interface INTERFACE NRF_802154_PLATFORM_ASSERT_INCLUDE=\"nrf_802154_assert_zephyr.h\")
|
||||
target_sources(nrf-802154-platform PRIVATE nrf_802154_assert_handler.c)
|
||||
@@ -115,15 +115,15 @@ if(CONFIG_NRF_802154_SOURCE_HAL_NORDIC)
|
||||
endif()
|
||||
|
||||
|
||||
if (CONFIG_NRF_802154_RADIO_DRIVER)
|
||||
if(CONFIG_NRF_802154_RADIO_DRIVER)
|
||||
zephyr_append_cmake_library(nrf-802154-driver)
|
||||
zephyr_append_cmake_library(nrf-802154-sl)
|
||||
target_link_libraries(zephyr_interface INTERFACE nrf-802154-driver-interface)
|
||||
# This link is needed to resolve circular dependency between SL and platform
|
||||
target_link_libraries(nrf-802154-platform PRIVATE nrf-802154-sl)
|
||||
endif ()
|
||||
endif()
|
||||
|
||||
if (CONFIG_NRF_802154_SERIALIZATION)
|
||||
if(CONFIG_NRF_802154_SERIALIZATION)
|
||||
zephyr_append_cmake_library(nrf-802154-serialization)
|
||||
target_link_libraries(zephyr_interface INTERFACE nrf-802154-serialization-interface)
|
||||
endif ()
|
||||
endif()
|
||||
|
||||
@@ -31,10 +31,10 @@ endfunction()
|
||||
#
|
||||
# CMake should set current toolchain in CMake Variable
|
||||
# `CONFIG_TOOLCHAIN` to use this feature.
|
||||
if (${COMPILER} STREQUAL iar)
|
||||
if(${COMPILER} STREQUAL iar)
|
||||
set(CONFIG_TOOLCHAIN iar)
|
||||
elseif (${COMPILER} STREQUAL xcc)
|
||||
elseif(${COMPILER} STREQUAL xcc)
|
||||
set(CONFIG_TOOLCHAIN xtensa)
|
||||
else ()
|
||||
else()
|
||||
set(CONFIG_TOOLCHAIN armgcc)
|
||||
endif()
|
||||
|
||||
@@ -41,9 +41,9 @@ endif()
|
||||
# `core_id_suffix_name` in MCUX SDK NG, here convert it to `core_id`, then pass
|
||||
# it to MCUX SDK NG.
|
||||
if(DEFINED CONFIG_MCUX_CORE_SUFFIX)
|
||||
if (CONFIG_SOC_MIMXRT595S_F1)
|
||||
if(CONFIG_SOC_MIMXRT595S_F1)
|
||||
set(core_id "fusionf1")
|
||||
elseif (CONFIG_SOC_MIMXRT685S_HIFI4)
|
||||
elseif(CONFIG_SOC_MIMXRT685S_HIFI4)
|
||||
set(core_id "hifi4")
|
||||
else()
|
||||
string (REGEX REPLACE "^_" "" core_id "${CONFIG_MCUX_CORE_SUFFIX}")
|
||||
@@ -95,32 +95,32 @@ set(CONFIG_MCUX_HW_DEVICE_CORE "${MCUX_DEVICE}${core_id_suffix_name}")
|
||||
# They are used by the files like:
|
||||
# zephyr/modules/hal/nxp/mcux/mcux-sdk-ng/devices/arm/shared.cmake
|
||||
# zephyr/modules/hal/nxp/mcux/mcux-sdk-ng/devices/xtensa/shared.cmake
|
||||
if (CONFIG_CPU_CORTEX_M0PLUS)
|
||||
if(CONFIG_CPU_CORTEX_M0PLUS)
|
||||
set(CONFIG_MCUX_HW_CORE cm0p)
|
||||
elseif (CONFIG_CPU_CORTEX_M3)
|
||||
elseif(CONFIG_CPU_CORTEX_M3)
|
||||
set(CONFIG_MCUX_HW_CORE cm3)
|
||||
elseif (CONFIG_CPU_CORTEX_M33)
|
||||
elseif(CONFIG_CPU_CORTEX_M33)
|
||||
set(CONFIG_MCUX_HW_CORE cm33)
|
||||
elseif (CONFIG_CPU_CORTEX_M4)
|
||||
if (CONFIG_CPU_HAS_FPU)
|
||||
elseif(CONFIG_CPU_CORTEX_M4)
|
||||
if(CONFIG_CPU_HAS_FPU)
|
||||
set(CONFIG_MCUX_HW_CORE cm4f)
|
||||
else()
|
||||
set(CONFIG_MCUX_HW_CORE cm4)
|
||||
endif()
|
||||
elseif (CONFIG_CPU_CORTEX_M7)
|
||||
elseif(CONFIG_CPU_CORTEX_M7)
|
||||
set(CONFIG_MCUX_HW_CORE cm7f)
|
||||
elseif (CONFIG_XTENSA)
|
||||
elseif(CONFIG_XTENSA)
|
||||
set(CONFIG_MCUX_HW_CORE dsp)
|
||||
endif()
|
||||
|
||||
if (CONFIG_CPU_HAS_FPU)
|
||||
if (CONFIG_CPU_CORTEX_M33 OR CONFIG_CPU_CORTEX_M7)
|
||||
if (CONFIG_CPU_HAS_FPU_DOUBLE_PRECISION)
|
||||
if(CONFIG_CPU_HAS_FPU)
|
||||
if(CONFIG_CPU_CORTEX_M33 OR CONFIG_CPU_CORTEX_M7)
|
||||
if(CONFIG_CPU_HAS_FPU_DOUBLE_PRECISION)
|
||||
set(CONFIG_MCUX_HW_FPU_TYPE fpv5_dp)
|
||||
else()
|
||||
set(CONFIG_MCUX_HW_FPU_TYPE fpv5_sp)
|
||||
endif()
|
||||
elseif (CONFIG_CPU_CORTEX_M4)
|
||||
elseif(CONFIG_CPU_CORTEX_M4)
|
||||
set(CONFIG_MCUX_HW_FPU_TYPE fpv4_sp)
|
||||
endif()
|
||||
else()
|
||||
|
||||
@@ -36,7 +36,7 @@ if(CONFIG_UDC_DRIVER)
|
||||
zephyr_include_directories(${MCUX_SDK_NG_DIR}/middleware/usb/include)
|
||||
endif()
|
||||
|
||||
if (CONFIG_UHC_DRIVER)
|
||||
if(CONFIG_UHC_DRIVER)
|
||||
zephyr_include_directories(middleware)
|
||||
|
||||
set(CONFIG_MCUX_COMPONENT_middleware.usb.common_header ON)
|
||||
|
||||
@@ -40,7 +40,7 @@ endfunction()
|
||||
message("Load components for ${MCUX_DEVICE}:")
|
||||
|
||||
# Required by all SCFW-based SoCs
|
||||
if (CONFIG_SOC_MIMX8QM6_ADSP OR CONFIG_SOC_MIMX8QX6_ADSP)
|
||||
if(CONFIG_SOC_MIMX8QM6_ADSP OR CONFIG_SOC_MIMX8QX6_ADSP)
|
||||
list(APPEND CMAKE_MODULE_PATH
|
||||
${ZEPHYR_CURRENT_MODULE_DIR}/mcux/mcux-sdk/devices/${MCUX_DEVICE_PATH}/scfw_api
|
||||
)
|
||||
@@ -66,10 +66,10 @@ zephyr_library_sources_ifdef(CONFIG_SOC_LPC54114_M4
|
||||
|
||||
#Include system_xxx file
|
||||
#This can be extended to other SoC series if needed
|
||||
if (DEFINED CONFIG_SOC_RESET_HOOK)
|
||||
if (CONFIG_SOC_LPC54114_M4)
|
||||
if(DEFINED CONFIG_SOC_RESET_HOOK)
|
||||
if(CONFIG_SOC_LPC54114_M4)
|
||||
include(device_system_LPC54114_cm4)
|
||||
elseif (CONFIG_SOC_LPC54114_M0)
|
||||
elseif(CONFIG_SOC_LPC54114_M0)
|
||||
include(device_system_LPC54114_cm0plus)
|
||||
else()
|
||||
include(device_system)
|
||||
|
||||
@@ -236,7 +236,7 @@ zephyr_library_sources_ifdef(CONFIG_WIFI_NM_WPA_SUPPLICANT_11AC
|
||||
${HOSTAP_SRC_BASE}/ap/ieee802_11_vht.c
|
||||
)
|
||||
|
||||
if (CONFIG_WIFI_NM_WPA_SUPPLICANT_MBO)
|
||||
if(CONFIG_WIFI_NM_WPA_SUPPLICANT_MBO)
|
||||
zephyr_library_sources(${HOSTAP_SRC_BASE}/ap/mbo_ap.c)
|
||||
endif()
|
||||
|
||||
@@ -550,7 +550,7 @@ zephyr_library_compile_definitions_ifdef(CONFIG_EAP_IKEV2
|
||||
EAP_IKEV2
|
||||
)
|
||||
|
||||
if (CONFIG_EAP_SIM OR CONFIG_EAP_AKA)
|
||||
if(CONFIG_EAP_SIM OR CONFIG_EAP_AKA)
|
||||
zephyr_library_sources(${HOSTAP_SRC_BASE}/eap_common/eap_sim_common.c)
|
||||
endif()
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ zephyr_interface_library_named(mbedTLS)
|
||||
MBEDTLS_CONFIG_FILE="${CONFIG_MBEDTLS_CFG_FILE}"
|
||||
)
|
||||
|
||||
if (CONFIG_BUILD_WITH_TFM)
|
||||
if(CONFIG_BUILD_WITH_TFM)
|
||||
target_include_directories(mbedTLS INTERFACE
|
||||
$<TARGET_PROPERTY:tfm,TFM_BINARY_DIR>/api_ns/interface/include
|
||||
)
|
||||
@@ -44,7 +44,7 @@ zephyr_interface_library_named(mbedTLS)
|
||||
include
|
||||
)
|
||||
|
||||
if (CONFIG_MBEDTLS_PSA_P256M_DRIVER_RAW)
|
||||
if(CONFIG_MBEDTLS_PSA_P256M_DRIVER_RAW)
|
||||
target_include_directories(mbedTLS INTERFACE
|
||||
${ZEPHYR_CURRENT_MODULE_DIR}/3rdparty/p256-m/p256-m
|
||||
)
|
||||
@@ -131,13 +131,13 @@ zephyr_interface_library_named(mbedTLS)
|
||||
# to speed
|
||||
set_property(SOURCE ${ZEPHYR_CURRENT_MODULE_DIR}/library/bignum_core.c APPEND PROPERTY COMPILE_OPTIONS
|
||||
"${COMPILER_OPTIMIZE_FOR_SPEED_FLAG}")
|
||||
endif ()
|
||||
endif()
|
||||
|
||||
zephyr_library_link_libraries(mbedTLS)
|
||||
|
||||
zephyr_library_named(mbedTLSCrypto)
|
||||
|
||||
if (CONFIG_MBEDTLS_PSA_CRYPTO_C)
|
||||
if(CONFIG_MBEDTLS_PSA_CRYPTO_C)
|
||||
list(APPEND crypto_source
|
||||
${ZEPHYR_CURRENT_MODULE_DIR}/library/psa_crypto_aead.c
|
||||
${ZEPHYR_CURRENT_MODULE_DIR}/library/psa_crypto_cipher.c
|
||||
@@ -231,7 +231,7 @@ zephyr_interface_library_named(mbedTLS)
|
||||
mbedTLS
|
||||
)
|
||||
|
||||
elseif (CONFIG_MBEDTLS_LIBRARY)
|
||||
elseif(CONFIG_MBEDTLS_LIBRARY)
|
||||
|
||||
# NB: CONFIG_MBEDTLS_LIBRARY is not regression tested and is
|
||||
# therefore susceptible to bit rot
|
||||
@@ -253,8 +253,8 @@ else()
|
||||
# included the required directories for mbedtls in their projects.
|
||||
endif()
|
||||
|
||||
if (CONFIG_MBEDTLS_TLS_VERSION_1_2 OR CONFIG_MBEDTLS_TLS_VERSION_1_3)
|
||||
if (NOT CONFIG_MBEDTLS_HAVE_TIME_DATE)
|
||||
if(CONFIG_MBEDTLS_TLS_VERSION_1_2 OR CONFIG_MBEDTLS_TLS_VERSION_1_3)
|
||||
if(NOT CONFIG_MBEDTLS_HAVE_TIME_DATE)
|
||||
message(WARNING "
|
||||
The option CONFIG_MBEDTLS_HAVE_TIME_DATE is required for proper
|
||||
certificate validation. If it is not enabled, certificates will
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
set(NRF_WIFI_DIR ${ZEPHYR_CURRENT_MODULE_DIR})
|
||||
|
||||
if (CONFIG_NRF70_BUSLIB)
|
||||
if(CONFIG_NRF70_BUSLIB)
|
||||
|
||||
if(CONFIG_NRF70_ON_QSPI OR CONFIG_NORDIC_QSPI_NOR)
|
||||
zephyr_compile_definitions(
|
||||
|
||||
@@ -152,7 +152,7 @@ if(CONFIG_OPENTHREAD_POWER_SUPPLY)
|
||||
set(OT_POWER_SUPPLY ${CONFIG_OPENTHREAD_POWER_SUPPLY} CACHE STRING "Power supply configuration" FORCE)
|
||||
endif()
|
||||
|
||||
if (CONFIG_OPENTHREAD_CLI_VENDOR_EXTENSION)
|
||||
if(CONFIG_OPENTHREAD_CLI_VENDOR_EXTENSION)
|
||||
set(OT_CLI_VENDOR_EXTENSION ${CONFIG_OPENTHREAD_CLI_VENDOR_EXTENSION} CACHE STRING "Path to CMake file to define and link Openthread CLI vendor extension" FORCE)
|
||||
endif()
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if (CONFIG_PERCEPIO_TRACERECORDER OR CONFIG_PERCEPIO_DFM)
|
||||
if(CONFIG_PERCEPIO_TRACERECORDER OR CONFIG_PERCEPIO_DFM)
|
||||
zephyr_library()
|
||||
endif()
|
||||
|
||||
@@ -84,7 +84,7 @@ if(CONFIG_PERCEPIO_TRACERECORDER)
|
||||
)
|
||||
endif()
|
||||
|
||||
if (CONFIG_PERCEPIO_TRC_CFG_STREAM_PORT_ZEPHYR_SEMIHOST)
|
||||
if(CONFIG_PERCEPIO_TRC_CFG_STREAM_PORT_ZEPHYR_SEMIHOST)
|
||||
zephyr_library_sources(
|
||||
${TRACERECORDER_DIR}/kernelports/Zephyr/streamports/Semihost/trcStreamPort.c
|
||||
)
|
||||
|
||||
@@ -24,7 +24,7 @@ if(CONFIG_TENSORFLOW_LITE_MICRO)
|
||||
zephyr_library_compile_definitions(CMSIS_NN)
|
||||
endif()
|
||||
|
||||
if (CONFIG_ETHOS_U)
|
||||
if(CONFIG_ETHOS_U)
|
||||
set(ETHOSU_CO_PROCESSOR ethos_u)
|
||||
endif()
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Copyright (c) 2022 Arm Limited (or its affiliates). All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if (CONFIG_BUILD_WITH_TFA)
|
||||
if(CONFIG_BUILD_WITH_TFA)
|
||||
set(TFA_BINARY_DIR ${CMAKE_BINARY_DIR}/tfa)
|
||||
|
||||
file(MAKE_DIRECTORY ${TFA_BINARY_DIR})
|
||||
@@ -22,7 +22,7 @@ if (CONFIG_BUILD_WITH_TFA)
|
||||
USES_TERMINAL_BUILD True
|
||||
)
|
||||
|
||||
if (CONFIG_TFA_MAKE_BUILD_TYPE_DEBUG)
|
||||
if(CONFIG_TFA_MAKE_BUILD_TYPE_DEBUG)
|
||||
set(TFA_BUILD_DEBUG "1")
|
||||
else()
|
||||
set(TFA_BUILD_DEBUG "0")
|
||||
|
||||
@@ -15,7 +15,7 @@ set(TFM_VALID_PARTITIONS
|
||||
TFM_PARTITION_FIRMWARE_UPDATE
|
||||
)
|
||||
|
||||
if (CONFIG_BUILD_WITH_TFM)
|
||||
if(CONFIG_BUILD_WITH_TFM)
|
||||
# PSA API awareness for the Non-Secure application
|
||||
target_compile_definitions(app PRIVATE "TFM_PSA_API")
|
||||
|
||||
@@ -27,24 +27,24 @@ if (CONFIG_BUILD_WITH_TFM)
|
||||
endif()
|
||||
|
||||
# Treat any warning as error
|
||||
if (CONFIG_COMPILER_WARNINGS_AS_ERRORS)
|
||||
if(CONFIG_COMPILER_WARNINGS_AS_ERRORS)
|
||||
list(APPEND TFM_CMAKE_ARGS -DCONFIG_TFM_WARNINGS_ARE_ERRORS:BOOL=ON)
|
||||
endif()
|
||||
|
||||
if (CONFIG_TFM_SFN)
|
||||
if(CONFIG_TFM_SFN)
|
||||
list(APPEND TFM_CMAKE_ARGS -DCONFIG_TFM_SPM_BACKEND="SFN")
|
||||
else() # CONFIG_TFM_IPC
|
||||
list(APPEND TFM_CMAKE_ARGS -DCONFIG_TFM_SPM_BACKEND="IPC")
|
||||
endif()
|
||||
if (CONFIG_TFM_REGRESSION_S)
|
||||
if(CONFIG_TFM_REGRESSION_S)
|
||||
list(APPEND TFM_CMAKE_ARGS -DTEST_S=ON)
|
||||
list(APPEND TFM_CMAKE_ARGS -DTFM_S_REG_TEST:BOOL=ON)
|
||||
endif()
|
||||
if (CONFIG_TFM_REGRESSION_NS)
|
||||
if(CONFIG_TFM_REGRESSION_NS)
|
||||
list(APPEND TFM_CMAKE_ARGS -DTEST_NS=ON)
|
||||
list(APPEND TFM_CMAKE_ARGS -DTFM_NS_REG_TEST:BOOL=ON)
|
||||
endif()
|
||||
if (CONFIG_TFM_BL2)
|
||||
if(CONFIG_TFM_BL2)
|
||||
list(APPEND TFM_CMAKE_ARGS -DBL2=TRUE)
|
||||
list(APPEND TFM_CMAKE_ARGS -DMCUBOOT_IMAGE_VERSION_S=${CONFIG_TFM_IMAGE_VERSION_S})
|
||||
list(APPEND TFM_CMAKE_ARGS -DMCUBOOT_IMAGE_VERSION_NS=${CONFIG_TFM_IMAGE_VERSION_NS})
|
||||
@@ -53,10 +53,10 @@ if (CONFIG_BUILD_WITH_TFM)
|
||||
# TF-M's config/check_config.cmake requires MCUBOOT_BUILTIN_KEY=OFF for RSA
|
||||
# and MCUBOOT_USE_PSA_CRYPTO for EC-P. The others are dependencies needed
|
||||
# for either the build or the boot to succeed.
|
||||
if (${CONFIG_TFM_MCUBOOT_SIGNATURE_TYPE} MATCHES "^RSA")
|
||||
if(${CONFIG_TFM_MCUBOOT_SIGNATURE_TYPE} MATCHES "^RSA")
|
||||
list(APPEND TFM_CMAKE_ARGS -DMCUBOOT_BUILTIN_KEY=OFF)
|
||||
list(APPEND TFM_CMAKE_ARGS -DMCUBOOT_HW_KEY=ON)
|
||||
elseif (${CONFIG_TFM_MCUBOOT_SIGNATURE_TYPE} MATCHES "^EC-P")
|
||||
elseif(${CONFIG_TFM_MCUBOOT_SIGNATURE_TYPE} MATCHES "^EC-P")
|
||||
list(APPEND TFM_CMAKE_ARGS -DMCUBOOT_USE_PSA_CRYPTO=ON)
|
||||
list(APPEND TFM_CMAKE_ARGS -DMCUBOOT_BUILTIN_KEY=ON)
|
||||
list(APPEND TFM_CMAKE_ARGS -DMCUBOOT_HW_KEY=OFF)
|
||||
@@ -72,93 +72,93 @@ if (CONFIG_BUILD_WITH_TFM)
|
||||
else()
|
||||
list(APPEND TFM_CMAKE_ARGS -DBL2=FALSE)
|
||||
endif()
|
||||
if (CONFIG_TFM_ISOLATION_LEVEL)
|
||||
if(CONFIG_TFM_ISOLATION_LEVEL)
|
||||
list(APPEND TFM_CMAKE_ARGS -DTFM_ISOLATION_LEVEL=${CONFIG_TFM_ISOLATION_LEVEL})
|
||||
endif()
|
||||
if (CONFIG_TFM_ITS_NUM_ASSETS_OVERRIDE)
|
||||
if(CONFIG_TFM_ITS_NUM_ASSETS_OVERRIDE)
|
||||
list(APPEND TFM_CMAKE_ARGS -DITS_NUM_ASSETS=${CONFIG_TFM_ITS_NUM_ASSETS})
|
||||
endif()
|
||||
if (CONFIG_TFM_ITS_MAX_ASSET_SIZE_OVERRIDE)
|
||||
if(CONFIG_TFM_ITS_MAX_ASSET_SIZE_OVERRIDE)
|
||||
list(APPEND TFM_CMAKE_ARGS -DITS_MAX_ASSET_SIZE=${CONFIG_TFM_ITS_MAX_ASSET_SIZE})
|
||||
endif()
|
||||
if (CONFIG_TFM_PROFILE)
|
||||
if(CONFIG_TFM_PROFILE)
|
||||
list(APPEND TFM_CMAKE_ARGS -DTFM_PROFILE=${CONFIG_TFM_PROFILE})
|
||||
endif()
|
||||
if (CONFIG_TFM_CMAKE_BUILD_TYPE_RELEASE)
|
||||
if(CONFIG_TFM_CMAKE_BUILD_TYPE_RELEASE)
|
||||
set(TFM_CMAKE_BUILD_TYPE "Release")
|
||||
elseif (CONFIG_TFM_CMAKE_BUILD_TYPE_MINSIZEREL)
|
||||
elseif(CONFIG_TFM_CMAKE_BUILD_TYPE_MINSIZEREL)
|
||||
set(TFM_CMAKE_BUILD_TYPE "MinSizeRel")
|
||||
elseif (CONFIG_TFM_CMAKE_BUILD_TYPE_DEBUG)
|
||||
elseif(CONFIG_TFM_CMAKE_BUILD_TYPE_DEBUG)
|
||||
set(TFM_CMAKE_BUILD_TYPE "Debug")
|
||||
else ()
|
||||
else()
|
||||
set(TFM_CMAKE_BUILD_TYPE "RelWithDebInfo")
|
||||
endif()
|
||||
if (DEFINED CONFIG_TFM_MCUBOOT_IMAGE_NUMBER)
|
||||
if(DEFINED CONFIG_TFM_MCUBOOT_IMAGE_NUMBER)
|
||||
list(APPEND TFM_CMAKE_ARGS -DMCUBOOT_IMAGE_NUMBER=${CONFIG_TFM_MCUBOOT_IMAGE_NUMBER})
|
||||
endif()
|
||||
|
||||
if (CONFIG_TFM_DUMMY_PROVISIONING)
|
||||
if(CONFIG_TFM_DUMMY_PROVISIONING)
|
||||
list(APPEND TFM_CMAKE_ARGS -DTFM_DUMMY_PROVISIONING=ON)
|
||||
else()
|
||||
list(APPEND TFM_CMAKE_ARGS -DTFM_DUMMY_PROVISIONING=OFF)
|
||||
endif()
|
||||
|
||||
if (CONFIG_TFM_EXCEPTION_INFO_DUMP)
|
||||
if(CONFIG_TFM_EXCEPTION_INFO_DUMP)
|
||||
list(APPEND TFM_CMAKE_ARGS -DTFM_EXCEPTION_INFO_DUMP=ON)
|
||||
else()
|
||||
list(APPEND TFM_CMAKE_ARGS -DTFM_EXCEPTION_INFO_DUMP=OFF)
|
||||
endif()
|
||||
|
||||
if (CONFIG_TFM_BL2)
|
||||
if (CONFIG_TFM_BL2_LOG_LEVEL_DEBUG)
|
||||
if(CONFIG_TFM_BL2)
|
||||
if(CONFIG_TFM_BL2_LOG_LEVEL_DEBUG)
|
||||
set(TFM_BL2_LOG_LEVEL "DEBUG")
|
||||
elseif (CONFIG_TFM_BL2_LOG_LEVEL_INFO)
|
||||
elseif(CONFIG_TFM_BL2_LOG_LEVEL_INFO)
|
||||
set(TFM_BL2_LOG_LEVEL "INFO")
|
||||
elseif (CONFIG_TFM_BL2_LOG_LEVEL_WARNING)
|
||||
elseif(CONFIG_TFM_BL2_LOG_LEVEL_WARNING)
|
||||
set(TFM_BL2_LOG_LEVEL "WARNING")
|
||||
elseif (CONFIG_TFM_BL2_LOG_LEVEL_ERROR)
|
||||
elseif(CONFIG_TFM_BL2_LOG_LEVEL_ERROR)
|
||||
set(TFM_BL2_LOG_LEVEL "ERROR")
|
||||
elseif (CONFIG_TFM_BL2_LOG_LEVEL_OFF OR CONFIG_TFM_LOG_LEVEL_SILENCE)
|
||||
elseif(CONFIG_TFM_BL2_LOG_LEVEL_OFF OR CONFIG_TFM_LOG_LEVEL_SILENCE)
|
||||
set(TFM_BL2_LOG_LEVEL "OFF")
|
||||
endif()
|
||||
|
||||
if (DEFINED TFM_BL2_LOG_LEVEL)
|
||||
if(DEFINED TFM_BL2_LOG_LEVEL)
|
||||
# BL2 uses MCUBOOT_LOG_LEVEL configuration
|
||||
list(APPEND TFM_CMAKE_ARGS -DMCUBOOT_LOG_LEVEL=${TFM_BL2_LOG_LEVEL})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if (CONFIG_TFM_PARTITION_LOG_LEVEL_DEBUG)
|
||||
if(CONFIG_TFM_PARTITION_LOG_LEVEL_DEBUG)
|
||||
set(TFM_PARTITION_LOG_LEVEL "TFM_PARTITION_LOG_LEVEL_DEBUG")
|
||||
elseif (CONFIG_TFM_PARTITION_LOG_LEVEL_INFO)
|
||||
elseif(CONFIG_TFM_PARTITION_LOG_LEVEL_INFO)
|
||||
set(TFM_PARTITION_LOG_LEVEL "TFM_PARTITION_LOG_LEVEL_INFO")
|
||||
elseif (CONFIG_TFM_PARTITION_LOG_LEVEL_ERROR)
|
||||
elseif(CONFIG_TFM_PARTITION_LOG_LEVEL_ERROR)
|
||||
set(TFM_PARTITION_LOG_LEVEL "TFM_PARTITION_LOG_LEVEL_ERROR")
|
||||
elseif (CONFIG_TFM_PARTITION_LOG_LEVEL_SILENCE OR CONFIG_TFM_LOG_LEVEL_SILENCE)
|
||||
elseif(CONFIG_TFM_PARTITION_LOG_LEVEL_SILENCE OR CONFIG_TFM_LOG_LEVEL_SILENCE)
|
||||
set(TFM_PARTITION_LOG_LEVEL "TFM_PARTITION_LOG_LEVEL_SILENCE")
|
||||
endif()
|
||||
|
||||
if (DEFINED TFM_PARTITION_LOG_LEVEL)
|
||||
if(DEFINED TFM_PARTITION_LOG_LEVEL)
|
||||
list(APPEND TFM_CMAKE_ARGS -DTFM_PARTITION_LOG_LEVEL=${TFM_PARTITION_LOG_LEVEL})
|
||||
endif()
|
||||
|
||||
if (CONFIG_TFM_SPM_LOG_LEVEL_DEBUG)
|
||||
if(CONFIG_TFM_SPM_LOG_LEVEL_DEBUG)
|
||||
set(TFM_SPM_LOG_LEVEL "TFM_SPM_LOG_LEVEL_DEBUG")
|
||||
elseif (CONFIG_TFM_SPM_LOG_LEVEL_INFO)
|
||||
elseif(CONFIG_TFM_SPM_LOG_LEVEL_INFO)
|
||||
set(TFM_SPM_LOG_LEVEL "TFM_SPM_LOG_LEVEL_INFO")
|
||||
elseif (CONFIG_TFM_SPM_LOG_LEVEL_ERROR)
|
||||
elseif(CONFIG_TFM_SPM_LOG_LEVEL_ERROR)
|
||||
set(TFM_SPM_LOG_LEVEL "TFM_SPM_LOG_LEVEL_ERROR")
|
||||
elseif (CONFIG_TFM_SPM_LOG_LEVEL_SILENCE OR CONFIG_TFM_LOG_LEVEL_SILENCE)
|
||||
elseif(CONFIG_TFM_SPM_LOG_LEVEL_SILENCE OR CONFIG_TFM_LOG_LEVEL_SILENCE)
|
||||
set(TFM_SPM_LOG_LEVEL "TFM_SPM_LOG_LEVEL_SILENCE")
|
||||
endif()
|
||||
|
||||
if (DEFINED TFM_SPM_LOG_LEVEL)
|
||||
if(DEFINED TFM_SPM_LOG_LEVEL)
|
||||
list(APPEND TFM_CMAKE_ARGS -DTFM_SPM_LOG_LEVEL=${TFM_SPM_LOG_LEVEL})
|
||||
endif()
|
||||
|
||||
# Enable TFM partitions as specified in Kconfig
|
||||
foreach(partition ${TFM_VALID_PARTITIONS})
|
||||
if (CONFIG_${partition})
|
||||
if(CONFIG_${partition})
|
||||
# list(APPEND TFM_ENABLED_PARTITIONS_ARG ${partition})
|
||||
set(val "ON")
|
||||
else()
|
||||
@@ -235,7 +235,7 @@ if (CONFIG_BUILD_WITH_TFM)
|
||||
message(FATAL_ERROR "Unsupported ZEPHYR_TOOLCHAIN_VARIANT: ${ZEPHYR_TOOLCHAIN_VARIANT}")
|
||||
endif()
|
||||
|
||||
if (CONFIG_TFM_PARTITION_INITIAL_ATTESTATION AND CONFIG_TFM_QCBOR_PATH STREQUAL "")
|
||||
if(CONFIG_TFM_PARTITION_INITIAL_ATTESTATION AND CONFIG_TFM_QCBOR_PATH STREQUAL "")
|
||||
# TODO: Remove this when QCBOR licensing issues w/t_cose have been resolved,
|
||||
# or only allow it when 'QCBOR_PATH' is set to a local path where QCBOR has
|
||||
# been manually downloaded by the user before starting the build.
|
||||
@@ -392,7 +392,7 @@ if (CONFIG_BUILD_WITH_TFM)
|
||||
set_property(SOURCE interface/interface.c APPEND PROPERTY OBJECT_DEPENDS ${TFM_S_HEX_FILE})
|
||||
|
||||
# Non-Secure interface to request system reboot
|
||||
if (CONFIG_TFM_PARTITION_PLATFORM AND NOT CONFIG_TFM_PARTITION_PLATFORM_CUSTOM_REBOOT)
|
||||
if(CONFIG_TFM_PARTITION_PLATFORM AND NOT CONFIG_TFM_PARTITION_PLATFORM_CUSTOM_REBOOT)
|
||||
zephyr_library_sources(src/reboot.c)
|
||||
endif()
|
||||
|
||||
@@ -426,7 +426,7 @@ if (CONFIG_BUILD_WITH_TFM)
|
||||
# To ensure that generated include files are created before they are used.
|
||||
add_dependencies(zephyr_interface tfm)
|
||||
|
||||
if (CONFIG_TFM_BL2)
|
||||
if(CONFIG_TFM_BL2)
|
||||
set(PREPROCESSED_FILE_S "${TFM_BINARY_DIR}/bl2/ext/mcuboot/CMakeFiles/signing_layout_s.dir/signing_layout_s.o")
|
||||
set(PREPROCESSED_FILE_S_NS "${TFM_BINARY_DIR}/bl2/ext/mcuboot/CMakeFiles/signing_layout_s.dir/signing_layout_s_ns.o")
|
||||
set(PREPROCESSED_FILE_NS "${TFM_BINARY_DIR}/bl2/ext/mcuboot/CMakeFiles/signing_layout_ns.dir/signing_layout_ns.o")
|
||||
@@ -574,7 +574,7 @@ if (CONFIG_BUILD_WITH_TFM)
|
||||
set(NS_SIGNED_BIN_FILE ${CMAKE_BINARY_DIR}/zephyr/zephyr_ns_signed.bin)
|
||||
set(S_SIGNED_BIN_FILE ${CMAKE_BINARY_DIR}/zephyr/tfm_s_signed.bin)
|
||||
|
||||
if (CONFIG_TFM_USE_NS_APP)
|
||||
if(CONFIG_TFM_USE_NS_APP)
|
||||
# Use the TF-M NS binary as the Non-Secure application firmware image
|
||||
set(NS_HEX_APP_FILE $<TARGET_PROPERTY:tfm,TFM_NS_HEX_FILE>)
|
||||
set(NS_BIN_APP_FILE $<TARGET_PROPERTY:tfm,TFM_NS_BIN_FILE>)
|
||||
@@ -584,7 +584,7 @@ if (CONFIG_BUILD_WITH_TFM)
|
||||
set(NS_BIN_APP_FILE ${CMAKE_BINARY_DIR}/zephyr/${KERNEL_BIN_NAME})
|
||||
endif()
|
||||
|
||||
if (NOT CONFIG_TFM_BL2)
|
||||
if(NOT CONFIG_TFM_BL2)
|
||||
# Merge tfm_s and zephyr (NS) image to a single binary.
|
||||
set_property(GLOBAL APPEND PROPERTY extra_post_build_commands
|
||||
COMMAND ${PYTHON_EXECUTABLE} ${ZEPHYR_BASE}/scripts/build/mergehex.py
|
||||
@@ -645,24 +645,24 @@ if (CONFIG_BUILD_WITH_TFM)
|
||||
)
|
||||
|
||||
else()
|
||||
if (CONFIG_TFM_USE_NS_APP)
|
||||
if(CONFIG_TFM_USE_NS_APP)
|
||||
tfm_sign(sign_cmd_ns_hex SUFFIX "NS"
|
||||
HEADER TRAILER CONFIRM MAX_SECTORS ${S_NS_MAX_SECTORS}
|
||||
INPUT_FILE ${NS_HEX_APP_FILE}
|
||||
OUTPUT_FILE ${NS_SIGNED_HEX_FILE})
|
||||
OUTPUT_FILE ${NS_SIGNED_HEX_FILE})
|
||||
tfm_sign(sign_cmd_ns_bin SUFFIX "NS"
|
||||
HEADER TRAILER MAX_SECTORS ${S_NS_MAX_SECTORS}
|
||||
INPUT_FILE ${NS_BIN_APP_FILE}
|
||||
OUTPUT_FILE ${NS_SIGNED_BIN_FILE})
|
||||
OUTPUT_FILE ${NS_SIGNED_BIN_FILE})
|
||||
else()
|
||||
tfm_sign(sign_cmd_ns_hex SUFFIX "NS"
|
||||
TRAILER CONFIRM MAX_SECTORS ${S_NS_MAX_SECTORS}
|
||||
INPUT_FILE ${NS_HEX_APP_FILE}
|
||||
OUTPUT_FILE ${NS_SIGNED_HEX_FILE})
|
||||
OUTPUT_FILE ${NS_SIGNED_HEX_FILE})
|
||||
tfm_sign(sign_cmd_ns_bin SUFFIX "NS"
|
||||
MAX_SECTORS ${S_NS_MAX_SECTORS}
|
||||
INPUT_FILE ${NS_BIN_APP_FILE}
|
||||
OUTPUT_FILE ${NS_SIGNED_BIN_FILE})
|
||||
OUTPUT_FILE ${NS_SIGNED_BIN_FILE})
|
||||
endif()
|
||||
|
||||
tfm_sign(sign_cmd_s_hex SUFFIX "S"
|
||||
|
||||
@@ -50,7 +50,7 @@ target_sources(tfm_spm
|
||||
src/tfm_hal_platform.c
|
||||
)
|
||||
|
||||
if (TFM_PARTITION_PLATFORM)
|
||||
if(TFM_PARTITION_PLATFORM)
|
||||
install(FILES include/tfm_ioctl_api.h
|
||||
include/device_cfg.h
|
||||
include/RTE_Device.h
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Copyright (c) 2022 Nordic Semiconductor ASA
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if (CONFIG_UOSCORE OR CONFIG_UEDHOC)
|
||||
if(CONFIG_UOSCORE OR CONFIG_UEDHOC)
|
||||
|
||||
set(UOSCORE_UEDHOC_SRC_DIR ${ZEPHYR_CURRENT_MODULE_DIR}/src)
|
||||
set(UOSCORE_UEDHOC_INCLUDE_DIR ${ZEPHYR_CURRENT_MODULE_DIR}/inc)
|
||||
@@ -14,7 +14,7 @@ if (CONFIG_UOSCORE OR CONFIG_UEDHOC)
|
||||
|
||||
zephyr_library_compile_definitions(MBEDTLS)
|
||||
|
||||
if (CONFIG_UOSCORE_DEBUG OR CONFIG_UEDHOC_DEBUG)
|
||||
if(CONFIG_UOSCORE_DEBUG OR CONFIG_UEDHOC_DEBUG)
|
||||
zephyr_library_compile_definitions(DEBUG_PRINT)
|
||||
endif()
|
||||
|
||||
@@ -27,7 +27,7 @@ if (CONFIG_UOSCORE OR CONFIG_UEDHOC)
|
||||
|
||||
zephyr_library_link_libraries(mbedTLS)
|
||||
|
||||
if (CONFIG_BUILD_WITH_TFM)
|
||||
if(CONFIG_BUILD_WITH_TFM)
|
||||
zephyr_library_include_directories(
|
||||
$<TARGET_PROPERTY:tfm,TFM_BINARY_DIR>/api_ns/interface/include
|
||||
)
|
||||
@@ -35,13 +35,13 @@ if (CONFIG_UOSCORE OR CONFIG_UEDHOC)
|
||||
|
||||
# UOSCORE
|
||||
|
||||
if (CONFIG_UOSCORE)
|
||||
if(CONFIG_UOSCORE)
|
||||
|
||||
zephyr_library_named(uoscore)
|
||||
|
||||
zephyr_library_compile_definitions(MBEDTLS)
|
||||
|
||||
if (CONFIG_UOSCORE_DEBUG)
|
||||
if(CONFIG_UOSCORE_DEBUG)
|
||||
zephyr_library_compile_definitions(DEBUG_PRINT)
|
||||
endif()
|
||||
|
||||
@@ -69,13 +69,13 @@ if (CONFIG_UOSCORE OR CONFIG_UEDHOC)
|
||||
|
||||
# UEDHOC
|
||||
|
||||
if (CONFIG_UEDHOC)
|
||||
if(CONFIG_UEDHOC)
|
||||
|
||||
zephyr_library_named(uedhoc)
|
||||
|
||||
zephyr_library_compile_definitions(MBEDTLS)
|
||||
|
||||
if (CONFIG_UEDHOC_DEBUG)
|
||||
if(CONFIG_UEDHOC_DEBUG)
|
||||
zephyr_library_compile_definitions(DEBUG_PRINT)
|
||||
endif()
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ target_sources(app PRIVATE
|
||||
|
||||
target_sources_ifdef(CONFIG_ENABLE_LC3 app PRIVATE src/lc3.c)
|
||||
|
||||
if (CONFIG_USE_USB_AUDIO_OUTPUT)
|
||||
if(CONFIG_USE_USB_AUDIO_OUTPUT)
|
||||
include(${ZEPHYR_BASE}/samples/subsys/usb/common/common.cmake)
|
||||
target_sources(app PRIVATE src/usb.c)
|
||||
endif()
|
||||
|
||||
@@ -8,6 +8,6 @@ target_sources(app PRIVATE
|
||||
src/main.c
|
||||
)
|
||||
|
||||
if (CONFIG_USE_USB_AUDIO_INPUT)
|
||||
if(CONFIG_USE_USB_AUDIO_INPUT)
|
||||
include(${ZEPHYR_BASE}/samples/subsys/usb/common/common.cmake)
|
||||
endif()
|
||||
|
||||
@@ -14,7 +14,7 @@ else()
|
||||
target_sources(app PRIVATE src/board.c)
|
||||
endif()
|
||||
|
||||
if (CONFIG_BUILD_WITH_TFM)
|
||||
if(CONFIG_BUILD_WITH_TFM)
|
||||
target_include_directories(app PRIVATE
|
||||
$<TARGET_PROPERTY:tfm,TFM_BINARY_DIR>/api_ns/interface/include
|
||||
)
|
||||
|
||||
@@ -13,7 +13,7 @@ if(NODE_ADDR)
|
||||
zephyr_compile_definitions(NODE_ADDR=${NODE_ADDR})
|
||||
endif()
|
||||
|
||||
if (CONFIG_BUILD_WITH_TFM)
|
||||
if(CONFIG_BUILD_WITH_TFM)
|
||||
target_include_directories(app PRIVATE
|
||||
$<TARGET_PROPERTY:tfm,TFM_BINARY_DIR>/api_ns/interface/include
|
||||
)
|
||||
|
||||
@@ -8,7 +8,7 @@ project(mesh_provisioner)
|
||||
|
||||
target_sources(app PRIVATE src/main.c)
|
||||
|
||||
if (CONFIG_BUILD_WITH_TFM)
|
||||
if(CONFIG_BUILD_WITH_TFM)
|
||||
target_include_directories(app PRIVATE
|
||||
$<TARGET_PROPERTY:tfm,TFM_BINARY_DIR>/api_ns/interface/include
|
||||
)
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user