From: Robert Yang <liezhi.yang@windriver.com>
To: Himanshu Pandey <pandey_himanshu80@rediffmail.com>,
"openembedded-core@lists.openembedded.org"
<openembedded-core@lists.openembedded.org>
Subject: Re: [bitbake-devel] Hi
Date: Wed, 25 Jun 2014 17:40:45 +0800 [thread overview]
Message-ID: <53AA991D.5000505@windriver.com> (raw)
In-Reply-To: <1403356395.S.2910.26443.H.TlJvYmVydCBZYW5nAFJlOiBbYml0YmFrZS1kZXZlbF0gSGk_.RU.rfs303, rfs303, 637, 244.f4-235-248.old.replied.1403688235.2532@webmail.rediffmail.com>
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@windriver.com>
> Sent: Sat, 21 Jun 2014 18:43:15
> To: Himanshu Pandey <pandey_himanshu80@rediffmail.com>, Patches and discussions
> about the oe-core layer <openembedded-core@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>
>
next prev parent reply other threads:[~2014-06-25 9:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-25 9:23 [bitbake-devel] Hi Himanshu Pandey
2014-06-25 9:40 ` Robert Yang [this message]
-- strict thread matches above, loose matches on Subject: below --
2016-03-10 7:10 Hi Praveenreddy Padamati
2016-03-11 3:22 ` Hi Robert Yang
2016-03-11 13:05 ` Hi Praveenreddy Padamati
2016-03-14 6:59 ` [bitbake-devel] Hi Robert Yang
2014-06-25 7:10 Himanshu Pandey
2014-06-21 12:26 Hi Himanshu Pandey
2014-06-21 13:13 ` [bitbake-devel] Hi Robert Yang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53AA991D.5000505@windriver.com \
--to=liezhi.yang@windriver.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=pandey_himanshu80@rediffmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.