summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2016-06-05 19:32:28 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2016-07-01 08:23:11 +0200
commit2430cf2a5df480bac29ad7dc827863144cb6683b (patch)
treee0eabe756abab9a3546d4afb847110409263e0fd
parent81b76e20323a48796f3950ede6b710a73ae0863e (diff)
downloadptxdist-2430cf2a5df480bac29ad7dc827863144cb6683b.tar.gz
ptxd_make_world_install_post: create hard links to save space
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--scripts/lib/ptxd_make_world_install.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/ptxd_make_world_install.sh b/scripts/lib/ptxd_make_world_install.sh
index b7d69a6..1dd1dd6 100644
--- a/scripts/lib/ptxd_make_world_install.sh
+++ b/scripts/lib/ptxd_make_world_install.sh
@@ -222,7 +222,7 @@ ptxd_make_world_install_post() {
# create directories first to avoid race contitions with -jeX
find "${pkg_pkg_dir}" -type d -printf "%P\0" | \
xargs -0 -I{} mkdir -p "${pkg_sysroot_dir}/{}" &&
- cp -dpr --remove-destination -- "${pkg_pkg_dir}"/* "${pkg_sysroot_dir}" &&
+ cp -dpr --link --remove-destination -- "${pkg_pkg_dir}"/* "${pkg_sysroot_dir}" &&
# host and cross packages
if [ "${pkg_type}" != "target" ]; then