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

Bipnesh, Abhinav (Abhinav) abhinavbipnesh at avaya.com
Sun Feb 8 05:25:48 PST 2015


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20150208/badb7e5f/attachment.html>


More information about the yocto mailing list