Hi all,

I have a task to create a bitbake receipt for some web page.These html
pages use dojo package, which contian 1000+ small javascript files.

In my receipt, I have some code as follow.

do_install () {
        mkdir -p ${D}${localstatedir}/www
        cp -R ${S}/dojo ${D}${localstatedir}/www/
...
}
//${localstatedir} is "/var" in gumstix

This receipt only create a ipk file with a lot of empty folder, not one
of html or js file inside.
It looks like that "cp -R" only copy some empty folder in bitbake.

Does anybody know the command to copy directory recursive in a bitbake
receipt?

Thanks,

Joel