[OE-core] [bitbake-devel] Hi
Robert Yang
liezhi.yang at windriver.com
Wed Jun 25 09:40:45 UTC 2014
I think that you can add this to the image's recipe, or to conf/local.conf:
do_rootfs[postfuncs] += "<your script>"
Or you can add a task:
add task <your task> after do_rootfs before do_build
Please refer insane.bbclass or other classes in meta/classes for more info.
// Robert
On 06/25/2014 05:23 PM, Himanshu Pandey wrote:
> Hi,
>
> Script in this section is appending just after the COMPRESS_CMD_bz2 command
> and the full script is executing as a single command.
>
> I want to run my script separately just after rootfs.tar.bz2 is created.
> Please help.
>
> Thanks in advance
>
> From: Robert Yang <liezhi.yang at windriver.com>
> Sent: Sat, 21 Jun 2014 18:43:15
> To: Himanshu Pandey <pandey_himanshu80 at rediffmail.com>, Patches and discussions
> about the oe-core layer <openembedded-core at lists.openembedded.org>
> Subject: Re: [bitbake-devel] Hi
>
> Hello,
>
> I think that this email should go into oe-core mailing list (see
> the CC). You can refer to:
>
> oe-core/meta/classes/image_types.bbclass:
>
> IMAGE_CMD_tar = "tar -cvf ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.tar -C
> ${IMAGE_ROOTFS} ."
> COMPRESS_CMD_bz2 = "bzip2 -f -k ${IMAGE_NAME}.rootfs.${type}"
>
> I think that you can add something like the following to your recipe:
>
> COMPRESS_CMD_bz2_append () {
> <your shell script>
> }
>
> Then the script would run after the .tar.bz2 is created.
>
> // Robert
>
> On 06/21/2014 08:26 PM, Himanshu Pandey wrote:
> > Hi,
> >
> > I have a requirement that once the .tar.bz2 is created I want my shell script to
> > be executed finally.
> >
> > So where do I have to add this?
> >
> > So what I have to do in order to achieve this.
> >
> > Regards,
> > Himanshu Pandey
> >
> >
> <http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/signatureline.htm@Middle?>
> > Get your own *FREE* website, *FREE* domain & *FREE* mobile app with Company
> email.
> > *Know More >*
> >
> <http://track.rediff.com/click?url=___http://businessemail.rediff.com/email-ids-for-companies-with-less-than-50-employees?sc_cid=sign-1-10-13___&cmp=host&lnk=sign-1-10-13&nsrv1=host>
> >
> >
> >
>
> <http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/signatureline.htm@Middle?>
> Get your own *FREE* website, *FREE* domain & *FREE* mobile app with Company email.
> *Know More >*
> <http://track.rediff.com/click?url=___http://businessemail.rediff.com/email-ids-for-companies-with-less-than-50-employees?sc_cid=sign-1-10-13___&cmp=host&lnk=sign-1-10-13&nsrv1=host>
>
More information about the Openembedded-core
mailing list