All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gary Thomas <gary@mlbassoc.com>
To: Poky Project <poky@yoctoproject.org>
Subject: Augmenting base files
Date: Wed, 03 Aug 2011 05:55:20 -0600	[thread overview]
Message-ID: <4E393728.6040309@mlbassoc.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1863 bytes --]

I'd like to add some additional files to my build.  These are
simple scripts, etc, and it makes sense to include them as part
of the base-files package for my platform.

I tried to use the attached .bbappend file for this.  Sadly, after
the package fetch/unpack/patch, it has virtually nothing in it
and the build fails miserably.
   ERROR: Function 'base-files: LIC_FILES_CHKSUM points to invalid file: licenses/GPL-2' failed

Looking at the work tree:
   $ ls tmp/work/mytarget-mydistro-linux/base-files-3.0.14-r69.1/
   license-destdir  my_script  temp

Without the .bbappend, I see this in the work tree:
   $ ls tmp/work/mytarget-mydistro-linux/base-files-3.0.14-r69
   deploy-ipks  host.conf  issue            licenses       package         profile   share   temp
   filesystems  image      issue.net        motd           packages-split  pseudo    shells  usbd
   fstab        inputrc    license-destdir  nsswitch.conf  pkgdata         rotation  shlibs

Note: I put my script in
   my-layer/packages/misc/base-files-3.0.14/mytarget/my_script

If I replace this line in the .bbappend
   FILESEXTRAPATHS := "${THISDIR}/${PN}-${PV}"
with these (the way I was told to do this when .bbappend first came available):
   THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
   FILESPATH =. "${@base_set_filespath(["${THISDIR}/${PN}-${PV}/${MACHINE}"], d)}:"
then the recipe works.

Obviously, I've done something major to upset things and/or I don't understand
FILESEXTRAPATHS which I think should just add to the current list of places to
satisfy SRC_URI.

Ideas what I've done wrong?

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------

[-- Attachment #2: base-files_3.0.14.bbappend --]
[-- Type: text/plain, Size: 286 bytes --]

#
# Just tell BitBake where to find my component files
#
FILESEXTRAPATHS := "${THISDIR}/${PN}-${PV}"
PR .= ".1"

SRC_URI_mytarget_append = "\
    file://my_script \
"

do_install_mytarget_append () {
    install -m 0755 ${WORKDIR}/my_script ${D}${SYSCONFDIR}/my_script
}


             reply	other threads:[~2011-08-03 11:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-03 11:55 Gary Thomas [this message]
2011-08-03 12:07 ` Augmenting base files Gary Thomas
2011-08-03 15:06   ` Saul Wold
2011-08-03 15:29     ` Gary Thomas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E393728.6040309@mlbassoc.com \
    --to=gary@mlbassoc.com \
    --cc=poky@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.