adt-intro.xml 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
  2. "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
  3. [<!ENTITY % poky SYSTEM "../poky.ent"> %poky; ] >
  4. <chapter id='adt-intro'>
  5. <title>The Application Development Toolkit (ADT)</title>
  6. <para>
  7. Part of the Yocto Project development solution is an Application Development
  8. Toolkit (ADT).
  9. The ADT provides you with a custom-built, cross-development
  10. platform suited for developing a user-targeted product application.
  11. </para>
  12. <para>
  13. Fundamentally, the ADT consists of the following:
  14. <itemizedlist>
  15. <listitem><para>An architecture-specific cross-toolchain and matching
  16. sysroot both built by the
  17. <ulink url='&YOCTO_DOCS_DEV_URL;#build-system-term'>OpenEmbedded build system</ulink>.
  18. The toolchain and sysroot are based on a
  19. <ulink url='&YOCTO_DOCS_DEV_URL;#metadata'>Metadata</ulink>
  20. configuration and extensions,
  21. which allows you to cross-develop on the host machine for the target hardware.
  22. </para></listitem>
  23. <listitem><para>The Eclipse IDE Yocto Plug-in.</para></listitem>
  24. <listitem><para>The Quick EMUlator (QEMU), which lets you simulate target hardware.
  25. </para></listitem>
  26. <listitem><para>Various user-space tools that greatly enhance your application
  27. development experience.</para></listitem>
  28. </itemizedlist>
  29. </para>
  30. <section id='the-cross-development-toolchain'>
  31. <title>The Cross-Development Toolchain</title>
  32. <para>
  33. The
  34. <ulink url='&YOCTO_DOCS_DEV_URL;#cross-development-toolchain'>Cross-Development Toolchain</ulink>
  35. consists of a cross-compiler, cross-linker, and cross-debugger
  36. that are used to develop user-space applications for targeted
  37. hardware.
  38. This toolchain is created either by running the ADT Installer
  39. script, a toolchain installer script, or through a
  40. <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink>
  41. that is based on your Metadata configuration or extension for
  42. your targeted device.
  43. The cross-toolchain works with a matching target sysroot.
  44. </para>
  45. </section>
  46. <section id='sysroot'>
  47. <title>Sysroot</title>
  48. <para>
  49. The matching target sysroot contains needed headers and libraries for generating
  50. binaries that run on the target architecture.
  51. The sysroot is based on the target root filesystem image that is built by
  52. the OpenEmbedded build system and uses the same Metadata configuration
  53. used to build the cross-toolchain.
  54. </para>
  55. </section>
  56. <section id='eclipse-overview'>
  57. <title>Eclipse Yocto Plug-in</title>
  58. <para>
  59. The Eclipse IDE is a popular development environment and it fully supports
  60. development using the Yocto Project.
  61. When you install and configure the Eclipse Yocto Project Plug-in into
  62. the Eclipse IDE, you maximize your Yocto Project experience.
  63. Installing and configuring the Plug-in results in an environment that
  64. has extensions specifically designed to let you more easily develop software.
  65. These extensions allow for cross-compilation, deployment, and execution of
  66. your output into a QEMU emulation session.
  67. You can also perform cross-debugging and profiling.
  68. The environment also supports a suite of tools that allows you to perform
  69. remote profiling, tracing, collection of power data, collection of
  70. latency data, and collection of performance data.
  71. </para>
  72. <para>
  73. For information about the application development workflow that uses the Eclipse
  74. IDE and for a detailed example of how to install and configure the Eclipse
  75. Yocto Project Plug-in, see the
  76. "<ulink url='&YOCTO_DOCS_DEV_URL;#adt-eclipse'>Working Within Eclipse</ulink>" section
  77. of the Yocto Project Development Manual.
  78. </para>
  79. </section>
  80. <section id='the-qemu-emulator'>
  81. <title>The QEMU Emulator</title>
  82. <para>
  83. The QEMU emulator allows you to simulate your hardware while running your
  84. application or image.
  85. QEMU is made available a number of ways:
  86. <itemizedlist>
  87. <listitem><para>
  88. If you use the ADT Installer script to install ADT, you can
  89. specify whether or not to install QEMU.
  90. </para></listitem>
  91. <listitem><para>
  92. If you have cloned the <filename>poky</filename> Git
  93. repository to create a
  94. <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>
  95. and you have sourced the environment setup script, QEMU is
  96. installed and automatically available.
  97. </para></listitem>
  98. <listitem><para>
  99. If you have downloaded a Yocto Project release and unpacked
  100. it to create a
  101. <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>
  102. and you have sourced the environment setup script, QEMU is
  103. installed and automatically available.
  104. </para></listitem>
  105. <listitem><para>
  106. If you have installed the cross-toolchain tarball and you
  107. have sourced the toolchain's setup environment script, QEMU
  108. is also installed and automatically available.
  109. </para></listitem>
  110. </itemizedlist>
  111. </para>
  112. </section>
  113. <section id='user-space-tools'>
  114. <title>User-Space Tools</title>
  115. <para>
  116. User-space tools are included as part of the Yocto Project.
  117. You will find these tools helpful during development.
  118. The tools include LatencyTOP, PowerTOP, OProfile, Perf, SystemTap, and Lttng-ust.
  119. These tools are common development tools for the Linux platform.
  120. <itemizedlist>
  121. <listitem><para><emphasis>LatencyTOP:</emphasis> LatencyTOP focuses on latency
  122. that causes skips in audio,
  123. stutters in your desktop experience, or situations that overload your server
  124. even when you have plenty of CPU power left.
  125. </para></listitem>
  126. <listitem><para><emphasis>PowerTOP:</emphasis> Helps you determine what
  127. software is using the most power.
  128. You can find out more about PowerTOP at
  129. <ulink url='https://01.org/powertop/'></ulink>.</para></listitem>
  130. <listitem><para><emphasis>OProfile:</emphasis> A system-wide profiler for Linux
  131. systems that is capable of profiling all running code at low overhead.
  132. You can find out more about OProfile at
  133. <ulink url='http://oprofile.sourceforge.net/about/'></ulink>.
  134. For examples on how to setup and use this tool, see the
  135. "<ulink url='&YOCTO_DOCS_PROF_URL;#profile-manual-oprofile'>OProfile</ulink>"
  136. section in the Yocto Project Profiling and Tracing Manual.
  137. </para></listitem>
  138. <listitem><para><emphasis>Perf:</emphasis> Performance counters for Linux used
  139. to keep track of certain types of hardware and software events.
  140. For more information on these types of counters see
  141. <ulink url='https://perf.wiki.kernel.org/'></ulink>.
  142. For examples on how to setup and use this tool, see the
  143. "<ulink url='&YOCTO_DOCS_PROF_URL;#profile-manual-perf'>perf</ulink>"
  144. section in the Yocto Project Profiling and Tracing Manual.
  145. </para></listitem>
  146. <listitem><para><emphasis>SystemTap:</emphasis> A free software infrastructure
  147. that simplifies information gathering about a running Linux system.
  148. This information helps you diagnose performance or functional problems.
  149. SystemTap is not available as a user-space tool through the Eclipse IDE Yocto Plug-in.
  150. See <ulink url='http://sourceware.org/systemtap'></ulink> for more information
  151. on SystemTap.
  152. For examples on how to setup and use this tool, see the
  153. "<ulink url='&YOCTO_DOCS_PROF_URL;#profile-manual-systemtap'>SystemTap</ulink>"
  154. section in the Yocto Project Profiling and Tracing Manual.</para></listitem>
  155. <listitem><para><emphasis>Lttng-ust:</emphasis> A User-space Tracer designed to
  156. provide detailed information on user-space activity.
  157. See <ulink url='http://lttng.org/ust'></ulink> for more information on Lttng-ust.
  158. </para></listitem>
  159. </itemizedlist>
  160. </para>
  161. </section>
  162. </chapter>
  163. <!--
  164. vim: expandtab tw=80 ts=4
  165. -->