[OE-core] Installing files in the /home/xxx directory

Ulf Samuelsson openembedded-core at emagii.com
Mon Oct 21 20:08:03 UTC 2013


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




More information about the Openembedded-core mailing list