* Installing files in the /home/xxx directory
@ 2013-10-17 21:25 Ulf Samuelsson
2013-10-21 20:08 ` Ulf Samuelsson
0 siblings, 1 reply; 2+ messages in thread
From: Ulf Samuelsson @ 2013-10-17 21:25 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
Would like to install some files in under the "/home" directory.
A simplfied recipe looks like this:
do_install () {
install -d ${D}/${base_dir}/home/root
install -m 0644 ${S}/my.conf ${D}/${base_dir}/home/root/my.conf
}
FILES_mypackage = "${base_dir}/home/root/* "
Have extended bitbake.conf
-----------------------------------------------------------------------------------------------------------------
+export base_dir = "${base_prefix}"
+export home_dir = "${base_prefix}/home"
-----------------------------------------------------------------------------------------------------------------
Still I get:
-----------------------------------------------------------------------------------------------------------------
WARNING: QA Issue: nodeserver: Files/directories were installed but not
shipped
/home
/home/root
-----------------------------------------------------------------------------------------------------------------
What is wrong in above?
Any ideas on how to get files into "/home/xxx" ?
--
Best Regards
Ulf Samuelsson
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: Installing files in the /home/xxx directory
2013-10-17 21:25 Installing files in the /home/xxx directory Ulf Samuelsson
@ 2013-10-21 20:08 ` Ulf Samuelsson
0 siblings, 0 replies; 2+ messages in thread
From: Ulf Samuelsson @ 2013-10-21 20:08 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On 2013-10-17 23:25, Ulf Samuelsson wrote:
> Would like to install some files in under the "/home" directory.
>
> A simplfied recipe looks like this:
>
> do_install () {
> install -d ${D}/${base_dir}/home/root
> install -m 0644 ${S}/my.conf ${D}/${base_dir}/home/root/my.conf
> }
>
> FILES_mypackage = "${base_dir}/home/root/* "
>
> Have extended bitbake.conf
> -----------------------------------------------------------------------------------------------------------------
>
> +export base_dir = "${base_prefix}"
> +export home_dir = "${base_prefix}/home"
> -----------------------------------------------------------------------------------------------------------------
>
>
>
> Still I get:
> -----------------------------------------------------------------------------------------------------------------
>
> WARNING: QA Issue: nodeserver: Files/directories were installed but
> not shipped
> /home
> /home/root
> -----------------------------------------------------------------------------------------------------------------
>
> What is wrong in above?
>
> Any ideas on how to get files into "/home/xxx" ?
>
When everything else fails, try the obvious...
do_install() {
install -d ${D}/home/root
install -m 0644 ${S}/myfile.conf ${D}/home/root/myfile.conf
}
FILES_${PN} += " \
/home/root/* \
"
--
Best Regards
Ulf Samuelsson
eMagii
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-10-21 20:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-17 21:25 Installing files in the /home/xxx directory Ulf Samuelsson
2013-10-21 20:08 ` Ulf Samuelsson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox