Re: [meta-rauc] Source of RAUC in build directory

2019-09-18 Thread Enrico Joerns

On 9/18/19 11:02 AM, Ahmad Fatoum wrote:

Hello Reyhaneh,

On 9/18/19 10:25 AM, Yazdani, Reyhaneh wrote:

Hello everyone,

I am working to use RAUC in our system as updating framework. I am using
meta-rauc layer in yocto and everything works correctly.

The point is, now I want to do some changes in Rauc and I cannot find any source
of it in my build directory! It is only the compiled files.


Do you have RM_WORK enabled by chance?
That would clean up the directory when it's no longer needed.

There's also a devtool program that comes with bitbake that's quite useful for
such things.


Oh, you were faster than me :D

Enrico

--
Pengutronix e.K.   | Enrico Jörns|
Industrial Linux Solutions | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-5080 |
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |


___
meta-rauc mailing list


Re: [meta-rauc] Source of RAUC in build directory

2019-09-18 Thread Enrico Joerns

Hi Reyhaneh,

On 9/18/19 10:25 AM, Yazdani, Reyhaneh wrote:

Hello everyone,

I am working to use RAUC in our system as updating framework. I am using
meta-rauc layer in yocto and everything works correctly.

The point is, now I want to do some changes in Rauc and I cannot find any source
of it in my build directory! It is only the compiled files.

It is strange, although in all RAUC-recipes, SRC_URI is set to the github, it
means I should see the downloaded source in my build directory.

does anyone have an idea? How can I apply my patch to the RAUC?


by default you should find the source in the work directory which is something 
like

  tmp/work//rauc/1.1-r0/rauc-1.1/

However, the sources won't be present if you build with having rm_work[1] 
enabled.

The simplest way to modify rauc out of Yocto is to use the 'devtool' [2]

  devtool modify rauc

which will create a 'workspace' layer and unpack the sources, etc. there.
You can also automatically create patches from this or deploy the updated tool 
to the target via ssh.



Best regards

Enrico


Note: To receive updates from this mailing list and to send mails without ending 
up in the moderation queue, consider subscribing [3] to it.



[1] 
https://www.yoctoproject.org/docs/latest/ref-manual/ref-manual.html#ref-classes-rm-work
[2] 
https://www.yoctoproject.org/docs/latest/ref-manual/ref-manual.html#ref-devtool-reference

[3] mailto:rauc-requ...@pengutronix.de?subject=subscribe

--
Pengutronix e.K.   | Enrico Jörns|
Industrial Linux Solutions | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-5080 |
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |


___
meta-rauc mailing list