[yocto] The problem of do_rootfs_append

Neil.Wu at Emerson.com Neil.Wu at Emerson.com
Thu Jan 22 00:31:15 PST 2015


Hi, nico
Thank you for your reply.
But I found that there are others use do_rootfs_append() when searching on the Internet.
If I want to remove the directory in do_rootfs() task, how can I to do it ?

Tanks 
Neil

-----Original Message-----
From: Nicolas Dechesne [mailto:nicolas.dechesne at linaro.org] 
Sent: Thursday, January 22, 2015 4:20 PM
To: Wu, Neil [CLIMATE/RS/CN]
Cc: Yocto list discussion
Subject: Re: [yocto] The problem of do_rootfs_append

On Thu, Jan 22, 2015 at 9:13 AM,  <Neil.Wu at 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


More information about the yocto mailing list