[poky] Augmenting base files
Gary Thomas
gary at mlbassoc.com
Wed Aug 3 04:55:20 PDT 2011
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
------------------------------------------------------------
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: base-files_3.0.14.bbappend
URL: <http://lists.yoctoproject.org/pipermail/poky/attachments/20110803/53697dd6/attachment.ksh>
More information about the poky
mailing list