[yocto] setcap using recipe
Kumar, Shrawan
Shrawan.Kumar at harman.com
Sat Jul 2 03:37:56 PDT 2016
Hello Ross,
Post-installation scripts run immediately after installing a package on the target or during image creation when a package is included in an image.
Does it not mean that we can set the file attributes(setcap) during image creation ?
I understand the delayed approach of executing it on the target, but my requirement is to do it on the build host. We do not want “setcap” utility to be present on the target.
Regards
Shrawan
From: Burton, Ross [mailto:ross.burton at intel.com]
Sent: Saturday, July 02, 2016 2:56 PM
To: Kumar, Shrawan
Cc: Daniel.; Mathieu Allard; yocto at yoctoproject.org
Subject: Re: [yocto] setcap using recipe
On 2 July 2016 at 10:22, Kumar, Shrawan <Shrawan.Kumar at harman.com<mailto:Shrawan.Kumar at harman.com>> wrote:
Can someone review the attached recipe and help solve the problem statement ?
As has been said, you need to ensure the postinst is delayed so it runs on the target and not on the build host.
http://www.yoctoproject.org/docs/2.1/dev-manual/dev-manual.html#new-recipe-post-installation-scripts
Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160702/a45d8c20/attachment.html>
More information about the yocto
mailing list