summaryrefslogtreecommitdiffstats
path: root/scripts/lib/ptxd_make_world_install.sh
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2010-04-01 22:38:03 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2010-04-07 10:25:57 +0200
commitd388a15f713c8d5a5bbe852dde089cf63168ef7e (patch)
tree622fe8e77d2cd922a9dee52cfdcc8127cfefd884 /scripts/lib/ptxd_make_world_install.sh
parent5130ad248d1c15e80646c0f7f0c5225e88e78859 (diff)
downloadptxdist-d388a15f713c8d5a5bbe852dde089cf63168ef7e.tar.gz
ptxdist-d388a15f713c8d5a5bbe852dde089cf63168ef7e.tar.xz
[install] cleanup ptxd_make_world_install_target
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts/lib/ptxd_make_world_install.sh')
-rw-r--r--scripts/lib/ptxd_make_world_install.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/scripts/lib/ptxd_make_world_install.sh b/scripts/lib/ptxd_make_world_install.sh
index 8b1a74e78..19bfa2833 100644
--- a/scripts/lib/ptxd_make_world_install.sh
+++ b/scripts/lib/ptxd_make_world_install.sh
@@ -57,6 +57,11 @@ ptxd_make_world_install_target() {
return
fi &&
+ # make pkgconfig's pc files relocatable
+ find "${pkg_pkg_dir}" -name "*.pc" -print0 | \
+ xargs -r -0 gawk -f "${PTXDIST_LIB_DIR}/ptxd_make_world_install_mangle_pc.awk" &&
+ check_pipe_status &&
+
# prefix paths in la files with sysroot
find "${pkg_pkg_dir}" -name "*.la" -print0 | xargs -r -0 -- \
sed -i \
@@ -64,15 +69,10 @@ ptxd_make_world_install_target() {
-e "/^libdir=/s:\(libdir='\)\(/lib\|/usr/lib\):\1${pkg_sysroot_dir}\2:g" &&
check_pipe_status &&
- # make pkgconfig's pc files relocatable
- find "${pkg_pkg_dir}" -name "*.pc" -print0 | \
- xargs -r -0 gawk -f "${PTXDIST_LIB_DIR}/ptxd_make_world_install_mangle_pc.awk" &&
- check_pipe_status &&
-
- cp -dprf -- "${pkg_pkg_dir}"/* "${pkg_sysroot_dir}"
+ cp -dprf -- "${pkg_pkg_dir}"/* "${pkg_sysroot_dir}" &&
# copy *-config into sysroot_cross
- local config
+ local config &&
for config in $(find "${pkg_pkg_dir}" -name "${pkg_binconfig_glob}"); do
cp -PR -- "${config}" "${PTXDIST_SYSROOT_CROSS}/bin" || return
done