Hi, You can refer any of the existing recipe. For eg, http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-connectivity/dhcp/dhcp.inc
You can see how post scripts are used. //Gaurang Shastri On Sun, Feb 8, 2015 at 8:25 PM, Bipnesh, Abhinav (Abhinav) < [email protected]> wrote: > Hi All, > > > > One more thing how to have %pre and %post defined in the recipe file. As I > am not able to find the directive which can do the jobs. As I need to stop > an service and the post upgrade need to start the service. > > > > Thanks, > > Abhinav > > > > *From:* Gaurang Shastri [mailto:[email protected]] > *Sent:* Sunday, February 08, 2015 19:45 > *To:* Bipnesh, Abhinav (Abhinav) > *Cc:* [email protected] > *Subject:* Re: [yocto] do_install fails to do a package for custom > directory > > > > Hi, > > I think may be you missed, > > FILES_${PN} += "/system" > > then you can see your binary inside ${PN} package. > > //Gaurang Shastri > > > > On Sun, Feb 8, 2015 at 6:55 PM, Bipnesh, Abhinav (Abhinav) < > [email protected]> wrote: > > Hi All, > > > > I am trying to write a custom recipe for my make based project. So I am > able to compile the project and generate the binary. Now when I am trying > to package using do_install() I am not able to put the package in custom > directory. > > So when I use *${D}${bindir} *it work perfectly fine and the package has > those binary. But when I tried with *${D}/system/hello * it didn’t works. > Below is the snapshot of the do_install () > > > > do_install () { > > cd ${WORKDIR} > > > > # init script > > install -d ${D}${sysconfdir}/init.d > > install -d ${D}${sysconfdir}/sysconfig > > install -m 755 ${WORKDIR}/test/test ${D}${sysconfdir}/init.d/test > > install -m 644 ${WORKDIR}/test/test ${D}${sysconfdir}/sysconfig/test > > # executable > > install -d ${D}/system/hello > > #install -d ${D}${bindir} > > #install -m 755 ${S}/helloworl/hello ${D}${bindir}/hello ç it works > > install -m 755 ${S}/helloworld/hello ${D}/system/hello/hello ç it > doesn’t work > > } > > > > So any thoughts how to fix this issue. > > > > Thanks, > > Abhinav > > > -- > _______________________________________________ > yocto mailing list > [email protected] > https://lists.yoctoproject.org/listinfo/yocto > <https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.yoctoproject.org_listinfo_yocto&d=AwMFaQ&c=BFpWQw8bsuKpl1SgiZH64Q&r=geJ1wB7xRIMmteYB2Fo8esL32BOWvwP1HmY0YuLEB4E&m=Iy9SmZSRA8a3TpWZ-PhWHrxbIxIS8nnOD7uMXs2GqMs&s=AZ_qNS0XO5MtD7frytoys-HR6ATQyQYHDItvpD5OjZI&e=> > > >
-- _______________________________________________ yocto mailing list [email protected] https://lists.yoctoproject.org/listinfo/yocto
