[yocto] How do I create a recipe for laying down post-build config files?

Jim Rafert jimr at spectralogic.com
Wed Jun 11 08:04:42 PDT 2014


Thanks, Alex.

You have sharp eyes, my friend.  I had been struggling with this one so long, I guess I was not looking for typos.

-Jim-


________________________________
From: Alex J Lennon [ajlennon at dynamicdevices.co.uk]
Sent: Tuesday, June 10, 2014 2:58 AM
To: Jim Rafert
Cc: yocto at yoctoproject.org
Subject: Re: [yocto] How do I create a recipe for laying down post-build config files?


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"<UrlBlockedError.aspx>
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20140611/437107b2/attachment.html>


More information about the yocto mailing list