Skip to content

Commit

Permalink
pico-sdk: Cleanup CMakeLists.txt
Browse files Browse the repository at this point in the history
Reorder items to make the file easier to read.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
  • Loading branch information
soburi committed Jan 25, 2025
1 parent b63d62d commit f06cc78
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions modules/hal_rpi_pico/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,23 +52,9 @@ if(CONFIG_HAS_RPI_PICO)
zephyr_compile_definitions(PICO_RP2350)
endif()

# Pico sources and headers necessary for every build.
# These contain definitions and implementation used mostly for
# initializing the SoC, and therefore are always required.

zephyr_library_sources(
${common_dir}/hardware_claim/claim.c
${rp2_common_dir}/hardware_clocks/clocks.c
${rp2_common_dir}/hardware_pll/pll.c
${rp2_common_dir}/hardware_xosc/xosc.c
${rp2_common_dir}/hardware_sync_spin_lock/sync_spin_lock.c
${rp2_common_dir}/hardware_ticks/ticks.c
${rp2_common_dir}/hardware_xip_cache/xip_cache.c
${rp2_common_dir}/pico_bootrom/bootrom.c
${rp2xxx_dir}/pico_platform/platform.c
)

zephyr_include_directories(
${common_dir}/boot_picoboot_headers/include
${common_dir}/boot_picobin_headers/include
${common_dir}/pico_base_headers/include
${common_dir}/hardware_claim/include
${rp2_common_dir}/boot_bootrom_headers/include
Expand Down Expand Up @@ -99,14 +85,28 @@ if(CONFIG_HAS_RPI_PICO)
${rp2_common_dir}/pico_platform_panic/include
${rp2_common_dir}/pico_runtime/include
${rp2_common_dir}/pico_runtime_init/include
${common_dir}/boot_picoboot_headers/include
${common_dir}/boot_picobin_headers/include
${rp2xxx_dir}/hardware_regs/include
${rp2xxx_dir}/hardware_structs/include
${rp2xxx_dir}/pico_platform/include
${CMAKE_CURRENT_LIST_DIR}
)

# Pico sources and headers necessary for every build.
# These contain definitions and implementation used mostly for
# initializing the SoC, and therefore are always required.

zephyr_library_sources(
${common_dir}/hardware_claim/claim.c
${rp2_common_dir}/hardware_clocks/clocks.c
${rp2_common_dir}/hardware_pll/pll.c
${rp2_common_dir}/hardware_xosc/xosc.c
${rp2_common_dir}/hardware_sync_spin_lock/sync_spin_lock.c
${rp2_common_dir}/hardware_ticks/ticks.c
${rp2_common_dir}/hardware_xip_cache/xip_cache.c
${rp2_common_dir}/pico_bootrom/bootrom.c
${rp2xxx_dir}/pico_platform/platform.c
)

zephyr_library_sources_ifdef(CONFIG_PICOSDK_USE_GPIO
${rp2_common_dir}/hardware_gpio/gpio.c)

Expand Down

0 comments on commit f06cc78

Please sign in to comment.