On Mon, Feb 25, 2019 at 5:09 AM Burton, Ross <ross.bur...@intel.com> wrote:

> On Mon, 25 Feb 2019 at 00:45, chaitanya cherukuri
> <ccvk.chaita...@gmail.com> wrote:
> > Thank you for the clarification.
> > In do_install(), I used rpm2cpio.sh to extract the rpm and then copied
> the rpm contents in the right place.
> >         $rpm2cpio.sh *.rpm | cpio -idmv
> > I hope this is the right way to handle RPM packages.
>
> Put the RPM in SRC_URI and bitbake will unpack it for you.
> Thank you this was helpful..
> > RPM has a post-installation script that I need to handle. This script
> executes after the installation of RPM. Could I know what is the efficient
> way to run the script?
>
> Easiest way is to just copy what it does into the recipe.  Assuming
> that a postinst script for Fedora will work on your Yocto distribution
> is a risky move, just like you wouldn't expect the script to run
> without errors on Debian.
> If I understand correctly, you want to me copy what script is doing in
> do_install(). I was thinking to  add the script has startup to a YOCTO
> Image, so that I don't need to copy anything manually and let the script to
> its job. This is how I am doing it in do_install()

         install -m 0755 ${S}/startup-script ${D}${sysconfdir}/init.d/
ln -sf ../init.d/startup-script ${D}${sysconfdir}/rcS.d/S90startup-script

> I don't know if there are any downfall by doing this way. If I add this
> script as startup script does this get executed on device reset?

Ross
>

Chaitanya

-- 
--
Chaitanya
-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to