Skip to contentSkip to conversation

Installing files in the /home/xxx directory

DISCUSSION Ulf Samuelsson 1 participant 2 messages Oct 17, 2013 – Oct 21, 2013

lore
Share & tools
lore
#0 lore raw

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" ?

Signature · 2 lines
Best Regards
Ulf Samuelsson
#1 lore raw
Quoted 23 lines · Ulf Samuelsson

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
-----------------------------------------------------------------------------------------------------------------

(quoted diff) +2 -1
+export base_dir = "${base_prefix}"
+export home_dir = "${base_prefix}/home"
----------------------------------------------------------------------------------------------------------------- 

Still I get:
-----------------------------------------------------------------------------------------------------------------

Quoted 9 lines

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/* \
        "
Signature · 3 lines
Best Regards
Ulf Samuelsson
eMagii