[yocto] custom image recipes
João Henrique Freitas
joaohf at gmail.com
Sun Mar 11 09:14:12 PDT 2012
Hello,
I am using Yocto since 1.0 release. I jump 1.1 release and now tracking the
master.
One of my custom recipes (via-image-st.bb) is to make a custom image
(adding some files). Example:
SRC_URI = " \
file://interfaces \
file://snmpd.conf \
file://snmp.conf \
file://syslog.conf \
file://ntpd \
file://syslog.lr \
"
inherit core-image
ROOTFS_POSTPROCESS_COMMAND_append = "remove_packaging_data_files ; "
ROOTFS_POSTPROCESS_COMMAND_append = "setup_target_image ; "
setup_target_image() {
mkdir -p ${IMAGE_ROOTFS}/opt/sistema/conf
install -m 0644 ${WORKDIR}/interfaces
${IMAGE_ROOTFS}/etc/network/interfaces
...
}
When I run: bitbake via-image-st:
install: cannot stat
`/mnt/yocto/build/mst_1.2/tmp/work/qemux86-tp-linux/via-image-st-1.0-r1/interfaces':
No such file or directory
NOTE: package via-image-st-1.0-r1: task do_rootfs: Failed
ERROR: Task 8
(/home/joaohf/jhf/tropico/projetos/yocto-1.1tropico/meta-tropico/meta-viast/images/
via-image-st.bb, do_rootfs) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3192 tasks of which 3190 didn't need to be
rerun and 1 failed.
Summary: 1 task failed:
/home/joaohf/jhf/tropico/projetos/yocto-1.1tropico/meta-tropico/meta-viast/images/
via-image-st.bb, do_rootfs
I think this commit
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/meta/classes/image.bbclass?id=6706c7bdd2de6e0e447d90062e74a718a8d31778the
others task doesn't perform.
The main question is: How I can create a recipe to customize some files
inside of the image?
I need to have a recipe like base-files? (recipes-core/base-files/
base-files_3.0.14.bb)
Or other way?
Currently my recipe is based on
http://git.yoctoproject.org/cgit/cgit.cgi/meta-demo/tree/images/demo-image-nas.bb.
I think that demo-image-nas.bb will not work too.
Thanks.
--
-----------------------------------------------------------
João Henrique Freitas - joaohf_at_gmail.com
Campinas-SP-Brasil
BSD051283
LPI 1
http://www.joaohfreitas.eti.br
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20120311/6bf82bf2/attachment.html>
More information about the yocto
mailing list