From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id B839AE00BBA; Tue, 10 Jun 2014 02:00:06 -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=0.0 required=5.0 tests=HTML_MESSAGE autolearn=ham version=3.3.1 X-Spam-HAM-Report: * 0.0 HTML_MESSAGE BODY: HTML included in message Received: from www.dynamicdevices.co.uk (www.dynamicdevices.co.uk [89.200.136.37]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 53574E00B0B for ; Tue, 10 Jun 2014 01:59:55 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by www.dynamicdevices.co.uk (Postfix) with ESMTP id 69D9D27E036; Tue, 10 Jun 2014 08:59:53 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at lennoab2.miniserver.com Received: from www.dynamicdevices.co.uk ([127.0.0.1]) by localhost (www.dynamicdevices.co.uk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3ut6AQxpBdy0; Tue, 10 Jun 2014 08:58:51 +0000 (UTC) Received: from [127.0.0.1] (cpc32-live22-2-0-cust59.17-2.cable.virginm.net [82.36.253.60]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by www.dynamicdevices.co.uk (Postfix) with ESMTPSA id 2462A27E02F; Tue, 10 Jun 2014 08:58:51 +0000 (UTC) Message-ID: <5396C8C8.4060303@dynamicdevices.co.uk> Date: Tue, 10 Jun 2014 09:58:48 +0100 From: Alex J Lennon User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: Jim Rafert References: <86196249137E0843B2E0673D4F731E0CAB521799@reactor.sldomain.com> In-Reply-To: <86196249137E0843B2E0673D4F731E0CAB521799@reactor.sldomain.com> X-Enigmail-Version: 1.6 Cc: "yocto@yoctoproject.org" Subject: Re: How do I create a recipe for laying down post-build config files? 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: Tue, 10 Jun 2014 09:00:06 -0000 Content-Type: multipart/alternative; boundary="------------040601000204000009000703" --------------040601000204000009000703 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On 09/06/2014 22:44, Jim Rafert wrote: > I'm trying to gather all my post-build tweaks into a recipe that will > be built as part of an upper-level layer, so that they are installed > after the meta layer is processed. Many of these could be > accomplished as part of .bbappend files for the recipes that > originally supply the config files, but I wanted to gather all my > customizations in one spot, so that they're easy to find. > > The recipe doesn't actually build anything, so there's no do_build task. > > This is surely something that is commonly wanted. > > Here's my current recipe, in spectra-postbuild_0.1.bb. > > When I try to build an image, the build fails with > ERROR: QA Issue: spectra-postbuild: Files/directories were installed > but not shipped > /RELEASE-NOTES.txt > > When I disable the installed-vs-shipped QA test, it fails later when > it can't find a package file. > > I must be missing something critical here? > SUMMARY = "Post processing of configuration files for SpectraOS" > SECTION = "base" > LICENSE = "GPLv2" > LIC_FILES_CHKSUM = > "file://${WORKDIR}/COPYRIGHT;md5=349c872e0066155e1818b786938876a4" > RDEPENDS_${PN} = "initscripts" > PR = "r0" > > SRC_URI = "file://inittab \ > file://fstab \ > file://rsyslog.conf \ > file://grub.cfg \ > file://mount.sh \ > file://RELEASE-NOTES.txt \ FILES_${PN} = "/RELEASE_NOTES.txt /Spectra-OS-Version " RELEASE-NOTES vs RELEASE_NOTES Cheers, Alex --------------040601000204000009000703 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
On 09/06/2014 22:44, Jim Rafert wrote:
I'm trying to gather all my post-build tweaks into a recipe that will be built as part of an upper-level layer, so that they are installed after the meta layer is processed.  Many of these could be accomplished as part of .bbappend files for the recipes that originally supply the config files, but I wanted to gather all my customizations in one spot, so that they're easy to find.

The recipe doesn't actually build anything, so there's no do_build task.

This is surely something that is commonly wanted.

Here's my current recipe, in spectra-postbuild_0.1.bb.

When I try to build an image, the build fails with
ERROR: QA Issue: spectra-postbuild: Files/directories were installed but not shipped
  /RELEASE-NOTES.txt

When I disable the installed-vs-shipped QA test,  it fails later when it can't find a package file.

I must be missing something critical here?
SUMMARY = "Post processing of configuration files for SpectraOS"
SECTION = "base"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://${WORKDIR}/COPYRIGHT;md5=349c872e0066155e1818b786938876a4"
RDEPENDS_${PN} = "initscripts"
PR = "r0"

SRC_URI = "file://inittab \
       file://fstab \
       file://rsyslog.conf \
       file://grub.cfg \
       file://mount.sh \
       file://RELEASE-NOTES.txt \

FILES_${PN} =  "/RELEASE_NOTES.txt /Spectra-OS-Version "

RELEASE-NOTES vs RELEASE_NOTES

Cheers,

Alex --------------040601000204000009000703--