Merge pull request #15195 from ATmobica/cypress_cm0p_sleep_disable

Add option to disable CM0P_SLEEP component for Cypress targets
pull/15200/head
Martin Kojtal 2021-12-21 16:40:23 +00:00 committed by GitHub
commit 149c5b12fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 59 additions and 15 deletions

View File

@ -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

View File

@ -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

View File

@ -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"

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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