I'm currently writing a Yocto recipe. On the do_install function I invoke the install command. But things don't work very well.
The folder that I am trying to install contains several subfolders, and in every folder there is a bunch of files.
I don't want to write hundreds of line like:
install -d "path to target folder"
install "path to source file" "path to target folder"
...
I also used loops. But it always fail on the first subfolder.
edit :
Here is the last one i used :
install -d ${D}/root
install -d ${D}/root/server
install -d ${D}/root/video
install -d ${D}/root/images
install -Dm644 ${S}/server/* "${D}/root/server/"
install -Dm644 ${S}/videos/* "${D}/root/videos/"
install -Dm644 ${S}/images/* "${D}/root/images/"
install ${S}/crash_kernel.sh "${D}/root/""
The error tells me that the command is omitting a directory, then fails. I'm sure this is because of the subfolders, but i can't figure a way to install everything with the install command :/ (btw cp isn't an option in yocto :/)