How to do it...

To configure Eclipse to use a Yocto toolchain, go to Window | Preferences | Yocto Project SDK. The SDK configuration offers two cross-compiler options:

  1. Standalone pre-built toolchain: Choose this when you have installed a Yocto SDK including a toolchain
  2. Build system derived toolchain: Choose this when using a Yocto build directory prepared with meta-ide-support as explained previously

It also offers two target options:

  1. QEMU: Choose this if you are using Poky with a virtualized machine like qemuarm.
  2. External HW: Choose this if you are using real hardware like the Wandboard hardware. This option is the most useful for embedded development.

An example configuration when using a downloaded Yocto SDK installer would be to choose ...

Get Embedded Linux Development Using Yocto Project Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.