Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 1CF06E0056A; Fri, 1 Aug 2014 11:11:32 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [208.80.204.84 listed in list.dnswl.org] Received: from smtp484.redcondor.net (smtp484.redcondor.net [208.80.204.84]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id DFDA1E004E0 for ; Fri, 1 Aug 2014 11:11:26 -0700 (PDT) Received: from astoria.ccjclearline.com ([64.235.106.9]) by smtp484.redcondor.net ({c48374e7-08df-40d9-a0de-96cc9883a037}) via TCP (outbound) with ESMTPS id 20140801181123944 for ; Fri, 01 Aug 2014 18:11:23 +0000 X-RC-FROM: X-RC-RCPT: Received: from [99.240.204.5] (port=35811 helo=crashcourse.ca) by astoria.ccjclearline.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.80) (envelope-from ) id 1XDHIT-0002o5-SK for yocto@yoctoproject.org; Fri, 01 Aug 2014 14:11:17 -0400 Date: Fri, 1 Aug 2014 14:11:13 -0400 (EDT) From: "Robert P. J. Day" X-X-Sender: rpjday@localhost To: Yocto discussion list Message-ID: User-Agent: Alpine 2.11 (LFD 23 2013-08-11) MIME-Version: 1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - astoria.ccjclearline.com X-AntiAbuse: Original Domain - yoctoproject.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - crashcourse.ca X-Source: X-Source-Args: X-Source-Dir: X-MAG-OUTBOUND: ccj.redcondor.net@64.235.106.9/32 Subject: [yocto-docs][PATCH] dev-manual: Tweaks for first two sections of chapter 5. X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Aug 2014 18:11:32 -0000 Content-Type: TEXT/PLAIN; charset=US-ASCII Signed-off-by: Robert P. J. Day --- given the length of this chapter, i'm going to do it in bite-size pieces. diff --git a/documentation/dev-manual/dev-manual-common-tasks.xml b/documentation/dev-manual/dev-manual-common-tasks.xml index 5f8da23..05d1e95 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 @@ -347,6 +348,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 machine-specific @@ -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 -- ======================================================================== Robert P. J. Day Ottawa, Ontario, CANADA http://crashcourse.ca Twitter: http://twitter.com/rpjday LinkedIn: http://ca.linkedin.com/in/rpjday ========================================================================