summaryrefslogtreecommitdiffstats
path: root/documentation/dev-manual
diff options
context:
space:
mode:
authorRobert P. J. Day <rpjday@crashcourse.ca>2014-08-04 07:59:51 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-08-12 13:50:29 +0100
commit034640585f97327ba163ae773f1b95c0cc2adbd2 (patch)
tree196b79164e58b7ca464ed71561060d7bdf8f0e83 /documentation/dev-manual
parenta1550834e27831593b034442df1445cdb08404d4 (diff)
downloadpoky-034640585f97327ba163ae773f1b95c0cc2adbd2.tar.gz
dev-manaul: Small edits to various examples.
(From yocto-docs rev: 6ef54d31664b097b8ceeb5da1b8c48cdc6f673a3) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/dev-manual')
-rw-r--r--documentation/dev-manual/dev-manual-common-tasks.xml15
1 files changed, 11 insertions, 4 deletions
diff --git a/documentation/dev-manual/dev-manual-common-tasks.xml b/documentation/dev-manual/dev-manual-common-tasks.xml
index 5f8da23611..05d1e95bdf 100644
--- a/documentation/dev-manual/dev-manual-common-tasks.xml
+++ b/documentation/dev-manual/dev-manual-common-tasks.xml
@@ -71,6 +71,7 @@
71 you will see several layers: 71 you will see several layers:
72 <filename>meta</filename>, 72 <filename>meta</filename>,
73 <filename>meta-skeleton</filename>, 73 <filename>meta-skeleton</filename>,
74 <filename>meta-selftest</filename>,
74 <filename>meta-yocto</filename>, and 75 <filename>meta-yocto</filename>, and
75 <filename>meta-yocto-bsp</filename>. 76 <filename>meta-yocto-bsp</filename>.
76 Each of these folders represents a distinct layer. 77 Each of these folders represents a distinct layer.
@@ -151,7 +152,7 @@
151 BBFILE_COLLECTIONS += "yoctobsp" 152 BBFILE_COLLECTIONS += "yoctobsp"
152 BBFILE_PATTERN_yoctobsp = "^${LAYERDIR}/" 153 BBFILE_PATTERN_yoctobsp = "^${LAYERDIR}/"
153 BBFILE_PRIORITY_yoctobsp = "5" 154 BBFILE_PRIORITY_yoctobsp = "5"
154 LAYERVERSION_yoctobsp = "2" 155 LAYERVERSION_yoctobsp = "3"
155 </literallayout></para> 156 </literallayout></para>
156 <para>Here is an explanation of the example: 157 <para>Here is an explanation of the example:
157 <itemizedlist> 158 <itemizedlist>
@@ -193,7 +194,7 @@
193 <filename><ulink url='&YOCTO_DOCS_REF_URL;#var-BBFILE_PRIORITY'>BBFILE_PRIORITY</ulink></filename> 194 <filename><ulink url='&YOCTO_DOCS_REF_URL;#var-BBFILE_PRIORITY'>BBFILE_PRIORITY</ulink></filename>
194 variable then assigns a priority to the layer. 195 variable then assigns a priority to the layer.
195 Applying priorities is useful in situations 196 Applying priorities is useful in situations
196 where the same package might appear in multiple 197 where the same recipe might appear in multiple
197 layers and allows you to choose the layer 198 layers and allows you to choose the layer
198 that takes precedence.</para></listitem> 199 that takes precedence.</para></listitem>
199 <listitem><para>The 200 <listitem><para>The
@@ -347,6 +348,12 @@
347 DEPENDS_append_one = " foo" 348 DEPENDS_append_one = " foo"
348 DEPENDS_prepend_one = "foo " 349 DEPENDS_prepend_one = "foo "
349 </literallayout> 350 </literallayout>
351 As an actual example, here's a line from the recipe for
352 the OProfile profiler, which lists an extra build-time
353 dependency when building specifically for 64-bit PowerPC:
354 <literallayout class='monospaced'>
355 DEPENDS_append_powerpc64 = " libpfm4"
356 </literallayout>
350 <note> 357 <note>
351 Avoiding "+=" and "=+" and using 358 Avoiding "+=" and "=+" and using
352 machine-specific 359 machine-specific
@@ -534,7 +541,7 @@
534 LICENSE = "MIT" 541 LICENSE = "MIT"
535 LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \ 542 LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \
536 file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" 543 file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
537 PR = "r44" 544 PR = "r45"
538 545
539 SRC_URI = "file://config file://machconfig" 546 SRC_URI = "file://config file://machconfig"
540 S = "${WORKDIR}" 547 S = "${WORKDIR}"
@@ -543,7 +550,7 @@
543 INHIBIT_DEFAULT_DEPS = "1" 550 INHIBIT_DEFAULT_DEPS = "1"
544 551
545 do_install() { 552 do_install() {
546 # Only install file if it has a contents 553 # Install file only if it has contents
547 install -d ${D}${sysconfdir}/formfactor/ 554 install -d ${D}${sysconfdir}/formfactor/
548 install -m 0644 ${S}/config ${D}${sysconfdir}/formfactor/ 555 install -m 0644 ${S}/config ${D}${sysconfdir}/formfactor/
549 if [ -s "${S}/machconfig" ]; then 556 if [ -s "${S}/machconfig" ]; then