Skip to content

Commit 84f4ac1

Browse files
committed
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>
1 parent 79b5790 commit 84f4ac1

File tree

3 files changed

+23
-23
lines changed

3 files changed

+23
-23
lines changed

modules/hal_infineon/bless/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ zephyr_library_sources(${bless_dir}/cy_ble_hal_int.c)
1818
zephyr_library_sources(${bless_dir}/cy_ble_hal_pvt.c)
1919

2020
zephyr_link_libraries(
21-
${bless_blobs_dir}/COMPONENT_BLESS_CONTROLLER/cy_ble_stack_controller.a
22-
${bless_blobs_dir}/COMPONENT_BLESS_CONTROLLER/cy_ble_stack_manager.a
21+
${bless_blobs_dir}/COMPONENT_BLESS_CONTROLLER/cy_ble_stack_controller.a
22+
${bless_blobs_dir}/COMPONENT_BLESS_CONTROLLER/cy_ble_stack_manager.a
2323
)

modules/hal_nordic/nrfx/CMakeLists.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -182,12 +182,12 @@ if(DEFINED uicr_path)
182182
endif()
183183

184184
if(CONFIG_SOC_NRF54L_CPUAPP_COMMON)
185-
# Ideally, hfpll should taken as a phandle from clocks property from cpu but it
186-
# seems that there is no such option in DT cmake functions. Assuming that nrf54l
187-
# is using hfpll as CPU clock source (true for all existing devices).
188-
dt_prop(clock_frequency PATH "/clocks/hfpll" PROPERTY "clock-frequency")
189-
math(EXPR clock_frequency_mhz "${clock_frequency} / 1000000")
190-
zephyr_compile_definitions("NRF_CONFIG_CPU_FREQ_MHZ=${clock_frequency_mhz}")
185+
# Ideally, hfpll should taken as a phandle from clocks property from cpu but it
186+
# seems that there is no such option in DT cmake functions. Assuming that nrf54l
187+
# is using hfpll as CPU clock source (true for all existing devices).
188+
dt_prop(clock_frequency PATH "/clocks/hfpll" PROPERTY "clock-frequency")
189+
math(EXPR clock_frequency_mhz "${clock_frequency} / 1000000")
190+
zephyr_compile_definitions("NRF_CONFIG_CPU_FREQ_MHZ=${clock_frequency_mhz}")
191191
endif()
192192

193193
zephyr_compile_definitions_ifdef(CONFIG_NRF_SKIP_CLOCK_CONFIG NRF_SKIP_CLOCK_CONFIGURATION)

modules/liblc3/CMakeLists.txt

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
if(CONFIG_LIBLC3)
22
zephyr_library_named(liblc3)
33
zephyr_library_compile_options(
4-
-O3 -std=c11 -ffast-math -Wno-array-bounds -Wall -Wextra -Wdouble-promotion -Wvla -pedantic
4+
-O3 -std=c11 -ffast-math -Wno-array-bounds -Wall -Wextra -Wdouble-promotion -Wvla -pedantic
55
)
66

77
# LC3plus and LC3plusHR support is enabled by default in liblc3.
@@ -19,25 +19,25 @@ zephyr_library_compile_options(-DLC3_PLUS_HR=0)
1919
endif()
2020

2121
zephyr_include_directories(
22-
${ZEPHYR_LIBLC3_MODULE_DIR}/include
22+
${ZEPHYR_LIBLC3_MODULE_DIR}/include
2323
)
2424

2525
zephyr_library_include_directories(
26-
${ZEPHYR_LIBLC3_MODULE_DIR}/src
26+
${ZEPHYR_LIBLC3_MODULE_DIR}/src
2727
)
2828

2929
zephyr_library_sources(
30-
${ZEPHYR_LIBLC3_MODULE_DIR}/src/attdet.c
31-
${ZEPHYR_LIBLC3_MODULE_DIR}/src/bits.c
32-
${ZEPHYR_LIBLC3_MODULE_DIR}/src/bwdet.c
33-
${ZEPHYR_LIBLC3_MODULE_DIR}/src/energy.c
34-
${ZEPHYR_LIBLC3_MODULE_DIR}/src/lc3.c
35-
${ZEPHYR_LIBLC3_MODULE_DIR}/src/ltpf.c
36-
${ZEPHYR_LIBLC3_MODULE_DIR}/src/mdct.c
37-
${ZEPHYR_LIBLC3_MODULE_DIR}/src/plc.c
38-
${ZEPHYR_LIBLC3_MODULE_DIR}/src/sns.c
39-
${ZEPHYR_LIBLC3_MODULE_DIR}/src/spec.c
40-
${ZEPHYR_LIBLC3_MODULE_DIR}/src/tables.c
41-
${ZEPHYR_LIBLC3_MODULE_DIR}/src/tns.c
30+
${ZEPHYR_LIBLC3_MODULE_DIR}/src/attdet.c
31+
${ZEPHYR_LIBLC3_MODULE_DIR}/src/bits.c
32+
${ZEPHYR_LIBLC3_MODULE_DIR}/src/bwdet.c
33+
${ZEPHYR_LIBLC3_MODULE_DIR}/src/energy.c
34+
${ZEPHYR_LIBLC3_MODULE_DIR}/src/lc3.c
35+
${ZEPHYR_LIBLC3_MODULE_DIR}/src/ltpf.c
36+
${ZEPHYR_LIBLC3_MODULE_DIR}/src/mdct.c
37+
${ZEPHYR_LIBLC3_MODULE_DIR}/src/plc.c
38+
${ZEPHYR_LIBLC3_MODULE_DIR}/src/sns.c
39+
${ZEPHYR_LIBLC3_MODULE_DIR}/src/spec.c
40+
${ZEPHYR_LIBLC3_MODULE_DIR}/src/tables.c
41+
${ZEPHYR_LIBLC3_MODULE_DIR}/src/tns.c
4242
)
4343
endif()

0 commit comments

Comments
 (0)