This package allows for registering a Yocto Windows SDK (using the meta layer meta-mingw) as new PlatformToolset for any Visual Studio 2017 Linux console application.
- Ensure that you have installed the Visual Studio 2017 Linux Development and C# Workload
- Ensure that you have installed the Visual Studio C++ Compiler and Libraries for ARM/ARM64
- Build your Yocto SDK and extract it anywhere on your Windows machine
- Checkout or download this repo somewhere.
- Run the
registerYoctoSDKToVisualStudio.bat
with admin privileges. (Note: This is required to copy the required Toolset files into the Visual Studio installation.) and follow the instructions.
registerYoctoSDKToVisualStudio.bat
will build the required vs-yocto.Build.CPPTasks.GCC.dll
.
This requires C# development workload.
To be able to debug a "Yocto Linux" target using GDB your Yocto image must meet some requirements:
Since Visual Studio connects via SSH to the debug target you must include OpenSSH into your Yocto image.
Please make sure that you configure your SFTP subsystem using internal-sftp. Otherwise Visual Studio will not be able to connect.
To be able to debug you need to add tools-debug
to your EXTRA_IMAGE_FEATURES
.