TipsAndTricks/RunningEclipseAgainstBuiltImage

From Yocto Project
Revision as of 21:06, 15 August 2016 by Bavery (talk | contribs) (Created page with "= Cookbook guide to Making an Eclipse Debug Capable Image = Suppose you are building images and would like to be able to use Eclipse and the Yocto Eclipse plugin to develop/de...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Cookbook guide to Making an Eclipse Debug Capable Image

Suppose you are building images and would like to be able to use Eclipse and the Yocto Eclipse plugin to develop/debug a C/C++ application on either a remote hardware target or on qemu. This cookbook will explain the small number of steps needed to accomplish this.
So that the commands are specific and can be cut and pasted to try, we will assume the following:

  • Target Image-> core-image-sato
  • Target Machine -> qemux86-64


The Steps

  • We need to build a core-image-sato that has the pieces needed by Eclipse, so we add/change the following in our conf/local.conf:
    • We add the following to EXTRA_IMAGE_FEATURES in conf/local.conf
      • EXTRA_IMAGE_FEATURES += " eclipse-debug "
        • This adds gdbserver,tcf-agent (for Target Communication Framework), and openssh-sftp-server)
      • EXTRA_IMAGE_FEATURES += " ssh-server-openssh "
        • This defaults to the openssl ssh server rather than dropbear. You can use either so this line can be omitted since the sftp server works with either.