diff options
author | Scott Rifenbark <scott.m.rifenbark@intel.com> | 2014-08-08 16:59:39 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-08-12 13:50:32 +0100 |
commit | 010d19ec2ccb95201902dd034401de3d129355ff (patch) | |
tree | fecba4a438fe43efde4fe4add516730dbc33f35f /documentation | |
parent | 1ab0c8fb8c39ae2e15962c38cbbfc15849e048d6 (diff) | |
download | poky-010d19ec2ccb95201902dd034401de3d129355ff.tar.gz |
dev-manual: Misc edits to the model chapter (Chapter 4).
I replaced user-supplied variables with <replaceable></replaceable>
tags to get proper formatting. I inserted several references
to the new QEMU chapter for help using QEMU. I updated a note
on the BSP available so that it is a bit more generic and not so
dependent on an exact list within meta-intel and the source
repositories.
(From yocto-docs rev: daef4406e7c3e45dd5d98d565e519d91939f6965)
Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation')
-rw-r--r-- | documentation/dev-manual/dev-manual-model.xml | 48 |
1 files changed, 33 insertions, 15 deletions
diff --git a/documentation/dev-manual/dev-manual-model.xml b/documentation/dev-manual/dev-manual-model.xml index a3852c44b4..45015e4e1c 100644 --- a/documentation/dev-manual/dev-manual-model.xml +++ b/documentation/dev-manual/dev-manual-model.xml | |||
@@ -161,11 +161,16 @@ | |||
161 | and <filename>edgerouter</filename> (MIPS). | 161 | and <filename>edgerouter</filename> (MIPS). |
162 | The recipes and configurations for these five BSPs are located and dispersed | 162 | The recipes and configurations for these five BSPs are located and dispersed |
163 | within the <link linkend='source-directory'>Source Directory</link>. | 163 | within the <link linkend='source-directory'>Source Directory</link>. |
164 | On the other hand, BSP layers for Crown Bay, | 164 | On the other hand, the <filename>meta-intel</filename> layer |
165 | contains BSP layers for many supported BSPs (e.g. | ||
165 | Crystal Forest, Emenlow, Fish River Island 2, Haswell, | 166 | Crystal Forest, Emenlow, Fish River Island 2, Haswell, |
166 | Jasper Forest, NUC DC3217IYE, | 167 | Jasper Forest, and so forth). |
167 | Romley, Sugar Bay, and tlk exist in their own separate layers | 168 | Aside from the BSPs in the <filename>meta-intel</filename> |
168 | within the larger <filename>meta-intel</filename> layer.</note> | 169 | layer, the |
170 | <ulink url='&YOCTO_GIT_URL;'>Source Repositories</ulink> | ||
171 | contain additional BSP layers such as | ||
172 | <filename>meta-minnow</filename> and | ||
173 | <filename>meta-raspberrypi</filename>.</note> | ||
169 | <para>When you set up a layer for a new BSP, you should follow a standard layout. | 174 | <para>When you set up a layer for a new BSP, you should follow a standard layout. |
170 | This layout is described in the | 175 | This layout is described in the |
171 | "<ulink url='&YOCTO_DOCS_BSP_URL;#bsp-filelayout'>Example Filesystem Layout</ulink>" | 176 | "<ulink url='&YOCTO_DOCS_BSP_URL;#bsp-filelayout'>Example Filesystem Layout</ulink>" |
@@ -603,7 +608,11 @@ | |||
603 | QEMU through the project's preferences. | 608 | QEMU through the project's preferences. |
604 | If you are not using the Eclipse IDE, then you need to deploy the application | 609 | If you are not using the Eclipse IDE, then you need to deploy the application |
605 | to the hardware using other methods. | 610 | to the hardware using other methods. |
606 | Or, if you are using QEMU, you need to use that tool and load your image in for testing. | 611 | Or, if you are using QEMU, you need to use that tool and |
612 | load your image in for testing. | ||
613 | See the | ||
614 | "<link linkend='dev-manual-qemu'>Using the Quick EMUlator (QEMU)</link>" | ||
615 | chapter for information on using QEMU. | ||
607 | </para></listitem> | 616 | </para></listitem> |
608 | <listitem><para><emphasis>Test and debug the application</emphasis>: | 617 | <listitem><para><emphasis>Test and debug the application</emphasis>: |
609 | Once your application is deployed, you need to test it. | 618 | Once your application is deployed, you need to test it. |
@@ -1076,7 +1085,7 @@ | |||
1076 | <filename>Build system derived toolchain</filename>, | 1085 | <filename>Build system derived toolchain</filename>, |
1077 | the target kernel you built will be located in | 1086 | the target kernel you built will be located in |
1078 | the Build Directory in | 1087 | the Build Directory in |
1079 | <filename>tmp/deploy/images/<machine></filename> | 1088 | <filename>tmp/deploy/images/<replaceable>machine</replaceable></filename> |
1080 | directory. | 1089 | directory. |
1081 | If you selected | 1090 | If you selected |
1082 | <filename>Standalone pre-built toolchain</filename>, | 1091 | <filename>Standalone pre-built toolchain</filename>, |
@@ -1244,6 +1253,11 @@ | |||
1244 | <para> | 1253 | <para> |
1245 | To start the QEMU emulator from within Eclipse, follow these | 1254 | To start the QEMU emulator from within Eclipse, follow these |
1246 | steps: | 1255 | steps: |
1256 | <note> | ||
1257 | See the | ||
1258 | "<link linkend='dev-manual-qemu'>Using the Quick EMUlator (QEMU)</link>" | ||
1259 | chapter for more information on using QEMU. | ||
1260 | </note> | ||
1247 | <orderedlist> | 1261 | <orderedlist> |
1248 | <listitem><para>Expose and select "External Tools" from | 1262 | <listitem><para>Expose and select "External Tools" from |
1249 | the "Run" menu. | 1263 | the "Run" menu. |
@@ -1484,7 +1498,7 @@ | |||
1484 | Project Location. | 1498 | Project Location. |
1485 | The Yocto project's Metadata files will be put under | 1499 | The Yocto project's Metadata files will be put under |
1486 | the directory | 1500 | the directory |
1487 | <filename><project_location>/<project_name></filename>. | 1501 | <filename><replaceable>project_location</replaceable>/<replaceable>project_name</replaceable></filename>. |
1488 | If that directory does not exist, you need to check | 1502 | If that directory does not exist, you need to check |
1489 | the "Clone from Yocto Git Repository" box, which | 1503 | the "Clone from Yocto Git Repository" box, which |
1490 | would execute a <filename>git clone</filename> | 1504 | would execute a <filename>git clone</filename> |
@@ -1627,7 +1641,11 @@ | |||
1627 | If you need to separately install and use the QEMU | 1641 | If you need to separately install and use the QEMU |
1628 | emulator, you can go to | 1642 | emulator, you can go to |
1629 | <ulink url='http://wiki.qemu.org/Main_Page'>QEMU Home Page</ulink> | 1643 | <ulink url='http://wiki.qemu.org/Main_Page'>QEMU Home Page</ulink> |
1630 | to download and learn about the emulator.</para></listitem> | 1644 | to download and learn about the emulator. |
1645 | You can see the | ||
1646 | "<link linkend='dev-manual-qemu'>Using the Quick EMUlator (QEMU)</link>" | ||
1647 | chapter for information on using QEMU within the Yocto | ||
1648 | Project.</para></listitem> | ||
1631 | </orderedlist> | 1649 | </orderedlist> |
1632 | </para> | 1650 | </para> |
1633 | </section> | 1651 | </section> |
@@ -1778,7 +1796,7 @@ | |||
1778 | <filename>do_compile</filename> task as shown in the | 1796 | <filename>do_compile</filename> task as shown in the |
1779 | following example: | 1797 | following example: |
1780 | <literallayout class='monospaced'> | 1798 | <literallayout class='monospaced'> |
1781 | $ bitbake -c compile -f <name_of_package> | 1799 | $ bitbake -c compile -f <replaceable>name_of_package</replaceable> |
1782 | </literallayout> | 1800 | </literallayout> |
1783 | The <filename>-f</filename> or <filename>--force</filename> | 1801 | The <filename>-f</filename> or <filename>--force</filename> |
1784 | option forces the specified task to execute. | 1802 | option forces the specified task to execute. |
@@ -1790,9 +1808,9 @@ | |||
1790 | or | 1808 | or |
1791 | <ulink url='&YOCTO_DOCS_REF_URL;#ref-tasks-cleanall'><filename>do_cleanall</filename></ulink> | 1809 | <ulink url='&YOCTO_DOCS_REF_URL;#ref-tasks-cleanall'><filename>do_cleanall</filename></ulink> |
1792 | tasks using BitBake (i.e. | 1810 | tasks using BitBake (i.e. |
1793 | <filename>bitbake -c clean <name_of_package></filename> | 1811 | <filename>bitbake -c clean <replaceable>name_of_package</replaceable></filename> |
1794 | and | 1812 | and |
1795 | <filename>bitbake -c cleanall <name_of_package></filename>). | 1813 | <filename>bitbake -c cleanall <replaceable>name_of_package</replaceable></filename>). |
1796 | Modifications will also disappear if you use the <filename>rm_work</filename> | 1814 | Modifications will also disappear if you use the <filename>rm_work</filename> |
1797 | feature as described in the | 1815 | feature as described in the |
1798 | "<ulink url='&YOCTO_DOCS_QS_URL;#building-image'>Building an Image</ulink>" | 1816 | "<ulink url='&YOCTO_DOCS_QS_URL;#building-image'>Building an Image</ulink>" |
@@ -1883,7 +1901,7 @@ | |||
1883 | <filename>do_compile</filename> task as shown in the | 1901 | <filename>do_compile</filename> task as shown in the |
1884 | following example: | 1902 | following example: |
1885 | <literallayout class='monospaced'> | 1903 | <literallayout class='monospaced'> |
1886 | $ bitbake -c compile -f <name_of_package> | 1904 | $ bitbake -c compile -f <replaceable>name_of_package</replaceable> |
1887 | </literallayout> | 1905 | </literallayout> |
1888 | The <filename>-f</filename> or <filename>--force</filename> | 1906 | The <filename>-f</filename> or <filename>--force</filename> |
1889 | option forces the specified task to execute. | 1907 | option forces the specified task to execute. |
@@ -1917,11 +1935,11 @@ | |||
1917 | Once you have committed the files, you can use the <filename>git log</filename> | 1935 | Once you have committed the files, you can use the <filename>git log</filename> |
1918 | command to see your changes: | 1936 | command to see your changes: |
1919 | <literallayout class='monospaced'> | 1937 | <literallayout class='monospaced'> |
1920 | $ git commit -m "<commit-summary-message>" | 1938 | $ git commit -m "<replaceable>commit-summary-message</replaceable>" |
1921 | $ git log | 1939 | $ git log |
1922 | </literallayout> | 1940 | </literallayout> |
1923 | <note>The name of the patch file created in the next step is based on your | 1941 | <note>The name of the patch file created in the next step is based on your |
1924 | <filename>commit-summary-message</filename>.</note></para></listitem> | 1942 | <replaceable>commit-summary-message</replaceable>.</note></para></listitem> |
1925 | <listitem><para><emphasis>Generate the Patch:</emphasis> | 1943 | <listitem><para><emphasis>Generate the Patch:</emphasis> |
1926 | Once the changes are committed, use the <filename>git format-patch</filename> | 1944 | Once the changes are committed, use the <filename>git format-patch</filename> |
1927 | command to generate a patch file: | 1945 | command to generate a patch file: |
@@ -1948,7 +1966,7 @@ | |||
1948 | of the recipe. | 1966 | of the recipe. |
1949 | Here is an example: | 1967 | Here is an example: |
1950 | <literallayout class='monospaced'> | 1968 | <literallayout class='monospaced'> |
1951 | SRC_URI += "file://0001-<commit-summary-message>.patch" | 1969 | SRC_URI += "file://0001-<replaceable>commit-summary-message</replaceable>.patch" |
1952 | </literallayout></para></listitem> | 1970 | </literallayout></para></listitem> |
1953 | <listitem><para><emphasis>Increment the Recipe Revision Number:</emphasis> | 1971 | <listitem><para><emphasis>Increment the Recipe Revision Number:</emphasis> |
1954 | Finally, don't forget to 'bump' the | 1972 | Finally, don't forget to 'bump' the |