Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install recursively my directories and files in BitBake recipe

I would like to install/copy all my directories and files recursively from working directory to my target package rootfs on yocto build system. I tried the solution provided by Tobias Bystricky in

How to install directory structure recursively in OpenEmbedded BitBake recipe?

but I faced "No such file or directory" error

I did ,

install -d ${D}${sysconfdir}/xxx/
install -d ${D}${sysconfdir}/xxx/yyy
install -d ${D}${sysconfdir}/xxx/yyy/zzz
install -d ${D}${sysconfdir}/xxx/yyy/zzz/kkk
find ${WORKDIR}/xxx/yyy/zzz/kkk/ -type f -exec 'install -m 0755 "{}" ${D}${sysconfdir}/xxx/yyy/zzz/kkk/' \; 

Error message is ,

find: `install -m 0755 / "Path to working dir" /xxx/yyy/zzz/kkk/test_file.txt / "Path to all packages" / "MyPackage" /image/etc/xxx/yyy/zzz/kkk/': No such file or directory

I checked & confirmed that exact working directory path & Package directory paths are present. please let me know if i am missing any.

please suggest if any other way.

like image 634
vijayaragavalu Avatar asked Oct 11 '16 14:10

vijayaragavalu


People also ask

What are BitBake layers?

The openembedded-core layer provides a utility tool called bitbake-layers, which performs actions associated with layers. It allows you to perform actions including the following: see the list of actual layers taken into account in your configuration. add existing layers to your configuration.

What is BitBake recipe?

BitBake recipes specify how a particular package is built. Recipes consist of the source URL (http, https, ftp, cvs, svn, git, local file system) of the package, dependencies and compile or install options. They also store the metadata for the package in standard variables.


1 Answers

cp -r

is known to leak user information. In the OE repos, the canonical form is

cp -R --no-dereference --preserve=mode,links -v SOURCE DESTINATION

see also corresponding OE patch

like image 199
LetoThe2nd Avatar answered Sep 20 '22 20:09

LetoThe2nd