diff options
author | Mark Hatle <mark.hatle@windriver.com> | 2011-02-08 22:16:41 -0600 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2011-02-09 22:46:30 +0000 |
commit | d3d236b2bf2784d7454dcb7fce595b6aac6967cd (patch) | |
tree | 0c8f5f7a6b8ce9e6a3b20650bc2bd8f739d51da9 /meta/classes/staging.bbclass | |
parent | 3e6d91ece0556fa1c9c84bef60678d8148b789f4 (diff) | |
download | ast2050-yocto-poky-d3d236b2bf2784d7454dcb7fce595b6aac6967cd.zip ast2050-yocto-poky-d3d236b2bf2784d7454dcb7fce595b6aac6967cd.tar.gz |
Misc hard link fixes
I searched the various classes and looked for copies that should attempt to
preserve hardlinks. This fixes the majority of this copies by switching to
using tar as the copy method. It also has the side effect of preserving sparse
files.
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Diffstat (limited to 'meta/classes/staging.bbclass')
-rw-r--r-- | meta/classes/staging.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/staging.bbclass b/meta/classes/staging.bbclass index a713734..fef6457 100644 --- a/meta/classes/staging.bbclass +++ b/meta/classes/staging.bbclass @@ -17,7 +17,7 @@ sysroot_stage_dir() { # However we always want to stage a $src itself, even if it's empty mkdir -p "$dest" if [ -d "$src" ]; then - cp -fpPR "$src"/* "$dest" + tar -cf - -C "$src" -ps . | tar -xf - -C "$dest" fi } |