Openembedded Core Discussions
 help / color / mirror / Atom feed
* Re: [bitbake-devel] Hi
@ 2014-06-25  9:23 Himanshu  Pandey
  2014-06-25  9:40 ` Robert Yang
  0 siblings, 1 reply; 5+ messages in thread
From: Himanshu  Pandey @ 2014-06-25  9:23 UTC (permalink / raw)
  To: Robert Yang , openembedded-core@lists.openembedded.org

[-- Attachment #1: Type: text/plain, Size: 1956 bytes --]

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>

>

>

>


[-- Attachment #2: Type: text/html, Size: 3813 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <09856974BCEE6F48AB378E52E4CAA73C226DA890@CHN-HCLT-MBS02.HCLT.CORP.HCL.IN>]
* Re: [bitbake-devel] Hi
@ 2014-06-25  7:10 Himanshu  Pandey
  0 siblings, 0 replies; 5+ messages in thread
From: Himanshu  Pandey @ 2014-06-25  7:10 UTC (permalink / raw)
  To: openembedded-core@lists.openembedded.org

[-- Attachment #1: Type: text/plain, Size: 1958 bytes --]

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 &lt;liezhi.yang@windriver.com&gt;
Sent: Sat, 21 Jun 2014 18:43:15 
To: Himanshu Pandey &lt;pandey_himanshu80@rediffmail.com&gt;, Patches and discussions about the oe-core layer &lt;openembedded-core@lists.openembedded.org&gt;
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 () {

&nbsp;&nbsp;&nbsp;&lt;your shell script&gt;

}



Then the script would run after the .tar.bz2 is created.



// Robert



On 06/21/2014 08:26 PM, Himanshu Pandey wrote:

&gt; Hi,

&gt;

&gt; I have a requirement that once the .tar.bz2 is created I want my shell script to

&gt; be executed finally.

&gt;

&gt; So where do I have to add this?

&gt;

&gt; So what I have to do in order to achieve this.

&gt;

&gt; Regards,

&gt; Himanshu Pandey

&gt;

&gt; &lt;http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/signatureline.htm@Middle?&gt;

&gt; Get your own *FREE* website, *FREE* domain &amp; *FREE* mobile app with Company email.

&gt; &nbsp;&nbsp;&nbsp;*Know More &gt;*

&gt; &lt;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___&amp;cmp=host&amp;lnk=sign-1-10-13&amp;nsrv1=host&gt;

&gt;

&gt;

&gt;


[-- Attachment #2: Type: text/html, Size: 3817 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <20140621122616.19509.qmail@f4mail-235-223.rediffmail.com>]

end of thread, other threads:[~2016-03-14  6:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-25  9:23 [bitbake-devel] Hi Himanshu  Pandey
2014-06-25  9:40 ` Robert Yang
     [not found] <09856974BCEE6F48AB378E52E4CAA73C226DA890@CHN-HCLT-MBS02.HCLT.CORP.HCL.IN>
     [not found] ` <56E239E0.7010003@windriver.com>
     [not found]   ` <09856974BCEE6F48AB378E52E4CAA73C226DBD49@CHN-HCLT-MBS02.HCLT.CORP.HCL.IN>
2016-03-14  6:59     ` Robert Yang
  -- strict thread matches above, loose matches on Subject: below --
2014-06-25  7:10 Himanshu  Pandey
     [not found] <20140621122616.19509.qmail@f4mail-235-223.rediffmail.com>
2014-06-21 13:13 ` Robert Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox