Add <"CM0P_SLEEP" IN_LIST MBED_TARGET_LABELS> condition to Cypress boards and common PSOC6 cmake files

pull/15195/head
ATmobica 2021-12-15 21:37:14 +01:00
parent 7a6262c3bc
commit 9e1444f88d
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 psoc6cm0p/COMPONENT_CM0P_SECURE/psoc6_03_cm0p_secure.c
) )
add_library(mbed-cm0p-sleep INTERFACE) if("CM0P_SLEEP" IN_LIST MBED_TARGET_LABELS)
target_sources(mbed-cm0p-sleep add_library(mbed-cm0p-sleep INTERFACE)
INTERFACE target_sources(mbed-cm0p-sleep
psoc6cm0p/COMPONENT_CM0P_SLEEP/psoc6_01_cm0p_sleep.c INTERFACE
psoc6cm0p/COMPONENT_CM0P_SLEEP/psoc6_02_cm0p_sleep.c psoc6cm0p/COMPONENT_CM0P_SLEEP/psoc6_01_cm0p_sleep.c
psoc6cm0p/COMPONENT_CM0P_SLEEP/psoc6_03_cm0p_sleep.c psoc6cm0p/COMPONENT_CM0P_SLEEP/psoc6_02_cm0p_sleep.c
psoc6cm0p/COMPONENT_CM0P_SLEEP/psoc6_04_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) add_library(mbed-udb-sdio-p12 INTERFACE)
target_include_directories(mbed-udb-sdio-p12 target_include_directories(mbed-udb-sdio-p12

View File

@ -63,10 +63,16 @@ target_link_libraries(mbed-cy8ckit-062s2-43012
mbed-cat1a mbed-cat1a
mbed-cy8ckit-062s2-43012-cm4 mbed-cy8ckit-062s2-43012-cm4
mbed-cy8ckit-062s2-43012-bsp-design-modus mbed-cy8ckit-062s2-43012-bsp-design-modus
mbed-cm0p-sleep
mbed-psoc6 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) if("WHD" IN_LIST MBED_TARGET_LABELS)
target_link_libraries(mbed-cy8ckit-062s2-43012 target_link_libraries(mbed-cy8ckit-062s2-43012
INTERFACE INTERFACE

View File

@ -63,10 +63,16 @@ target_link_libraries(mbed-cy8ckit-062-ble
mbed-cat1a mbed-cat1a
mbed-cy8ckit-062-ble-cm4 mbed-cy8ckit-062-ble-cm4
mbed-cy8ckit-062-ble-bsp-design-modus mbed-cy8ckit-062-ble-bsp-design-modus
mbed-cm0p-sleep
mbed-psoc6 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 target_compile_definitions(mbed-cy8ckit-062-ble
INTERFACE INTERFACE
"CY8C6347BZI_BLD53" "CY8C6347BZI_BLD53"

View File

@ -63,11 +63,17 @@ target_link_libraries(mbed-cy8ckit-062-wifi-bt
mbed-cat1a mbed-cat1a
mbed-cy8ckit-062-wifi-bt-cm4 mbed-cy8ckit-062-wifi-bt-cm4
mbed-cy8ckit-062-wifi-bt-bsp-design-modus mbed-cy8ckit-062-wifi-bt-bsp-design-modus
mbed-cm0p-sleep
mbed-psoc6 mbed-psoc6
mbed-udb-sdio-p12 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) if("WHD" IN_LIST MBED_TARGET_LABELS)
target_link_libraries(mbed-cy8ckit-062-wifi-bt target_link_libraries(mbed-cy8ckit-062-wifi-bt
INTERFACE INTERFACE

View File

@ -64,11 +64,17 @@ target_link_libraries(mbed-cy8cproto-062s3-4343w
mbed-cat1a mbed-cat1a
mbed-cy8cproto-062s3-4343w-cm4 mbed-cy8cproto-062s3-4343w-cm4
mbed-cy8cproto-062s3-4343w-bsp-design-modus mbed-cy8cproto-062s3-4343w-bsp-design-modus
mbed-cm0p-sleep
mbed-psoc6 mbed-psoc6
mbed-cy-external-wifi-fw mbed-cy-external-wifi-fw
) )
if("CM0P_SLEEP" IN_LIST MBED_TARGET_LABELS)
target_link_librariesmbed-cy8cproto-062s3-4343w
INTERFACE
mbed-cm0p-sleep
)
endif()
if("WHD" IN_LIST MBED_TARGET_LABELS) if("WHD" IN_LIST MBED_TARGET_LABELS)
target_link_libraries(mbed-cy8cproto-062s3-4343w target_link_libraries(mbed-cy8cproto-062s3-4343w
INTERFACE INTERFACE

View File

@ -64,10 +64,16 @@ target_link_libraries(mbed-cy8cproto-062-4343w
mbed-cat1a mbed-cat1a
mbed-cy8cproto-062-4343w-cm4 mbed-cy8cproto-062-4343w-cm4
mbed-cy8cproto-062-4343w-bsp-design-modus mbed-cy8cproto-062-4343w-bsp-design-modus
mbed-cm0p-sleep
mbed-psoc6 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) if("WHD" IN_LIST MBED_TARGET_LABELS)
target_link_libraries(mbed-cy8cproto-062-4343w target_link_libraries(mbed-cy8cproto-062-4343w
INTERFACE INTERFACE

View File

@ -65,11 +65,17 @@ target_link_libraries(mbed-cyw9p62s1-43012evb-01
mbed-cat1a mbed-cat1a
mbed-cyw9p62s1-43012evb-01-cm4 mbed-cyw9p62s1-43012evb-01-cm4
mbed-cyw9p62s1-43012evb-01-bsp-design-modus mbed-cyw9p62s1-43012evb-01-bsp-design-modus
mbed-cm0p-sleep
mbed-psoc6 mbed-psoc6
mbed-udb-sdio-p12 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) if("WHD" IN_LIST MBED_TARGET_LABELS)
target_link_libraries(mbed-cyw9p62s1-43012evb-01 target_link_libraries(mbed-cyw9p62s1-43012evb-01
INTERFACE INTERFACE

View File

@ -64,11 +64,17 @@ target_link_libraries(mbed-cyw9p62s1-43438evb-01
mbed-cat1a mbed-cat1a
mbed-cyw9p62s1-43438evb-01-cm4 mbed-cyw9p62s1-43438evb-01-cm4
mbed-cyw9p62s1-43438evb-01-bsp-design-modus mbed-cyw9p62s1-43438evb-01-bsp-design-modus
mbed-cm0p-sleep
mbed-psoc6 mbed-psoc6
mbed-udb-sdio-p2 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) if("WHD" IN_LIST MBED_TARGET_LABELS)
target_link_libraries(mbed-cyw9p62s1-43438evb-01 target_link_libraries(mbed-cyw9p62s1-43438evb-01
INTERFACE INTERFACE