[yocto] do_install fails to do a package for custom directory

Bipnesh, Abhinav (Abhinav) abhinavbipnesh at avaya.com
Sun Feb 8 06:12:56 PST 2015


Basically When I use install -d ${D}/system/hello the files were not getting part of it. But as you suggested putting it in FILES_${PN} =+ "/system" works.

Where I can find a tutorial for such custom recipe and not the hello world which they put in ${bindir}

-Abhinav

-----Original Message-----
From: yocto-bounces at yoctoproject.org [mailto:yocto-bounces at yoctoproject.org] On Behalf Of Gary Thomas
Sent: Sunday, February 08, 2015 19:30
To: yocto at yoctoproject.org
Subject: Re: [yocto] do_install fails to do a package for custom directory

On 2015-02-08 06:25, Bipnesh, Abhinav (Abhinav) 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.

What do you mean that it doesn't work?

Most likely is that the directory /system and it's contents are not being packaged.  Try adding this line
   FILES_${PN} += "/system"

--
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
--
_______________________________________________
yocto mailing list
yocto at yoctoproject.org
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.yoctoproject.org_listinfo_yocto&d=AwIF-g&c=BFpWQw8bsuKpl1SgiZH64Q&r=geJ1wB7xRIMmteYB2Fo8esL32BOWvwP1HmY0YuLEB4E&m=ikVlWYEbDzcQy52fiUGaZTJLBE1jhjyDKMljDYnHXbo&s=GyH-GO4B3CEB3mOtSoyqyVzk8_r8Dt6Fd6328A0kUJc&e= 



More information about the yocto mailing list