Arm Mbed OS support forum

"mbed-os" folder in every each project on disk

Hi there,

this is not big issue, but I’m curious if is possible save space in multi project folder, where is “mbed-os” folder in every each project of mbed-cli. So every folder has plus-minus 1GB data almost to same in every project on local disk.

Is there possibility to use just one “mbed-os” library for every project in one folder?

project tree:
|-workspace:
____ |–project one:
________|–BULID
________|–mbed-os
________ |–.hg
____|–project two:
________|–BULID
________|–mbed-os
________|–.hg
____|–project three:
________|–BULID
________ |–mbed-os
________|–.hg
____ |–project four:
________ |–BULID
________ |–mbed-os
________ |–.hg
etc…

Hi Kiskovce,

Mbed CLI
One way of achieving it is to have Mbed OS somewhere on your system and then add symlinks to it in your programs.

Mbed Studio
Mbed Studio (https://os.mbed.com/studio/) has just added this functionality in version 1.2.0. You can find more about it here: https://os.mbed.com/docs/mbed-studio/current/manage-libraries/index.html#using-a-shared-instance-of-mbed-os
Studio exposes also all Mbed tools in the built-in terminal (including Mbed CLI): https://os.mbed.com/docs/mbed-studio/current/terminal-tools/index.html

Thanks,
Arek - Mbed Studio team