On 2012-12-06 15:46, Alan DuBoff wrote:
On Thu, 6 Dec 2012, Gary Thomas wrote:
I think your problem stems from confusion about how recipes work. The
build system centers around packaged sources, typically tarballs. These
are then unpacked into the build "tmp" directory where the build will
actually take place. Trying to use your extant directory will not work
(or at least not work the way things are designed)
Ok, thanks for that Gary, I wasn't sure as there was an example I saw online
that showed a file HelloWorld.c file being included in a recipe.
Can you try my rewritten version (attached)? First, you'll need to execute
this step to build the tarball:
% tar -zcf /home/aland/src/FLS.tar.gz -C /home/aland/src FLS
Let me know what happens
This seems to have worked and installed successfully, and I'm building the
image for the beaglebone now.
Is it at all possible to modify and/or change files to be included in the
rootfs, or does everything need to be a recipe and/or package?
As an example, let's say I wanted to modify a config file in /etc/, and while
we don't have one with our app, let's use /etc/fls.conf as an example. Can I
edit and put that
somewhere on the system so that it would be picked up and installed in the
rootfs when the image is built?
As is, such files need to go into recipes. There are some proposals
out which might do what you want, but not today. In your case, you
could add that file in the main recipe, example attached. Just create
a directory metrotech-fls-1.0 in the same directory where your recipe
is and put the fls.conf file there. This will get copied into your
image by the amended recipe.
Remember the purpose of the build system is to take a set of recipes,
along with some configuration files, which then use well known sources
and patches to create packages &/or images. Tossing in arbitrary files
doesn't fit that model.
n.b. the model is great for being able to repeat builds and expect
the result to be operationally the same, even if there is some added
work up front.
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
DESCRIPTION = "Fiber Locator Server for Vivax-Metrotech"
LICENSE = "GPLv3+"
SECTION = "console/network"
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
PR = "r2"
SRC_URI = "file:///home/aland/src/FLS.tar.gz \
file://fls.conf \
"
# DEPENDS = ""
S = "${WORKDIR}/FLS"
do_configure () {
oe_runconf
}
do_install_append () {
install -d -m 0755 ${D}/etc
install -m 0755 fls.conf ${D}/etc
}
inherit autotools
_______________________________________________
Angstrom-distro-devel mailing list
Angstrom-distro-devel@linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel