Skip to content

Commit c82e8c2

Browse files
committed
CMake: Restore rtos api and netsocket presence macro names
The old tools rely on the old names to build
1 parent 448986f commit c82e8c2

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

cmsis/device/rtos/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,8 @@ target_sources(mbed-os PRIVATE
2929
source/mbed_rtx_handlers.c
3030
source/mbed_rtx_idle.cpp
3131
)
32+
33+
target_compile_definitions(mbed-os
34+
PUBLIC
35+
MBED_CONF_RTOS_PRESENT=1
36+
)

connectivity/netsocket/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ target_sources(mbed-os-netsocket
4242

4343
target_compile_definitions(mbed-os-netsocket
4444
INTERFACE
45-
MBED_CONF_NETSOCKET_PRESENT=1
45+
MBED_CONF_NSAPI_PRESENT=1
4646
)
4747

4848
target_link_libraries(mbed-os-netsocket

mbed.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,20 @@
1919

2020
#include "platform/mbed_version.h"
2121

22-
#if defined(MBED_CONF_RTOS_PRESENT)
22+
#if MBED_CONF_RTOS_API_PRESENT
2323
#include "rtos/rtos.h"
2424
#endif
2525

26-
#if defined(MBED_CONF_NETSOCKET_PRESENT)
26+
#if MBED_CONF_NSAPI_PRESENT
2727
#include "netsocket/nsapi.h"
2828
#include "netsocket/nsapi_ppp.h"
2929
#endif
3030

31-
#if defined(MBED_CONF_EVENTS_PRESENT)
31+
#if MBED_CONF_EVENTS_PRESENT
3232
#include "events/mbed_events.h"
3333
#endif
3434

35-
#if defined(MBED_CONF_FILESYSTEM_PRESENT)
35+
#if MBED_CONF_FILESYSTEM_PRESENT
3636
#include "filesystem/mbed_filesystem.h"
3737
#endif
3838

rtos/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ target_sources(mbed-os
2323

2424
target_compile_definitions(mbed-os
2525
PUBLIC
26-
MBED_CONF_RTOS_PRESENT=1
26+
MBED_CONF_RTOS_API_PRESENT=1
2727
)

0 commit comments

Comments
 (0)