Skip to content

Add option to disable CM0P_SLEEP component for Cypress targets #15195

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions targets/TARGET_Cypress/TARGET_PSOC6/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,16 @@ target_sources(mbed-cm0p-secure
psoc6cm0p/COMPONENT_CM0P_SECURE/psoc6_03_cm0p_secure.c
)

add_library(mbed-cm0p-sleep INTERFACE)
target_sources(mbed-cm0p-sleep
INTERFACE
psoc6cm0p/COMPONENT_CM0P_SLEEP/psoc6_01_cm0p_sleep.c
psoc6cm0p/COMPONENT_CM0P_SLEEP/psoc6_02_cm0p_sleep.c
psoc6cm0p/COMPONENT_CM0P_SLEEP/psoc6_03_cm0p_sleep.c
psoc6cm0p/COMPONENT_CM0P_SLEEP/psoc6_04_cm0p_sleep.c
)
if("CM0P_SLEEP" IN_LIST MBED_TARGET_LABELS)
add_library(mbed-cm0p-sleep INTERFACE)
target_sources(mbed-cm0p-sleep
INTERFACE
psoc6cm0p/COMPONENT_CM0P_SLEEP/psoc6_01_cm0p_sleep.c
psoc6cm0p/COMPONENT_CM0P_SLEEP/psoc6_02_cm0p_sleep.c
psoc6cm0p/COMPONENT_CM0P_SLEEP/psoc6_03_cm0p_sleep.c
psoc6cm0p/COMPONENT_CM0P_SLEEP/psoc6_04_cm0p_sleep.c
)
endif()

add_library(mbed-udb-sdio-p12 INTERFACE)
target_include_directories(mbed-udb-sdio-p12
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,16 @@ target_link_libraries(mbed-cy8ckit-062s2-43012
mbed-cat1a
mbed-cy8ckit-062s2-43012-cm4
mbed-cy8ckit-062s2-43012-bsp-design-modus
mbed-cm0p-sleep
mbed-psoc6
)

if("CM0P_SLEEP" IN_LIST MBED_TARGET_LABELS)
target_link_libraries(mbed-cy8ckit-062s2-43012
INTERFACE
mbed-cm0p-sleep
)
endif()

if("WHD" IN_LIST MBED_TARGET_LABELS)
target_link_libraries(mbed-cy8ckit-062s2-43012
INTERFACE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,16 @@ target_link_libraries(mbed-cy8ckit-062-ble
mbed-cat1a
mbed-cy8ckit-062-ble-cm4
mbed-cy8ckit-062-ble-bsp-design-modus
mbed-cm0p-sleep
mbed-psoc6
)

if("CM0P_SLEEP" IN_LIST MBED_TARGET_LABELS)
target_link_libraries(mbed-cy8ckit-062-ble
INTERFACE
mbed-cm0p-sleep
)
endif()

target_compile_definitions(mbed-cy8ckit-062-ble
INTERFACE
"CY8C6347BZI_BLD53"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,17 @@ target_link_libraries(mbed-cy8ckit-062-wifi-bt
mbed-cat1a
mbed-cy8ckit-062-wifi-bt-cm4
mbed-cy8ckit-062-wifi-bt-bsp-design-modus
mbed-cm0p-sleep
mbed-psoc6
mbed-udb-sdio-p12
)

if("CM0P_SLEEP" IN_LIST MBED_TARGET_LABELS)
target_link_libraries(mbed-cy8ckit-062-wifi-bt
INTERFACE
mbed-cm0p-sleep
)
endif()

if("WHD" IN_LIST MBED_TARGET_LABELS)
target_link_libraries(mbed-cy8ckit-062-wifi-bt
INTERFACE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,17 @@ target_link_libraries(mbed-cy8cproto-062s3-4343w
mbed-cat1a
mbed-cy8cproto-062s3-4343w-cm4
mbed-cy8cproto-062s3-4343w-bsp-design-modus
mbed-cm0p-sleep
mbed-psoc6
mbed-cy-external-wifi-fw
)

if("CM0P_SLEEP" IN_LIST MBED_TARGET_LABELS)
target_link_libraries(mbed-cy8cproto-062s3-4343w
INTERFACE
mbed-cm0p-sleep
)
endif()

if("WHD" IN_LIST MBED_TARGET_LABELS)
target_link_libraries(mbed-cy8cproto-062s3-4343w
INTERFACE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,16 @@ target_link_libraries(mbed-cy8cproto-062-4343w
mbed-cat1a
mbed-cy8cproto-062-4343w-cm4
mbed-cy8cproto-062-4343w-bsp-design-modus
mbed-cm0p-sleep
mbed-psoc6
)

if("CM0P_SLEEP" IN_LIST MBED_TARGET_LABELS)
target_link_libraries(mbed-cy8cproto-062-4343w
INTERFACE
mbed-cm0p-sleep
)
endif()

if("WHD" IN_LIST MBED_TARGET_LABELS)
target_link_libraries(mbed-cy8cproto-062-4343w
INTERFACE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,17 @@ target_link_libraries(mbed-cyw9p62s1-43012evb-01
mbed-cat1a
mbed-cyw9p62s1-43012evb-01-cm4
mbed-cyw9p62s1-43012evb-01-bsp-design-modus
mbed-cm0p-sleep
mbed-psoc6
mbed-udb-sdio-p12
)

if("CM0P_SLEEP" IN_LIST MBED_TARGET_LABELS)
target_link_libraries(mbed-cyw9p62s1-43012evb-01
INTERFACE
mbed-cm0p-sleep
)
endif()

if("WHD" IN_LIST MBED_TARGET_LABELS)
target_link_libraries(mbed-cyw9p62s1-43012evb-01
INTERFACE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,17 @@ target_link_libraries(mbed-cyw9p62s1-43438evb-01
mbed-cat1a
mbed-cyw9p62s1-43438evb-01-cm4
mbed-cyw9p62s1-43438evb-01-bsp-design-modus
mbed-cm0p-sleep
mbed-psoc6
mbed-udb-sdio-p2
)

if("CM0P_SLEEP" IN_LIST MBED_TARGET_LABELS)
target_link_libraries(mbed-cyw9p62s1-43438evb-01
INTERFACE
mbed-cm0p-sleep
)
endif()

if("WHD" IN_LIST MBED_TARGET_LABELS)
target_link_libraries(mbed-cyw9p62s1-43438evb-01
INTERFACE
Expand Down