* Installing a directory tree of files into the target filesystem
@ 2014-07-09 11:49 Joe Nicholson
2014-07-09 13:56 ` Adam Hughes
0 siblings, 1 reply; 3+ messages in thread
From: Joe Nicholson @ 2014-07-09 11:49 UTC (permalink / raw)
To: yocto
[-- Attachment #1: Type: text/plain, Size: 533 bytes --]
Hi Guys
First post on here :-)
I'd like to create a recipe that copies a whole directory tree of files
into a directory on the output filesystem. There's nothing to build
here... it's just a web application with html files, image files, .js
files, etc.
What would be the best way of doing this?
I can see that a small number of files and directories are installed
individually using 'install' and 'install -d', is there an equivalent
that just copies a whole tree of files into place?
Cheers!
Joe
[-- Attachment #2: Type: text/html, Size: 916 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Installing a directory tree of files into the target filesystem
2014-07-09 11:49 Installing a directory tree of files into the target filesystem Joe Nicholson
@ 2014-07-09 13:56 ` Adam Hughes
2014-07-09 15:19 ` Joe Nicholson
0 siblings, 1 reply; 3+ messages in thread
From: Adam Hughes @ 2014-07-09 13:56 UTC (permalink / raw)
To: joe, yocto
Hi Joe,
> First post on here :-)
My first post too.
> I'd like to create a recipe that copies a whole directory tree
> of files into a directory on the output filesystem.
I faced the same problem, and resorted to "cp -r" (after making sure the directory was there using "install -d"). In my case, I didn't need to mess with permissions so I didn't need to full power of install.
See http://superuser.com/questions/229883/how-is-install-c-different-from-cp for a bit more chapter and verse.
Cheers,
Adam
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Installing a directory tree of files into the target filesystem
2014-07-09 13:56 ` Adam Hughes
@ 2014-07-09 15:19 ` Joe Nicholson
0 siblings, 0 replies; 3+ messages in thread
From: Joe Nicholson @ 2014-07-09 15:19 UTC (permalink / raw)
To: Adam Hughes; +Cc: yocto
[-- Attachment #1: Type: text/plain, Size: 976 bytes --]
Thanks Adam.
I don't have any major permissions issues either, so will definitely try
that. I assume I could just explicitly set the permissions on the target
directory as a later step in do_install if needed.
Thanks also for the link.
Cheers!
Joe
On 2014-07-09 14:56, Adam Hughes wrote:
> Hi Joe,
>
>> First post on here :-)
>
> My first post too.
>
>> I'd like to create a recipe that copies a whole directory tree of files into a directory on the output filesystem.
>
> I faced the same problem, and resorted to "cp -r" (after making sure the directory was there using "install -d"). In my case, I didn't need to mess with permissions so I didn't need to full power of install.
>
> See http://superuser.com/questions/229883/how-is-install-c-different-from-cp [1] for a bit more chapter and verse.
>
> Cheers,
>
> Adam
Links:
------
[1]
http://superuser.com/questions/229883/how-is-install-c-different-from-cp
[-- Attachment #2: Type: text/html, Size: 1566 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-07-09 15:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-09 11:49 Installing a directory tree of files into the target filesystem Joe Nicholson
2014-07-09 13:56 ` Adam Hughes
2014-07-09 15:19 ` Joe Nicholson
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.