UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
378 Views
Registered: ‎01-27-2019

Cross compiling logrotate for armv7/arm-linux-gnueabihf

Jump to solution

How to cross compile logrotate utility for armv7/arm-linux-gnueabihf after downloading repo from https://github.com/logrotate/logrotate.git and enable it in petalinux.

0 Kudos
1 Solution

Accepted Solutions
Moderator
Moderator
339 Views
Registered: ‎02-07-2018

Re: Cross compiling logrotate for armv7/arm-linux-gnueabihf

Jump to solution

HI srikanth.a.v@atonarp.com 

Please follow below steps to include this utility as apart of your rootfs:

vim project-spec/meta-user/recipes-core/images/petalinux-image.bbappend

add below line
IMAGE_INSTALL_append = " logrotate"

petalinux-config -c rootfs
user packages --> [*] logrotate

petalinux-build

 

For your info, you can find the recipe at this location:

/petalinux-v2018.2-final/components/yocto/source/arm/layers/core/meta/recipes-extended/logrotate/logrotate_3.12.3.bb

You no need to seperatly crosscompile it, if you follow the above steps, petalinux  will crosscompile this add into the rootfs.

 

Thanks & regards

Aravind

----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.
Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------

View solution in original post

4 Replies
Moderator
Moderator
340 Views
Registered: ‎02-07-2018

Re: Cross compiling logrotate for armv7/arm-linux-gnueabihf

Jump to solution

HI srikanth.a.v@atonarp.com 

Please follow below steps to include this utility as apart of your rootfs:

vim project-spec/meta-user/recipes-core/images/petalinux-image.bbappend

add below line
IMAGE_INSTALL_append = " logrotate"

petalinux-config -c rootfs
user packages --> [*] logrotate

petalinux-build

 

For your info, you can find the recipe at this location:

/petalinux-v2018.2-final/components/yocto/source/arm/layers/core/meta/recipes-extended/logrotate/logrotate_3.12.3.bb

You no need to seperatly crosscompile it, if you follow the above steps, petalinux  will crosscompile this add into the rootfs.

 

Thanks & regards

Aravind

----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.
Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------

View solution in original post

319 Views
Registered: ‎01-27-2019

Re: Cross compiling logrotate for armv7/arm-linux-gnueabihf

Jump to solution

Thanks its working.

Same way we can use this for cronie utility?

0 Kudos
Moderator
Moderator
298 Views
Registered: ‎02-07-2018

Re: Cross compiling logrotate for armv7/arm-linux-gnueabihf

Jump to solution

Hi srikanth.a.v@atonarp.com 

Yes, you can follow same steps.

 

For your reference steps mentioned  below:

vim project-spec/meta-user/recipes-core/images/petalinux-image.bbappend

add below line
IMAGE_INSTALL_append = " cronie "

petalinux-config -c rootfs
user packages --> [*] cronie 

petalinux-build

 

Thanks & regards

Aravind

 ----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.
Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------

 

 

292 Views
Registered: ‎01-27-2019

Re: Cross compiling logrotate for armv7/arm-linux-gnueabihf

Jump to solution

Thanks its worked.

0 Kudos