Skip to content

Commit fe5e648

Browse files
authored
Merge pull request #15192 from ATmobica/master
Add option to disable WHD component for Cypress targets
2 parents 35050f0 + 78a7859 commit fe5e648

File tree

9 files changed

+75
-25
lines changed

9 files changed

+75
-25
lines changed

connectivity/drivers/wifi/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ add_subdirectory(TARGET_WICED EXCLUDE_FROM_ALL)
55

66
add_subdirectory(TARGET_STM EXCLUDE_FROM_ALL)
77

8-
add_subdirectory(COMPONENT_WHD EXCLUDE_FROM_ALL)
8+
if("WHD" IN_LIST MBED_TARGET_LABELS)
9+
add_subdirectory(COMPONENT_WHD EXCLUDE_FROM_ALL)
10+
endif()
911

1012
add_subdirectory(esp8266-driver)
1113

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CKIT064B0S2_4343W/CMakeLists.txt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,17 @@ target_link_libraries(mbed-cy8ckit064b0s2-4343w
6767
mbed-cy8ckit064b0s2-4343w-bsp-design-modus
6868
mbed-cm0p-secure
6969
mbed-psoc6
70-
mbed-cy-psoc6-whd
71-
mbed-cy-psoc6-whd-4343w
72-
mbed-cy8ckit-064b0s2-4343w-whd
7370
)
7471

72+
if("WHD" IN_LIST MBED_TARGET_LABELS)
73+
target_link_libraries(mbed-cy8ckit064b0s2-4343w
74+
INTERFACE
75+
mbed-cy-psoc6-whd
76+
mbed-cy-psoc6-whd-4343w
77+
mbed-cy8ckit-064b0s2-4343w-whd
78+
)
79+
endif()
80+
7581
target_compile_definitions(mbed-cy8ckit064b0s2-4343w
7682
INTERFACE
7783
"CYB0644ABZI_S2D44"

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CKIT_062S2_43012/CMakeLists.txt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,17 @@ target_link_libraries(mbed-cy8ckit-062s2-43012
6565
mbed-cy8ckit-062s2-43012-bsp-design-modus
6666
mbed-cm0p-sleep
6767
mbed-psoc6
68-
mbed-cy-psoc6-whd
69-
mbed-cy-psoc6-whd-43012
70-
mbed-cy8ckit-062s2-43012-whd
7168
)
7269

70+
if("WHD" IN_LIST MBED_TARGET_LABELS)
71+
target_link_libraries(mbed-cy8ckit-062s2-43012
72+
INTERFACE
73+
mbed-cy-psoc6-whd
74+
mbed-cy-psoc6-whd-43012
75+
mbed-cy8ckit-062s2-43012-whd
76+
)
77+
endif()
78+
7379
target_compile_definitions(mbed-cy8ckit-062s2-43012
7480
INTERFACE
7581
"CY8C624ABZI_D44"

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CKIT_062_WIFI_BT/CMakeLists.txt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,18 @@ target_link_libraries(mbed-cy8ckit-062-wifi-bt
6565
mbed-cy8ckit-062-wifi-bt-bsp-design-modus
6666
mbed-cm0p-sleep
6767
mbed-psoc6
68-
mbed-cy-psoc6-whd
69-
mbed-cy-psoc6-whd-4343w
70-
mbed-cy8ckit-062-wifi-bt-whd
7168
mbed-udb-sdio-p12
7269
)
7370

71+
if("WHD" IN_LIST MBED_TARGET_LABELS)
72+
target_link_libraries(mbed-cy8ckit-062-wifi-bt
73+
INTERFACE
74+
mbed-cy-psoc6-whd
75+
mbed-cy-psoc6-whd-4343w
76+
mbed-cy8ckit-062-wifi-bt-whd
77+
)
78+
endif()
79+
7480
target_compile_definitions(mbed-cy8ckit-062-wifi-bt
7581
INTERFACE
7682
"CY8C6247BZI_D54"

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CPROTO_062S3_4343W/CMakeLists.txt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,18 @@ target_link_libraries(mbed-cy8cproto-062s3-4343w
6666
mbed-cy8cproto-062s3-4343w-bsp-design-modus
6767
mbed-cm0p-sleep
6868
mbed-psoc6
69-
mbed-cy-psoc6-whd
70-
mbed-cy-psoc6-whd-4343w
71-
mbed-cy8cproto-062s3-4343w-whd
7269
mbed-cy-external-wifi-fw
7370
)
7471

72+
if("WHD" IN_LIST MBED_TARGET_LABELS)
73+
target_link_libraries(mbed-cy8cproto-062s3-4343w
74+
INTERFACE
75+
mbed-cy-psoc6-whd
76+
mbed-cy-psoc6-whd-4343w
77+
mbed-cy8cproto-062s3-4343w-whd
78+
)
79+
endif()
80+
7581
target_compile_definitions(mbed-cy8cproto-062s3-4343w
7682
INTERFACE
7783
"CY8C6245LQI_S3D72"

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CPROTO_062_4343W/CMakeLists.txt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,17 @@ target_link_libraries(mbed-cy8cproto-062-4343w
6666
mbed-cy8cproto-062-4343w-bsp-design-modus
6767
mbed-cm0p-sleep
6868
mbed-psoc6
69-
mbed-cy-psoc6-whd
70-
mbed-cy-psoc6-whd-4343w
71-
mbed-cy8cproto-062-4343w-whd
7269
)
7370

71+
if("WHD" IN_LIST MBED_TARGET_LABELS)
72+
target_link_libraries(mbed-cy8cproto-062-4343w
73+
INTERFACE
74+
mbed-cy-psoc6-whd
75+
mbed-cy-psoc6-whd-4343w
76+
mbed-cy8cproto-062-4343w-whd
77+
)
78+
endif()
79+
7480
target_compile_definitions(mbed-cy8cproto-062-4343w
7581
INTERFACE
7682
"CY8C624ABZI_D44"

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CYTFM_064B0S2_4343W/CMakeLists.txt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,17 @@ target_link_libraries(mbed-cytfm-064b0s2-4343w
5858
mbed-cytfm-064b0s2-4343w-cm4
5959
mbed-cytfm-064b0s2-4343w-bsp-design-modus
6060
mbed-psoc6
61-
mbed-cy-psoc6-whd
62-
mbed-cy-psoc6-whd-4343w
63-
mbed-cytfm-064b0s2-4343w-whd
6461
)
6562

63+
if("WHD" IN_LIST MBED_TARGET_LABELS)
64+
target_link_libraries(mbed-cytfm-064b0s2-4343w
65+
INTERFACE
66+
mbed-cy-psoc6-whd
67+
mbed-cy-psoc6-whd-4343w
68+
mbed-cytfm-064b0s2-4343w-whd
69+
)
70+
endif()
71+
6672
target_compile_definitions(mbed-cytfm-064b0s2-4343w
6773
INTERFACE
6874
"CYB0644ABZI_S2D44"

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CYW9P62S1_43012EVB_01/CMakeLists.txt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,18 @@ target_link_libraries(mbed-cyw9p62s1-43012evb-01
6767
mbed-cyw9p62s1-43012evb-01-bsp-design-modus
6868
mbed-cm0p-sleep
6969
mbed-psoc6
70-
mbed-cy-psoc6-whd
71-
mbed-cy-psoc6-whd-43012
72-
mbed-cyw9p62s1-43012evb-01-whd
7370
mbed-udb-sdio-p12
7471
)
7572

73+
if("WHD" IN_LIST MBED_TARGET_LABELS)
74+
target_link_libraries(mbed-cyw9p62s1-43012evb-01
75+
INTERFACE
76+
mbed-cy-psoc6-whd
77+
mbed-cy-psoc6-whd-43012
78+
mbed-cyw9p62s1-43012evb-01-whd
79+
)
80+
endif()
81+
7682
target_compile_definitions(mbed-cyw9p62s1-43012evb-01
7783
INTERFACE
7884
"CY8C6247FDI_D52"

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CYW9P62S1_43438EVB_01/CMakeLists.txt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,18 @@ target_link_libraries(mbed-cyw9p62s1-43438evb-01
6666
mbed-cyw9p62s1-43438evb-01-bsp-design-modus
6767
mbed-cm0p-sleep
6868
mbed-psoc6
69-
mbed-cy-psoc6-whd
70-
mbed-cy-psoc6-whd-43438
71-
mbed-cyw9p62s1-43438evb-01-whd
7269
mbed-udb-sdio-p2
7370
)
7471

72+
if("WHD" IN_LIST MBED_TARGET_LABELS)
73+
target_link_libraries(mbed-cyw9p62s1-43438evb-01
74+
INTERFACE
75+
mbed-cy-psoc6-whd
76+
mbed-cy-psoc6-whd-43438
77+
mbed-cyw9p62s1-43438evb-01-whd
78+
)
79+
endif()
80+
7581
target_compile_definitions(mbed-cyw9p62s1-43438evb-01
7682
INTERFACE
7783
"CY8C6247BZI_D54"

0 commit comments

Comments
 (0)