From: Gary Thomas <gary@mlbassoc.com>
To: yocto@yoctoproject.org
Subject: Re: do_install fails to do a package for custom directory
Date: Sun, 08 Feb 2015 06:59:45 -0700 [thread overview]
Message-ID: <54D76BD1.50408@mlbassoc.com> (raw)
In-Reply-To: <F38A866CD026F746A3BF0928A84397BE3A345186@AZ-FFEXMB01.global.avaya.com>
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
------------------------------------------------------------
next prev parent reply other threads:[~2015-02-08 13:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-08 13:25 do_install fails to do a package for custom directory Bipnesh, Abhinav (Abhinav)
2015-02-08 13:59 ` Gary Thomas [this message]
2015-02-08 14:12 ` Bipnesh, Abhinav (Abhinav)
2015-02-08 14:14 ` Gaurang Shastri
2015-02-08 14:55 ` Bipnesh, Abhinav (Abhinav)
2015-02-09 5:45 ` Gaurang Shastri
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54D76BD1.50408@mlbassoc.com \
--to=gary@mlbassoc.com \
--cc=yocto@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.