Skip to content

Visual Studio PlatformToolset which integrates Yocto SDK MinGW-Toolchains

Notifications You must be signed in to change notification settings

thomas-dee/vs-yocto

Repository files navigation

vs-yocto

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.

How to

  1. Ensure that you have installed the Visual Studio 2017 Linux Development and C# Workload
  2. Ensure that you have installed the Visual Studio C++ Compiler and Libraries for ARM/ARM64
  3. Build your Yocto SDK and extract it anywhere on your Windows machine
  4. Checkout or download this repo somewhere.
  5. 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.

Note

registerYoctoSDKToVisualStudio.bat will build the required vs-yocto.Build.CPPTasks.GCC.dll.

This requires C# development workload.

Debugging

To be able to debug a "Yocto Linux" target using GDB your Yocto image must meet some requirements:

OpenSSH

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.

GDB

To be able to debug you need to add tools-debug to your EXTRA_IMAGE_FEATURES.

About

Visual Studio PlatformToolset which integrates Yocto SDK MinGW-Toolchains

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published