Skip to content

Commit f164549

Browse files
committed
Make mbed-os link mbed-core-flags/mbed-core-sources only
With mbed-core-flags/mbed-core-sources being overloaded to match target.application-profile setting, mbed-os should link only mbed-core-flags/mbed-core-sources which will involve mbed-rtos-flags/ mbed-rtos-sources as config.
1 parent 0c61790 commit f164549

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ if(NOT MBED_IS_NATIVE_BUILD)
314314
# Note that many different source files will compile differently depending on if the RTOS is in use.
315315
# So, it's needed to compile the core sources twice, once for RTOS and once for non-RTOS.
316316
mbed_create_distro(mbed-baremetal ${MBED_TARGET_CMAKE_NAME} mbed-core-flags mbed-core-sources)
317-
mbed_create_distro(mbed-os ${MBED_TARGET_CMAKE_NAME} mbed-core-flags mbed-core-sources mbed-rtos-flags mbed-rtos-sources)
317+
mbed_create_distro(mbed-os ${MBED_TARGET_CMAKE_NAME} mbed-core-flags mbed-core-sources)
318318

319319
# Set up the linker script and hook it up to the top-level OS targets
320320
mbed_setup_linker_script(mbed-os mbed-baremetal ${CMAKE_CURRENT_BINARY_DIR}/generated-headers/mbed-target-config.h)

0 commit comments

Comments
 (0)