style: modules: apply coding style on CMakeLists.txt files

Apply the CMake style guidelines to CMakeList.txt files in modules/.

Signed-off-by: Josuah Demangeon <me@josuah.net>
This commit is contained in:
Josuah Demangeon
2025-11-15 16:42:33 +00:00
committed by Anas Nashif
parent 23662f1e5d
commit f1101b7c7a
3 changed files with 23 additions and 23 deletions

View File

@@ -18,6 +18,6 @@ zephyr_library_sources(${bless_dir}/cy_ble_hal_int.c)
zephyr_library_sources(${bless_dir}/cy_ble_hal_pvt.c)
zephyr_link_libraries(
${bless_blobs_dir}/COMPONENT_BLESS_CONTROLLER/cy_ble_stack_controller.a
${bless_blobs_dir}/COMPONENT_BLESS_CONTROLLER/cy_ble_stack_manager.a
${bless_blobs_dir}/COMPONENT_BLESS_CONTROLLER/cy_ble_stack_controller.a
${bless_blobs_dir}/COMPONENT_BLESS_CONTROLLER/cy_ble_stack_manager.a
)

View File

@@ -182,12 +182,12 @@ if(DEFINED uicr_path)
endif()
if(CONFIG_SOC_NRF54L_CPUAPP_COMMON)
# Ideally, hfpll should taken as a phandle from clocks property from cpu but it
# seems that there is no such option in DT cmake functions. Assuming that nrf54l
# is using hfpll as CPU clock source (true for all existing devices).
dt_prop(clock_frequency PATH "/clocks/hfpll" PROPERTY "clock-frequency")
math(EXPR clock_frequency_mhz "${clock_frequency} / 1000000")
zephyr_compile_definitions("NRF_CONFIG_CPU_FREQ_MHZ=${clock_frequency_mhz}")
# Ideally, hfpll should taken as a phandle from clocks property from cpu but it
# seems that there is no such option in DT cmake functions. Assuming that nrf54l
# is using hfpll as CPU clock source (true for all existing devices).
dt_prop(clock_frequency PATH "/clocks/hfpll" PROPERTY "clock-frequency")
math(EXPR clock_frequency_mhz "${clock_frequency} / 1000000")
zephyr_compile_definitions("NRF_CONFIG_CPU_FREQ_MHZ=${clock_frequency_mhz}")
endif()
zephyr_compile_definitions_ifdef(CONFIG_NRF_SKIP_CLOCK_CONFIG NRF_SKIP_CLOCK_CONFIGURATION)

View File

@@ -1,7 +1,7 @@
if(CONFIG_LIBLC3)
zephyr_library_named(liblc3)
zephyr_library_compile_options(
-O3 -std=c11 -ffast-math -Wno-array-bounds -Wall -Wextra -Wdouble-promotion -Wvla -pedantic
-O3 -std=c11 -ffast-math -Wno-array-bounds -Wall -Wextra -Wdouble-promotion -Wvla -pedantic
)
# LC3plus and LC3plusHR support is enabled by default in liblc3.
@@ -19,25 +19,25 @@ zephyr_library_compile_options(-DLC3_PLUS_HR=0)
endif()
zephyr_include_directories(
${ZEPHYR_LIBLC3_MODULE_DIR}/include
${ZEPHYR_LIBLC3_MODULE_DIR}/include
)
zephyr_library_include_directories(
${ZEPHYR_LIBLC3_MODULE_DIR}/src
${ZEPHYR_LIBLC3_MODULE_DIR}/src
)
zephyr_library_sources(
${ZEPHYR_LIBLC3_MODULE_DIR}/src/attdet.c
${ZEPHYR_LIBLC3_MODULE_DIR}/src/bits.c
${ZEPHYR_LIBLC3_MODULE_DIR}/src/bwdet.c
${ZEPHYR_LIBLC3_MODULE_DIR}/src/energy.c
${ZEPHYR_LIBLC3_MODULE_DIR}/src/lc3.c
${ZEPHYR_LIBLC3_MODULE_DIR}/src/ltpf.c
${ZEPHYR_LIBLC3_MODULE_DIR}/src/mdct.c
${ZEPHYR_LIBLC3_MODULE_DIR}/src/plc.c
${ZEPHYR_LIBLC3_MODULE_DIR}/src/sns.c
${ZEPHYR_LIBLC3_MODULE_DIR}/src/spec.c
${ZEPHYR_LIBLC3_MODULE_DIR}/src/tables.c
${ZEPHYR_LIBLC3_MODULE_DIR}/src/tns.c
${ZEPHYR_LIBLC3_MODULE_DIR}/src/attdet.c
${ZEPHYR_LIBLC3_MODULE_DIR}/src/bits.c
${ZEPHYR_LIBLC3_MODULE_DIR}/src/bwdet.c
${ZEPHYR_LIBLC3_MODULE_DIR}/src/energy.c
${ZEPHYR_LIBLC3_MODULE_DIR}/src/lc3.c
${ZEPHYR_LIBLC3_MODULE_DIR}/src/ltpf.c
${ZEPHYR_LIBLC3_MODULE_DIR}/src/mdct.c
${ZEPHYR_LIBLC3_MODULE_DIR}/src/plc.c
${ZEPHYR_LIBLC3_MODULE_DIR}/src/sns.c
${ZEPHYR_LIBLC3_MODULE_DIR}/src/spec.c
${ZEPHYR_LIBLC3_MODULE_DIR}/src/tables.c
${ZEPHYR_LIBLC3_MODULE_DIR}/src/tns.c
)
endif()