From 034640585f97327ba163ae773f1b95c0cc2adbd2 Mon Sep 17 00:00:00 2001 From: "Robert P. J. Day" Date: Mon, 4 Aug 2014 07:59:51 +0300 Subject: dev-manaul: Small edits to various examples. (From yocto-docs rev: 6ef54d31664b097b8ceeb5da1b8c48cdc6f673a3) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/dev-manual/dev-manual-common-tasks.xml | 15 +++++++++++---- 1 file 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 @@ you will see several layers: meta, meta-skeleton, + meta-selftest, meta-yocto, and meta-yocto-bsp. Each of these folders represents a distinct layer. @@ -151,7 +152,7 @@ BBFILE_COLLECTIONS += "yoctobsp" BBFILE_PATTERN_yoctobsp = "^${LAYERDIR}/" BBFILE_PRIORITY_yoctobsp = "5" - LAYERVERSION_yoctobsp = "2" + LAYERVERSION_yoctobsp = "3" Here is an explanation of the example: @@ -193,7 +194,7 @@ BBFILE_PRIORITY variable then assigns a priority to the layer. Applying priorities is useful in situations - where the same package might appear in multiple + where the same recipe might appear in multiple layers and allows you to choose the layer that takes precedence. The @@ -346,6 +347,12 @@ DEPENDS_append_one = " foo" DEPENDS_prepend_one = "foo " + + As an actual example, here's a line from the recipe for + the OProfile profiler, which lists an extra build-time + dependency when building specifically for 64-bit PowerPC: + + DEPENDS_append_powerpc64 = " libpfm4" Avoiding "+=" and "=+" and using @@ -534,7 +541,7 @@ LICENSE = "MIT" LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \ file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" - PR = "r44" + PR = "r45" SRC_URI = "file://config file://machconfig" S = "${WORKDIR}" @@ -543,7 +550,7 @@ INHIBIT_DEFAULT_DEPS = "1" do_install() { - # Only install file if it has a contents + # Install file only if it has contents install -d ${D}${sysconfdir}/formfactor/ install -m 0644 ${S}/config ${D}${sysconfdir}/formfactor/ if [ -s "${S}/machconfig" ]; then -- cgit 1.2.3-korg