Skip to content

Commit bff8b8e

Browse files
authored
Merge pull request #14232 from hugueskamba/hk_fix_cypress_mcu_psoc6_m4
CMake: Fix Cypress MCU_PSOC6_M4 build
2 parents fb0d646 + 59bb225 commit bff8b8e

File tree

1 file changed

+16
-16
lines changed
  • targets/TARGET_Cypress/TARGET_PSOC6/psoc6csp/abstraction/rtos

1 file changed

+16
-16
lines changed
Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
# Copyright (c) 2020 ARM Limited. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

4-
add_library(mbed-cy_psoc6csp_rtos INTERFACE)
4+
if("CY_RTOS_AWARE" IN_LIST MBED_CONFIG_DEFINITIONS)
5+
if("RTX" IN_LIST MBED_TARGET_LABELS)
6+
target_include_directories(mbed-core
7+
INTERFACE
8+
include/COMPONENT_RTX
9+
)
10+
target_sources(mbed-core
11+
INTERFACE
12+
source/COMPONENT_RTX/cyabs_rtos_rtxv5.c
13+
)
14+
endif()
515

6-
if("RTX" IN_LIST MBED_TARGET_LABELS)
7-
target_include_directories(mbed-cy_psoc6csp_rtos
16+
target_include_directories(mbed-core
817
INTERFACE
9-
include/COMPONENT_RTX
18+
include
1019
)
11-
target_sources(mbed-cy_psoc6csp_rtos
20+
21+
target_sources(mbed-core
1222
INTERFACE
13-
source/COMPONENT_RTX/cyabs_rtos_rtxv5.c
23+
source/cy_worker_thread.c
1424
)
1525
endif()
16-
17-
target_include_directories(mbed-cy_psoc6csp_rtos
18-
INTERFACE
19-
include
20-
)
21-
22-
target_sources(mbed-cy_psoc6csp_rtos
23-
INTERFACE
24-
source/cy_worker_thread.c
25-
)

0 commit comments

Comments
 (0)