On Thu, Jan 22, 2015 at 9:13 AM,  <neil...@emerson.com> wrote:
> Hi, all
> I'm building specific rootfs image. Add the do_rootfs_append() task  in 
> core-image-specific.bb,
> core-image-specific.bb:
>
> SUMMARY = "creaet the customer rootfs"
> require ${TOPDIR}/../meta/recipes-core/images/core-image-minimal.bb
> IMAGE_INSTALL = "readline-dev linux-libc-headers-dev json-glib busybox-udhcpc 
> "
> do_rootfs_append() {
>         cp -rf ${IMAGE_ROOTFS}/data/etc/ ${IMAGE_ROOTFS}/etc/
>         rm -rf ${IMAGE_ROOTFS}/data/etc/
> }
>
> It always meet the error as follows:
> ERROR: ExpansionError during parsing 
> /home/ectrs/poky/meta-emerson-ecosys/recipes-core/images/core-image-ecosys.bb:
>  Failure expanding variable do_rootfs: IndentationError: unexpected indent 
> (<string>, line 14)
>
> I'm pleasant receive your reply. If you know how to solve it , please help me 
> .
> Thank you very much.

do_rootfs() in a Python function, not Shell in image.bbclass, so while
I have never tried that specifically, i guess you cannot append a
Shell snipped in that case.

cheers
nico
-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to