summaryrefslogtreecommitdiffstats
path: root/scripts/lib/ptxd_make_world_common.sh
diff options
context:
space:
mode:
authorRobert Schwebel <r.schwebel@pengutronix.de>2011-06-22 17:45:04 +0200
committerRobert Schwebel <r.schwebel@pengutronix.de>2011-07-12 15:31:14 +0200
commit8907381605c1d995ddd0e1ad03b49c1a52c40a52 (patch)
tree09614b829ff3c5a0faa029d3004d9e04be74ed35 /scripts/lib/ptxd_make_world_common.sh
parent4d47fd34a82e51c88c44aae46b1f5a865b256603 (diff)
downloadptxdist-8907381605c1d995ddd0e1ad03b49c1a52c40a52.tar.gz
ptxdist-8907381605c1d995ddd0e1ad03b49c1a52c40a52.tar.xz
ptxdist: make it possible to overwrite packages locally
Add the the possibility to overwrite any package in local_src/<package>.<platform> Just set a link to a directory or a directory there and it is used, without being patched any more and without being cleaned. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
Diffstat (limited to 'scripts/lib/ptxd_make_world_common.sh')
-rw-r--r--scripts/lib/ptxd_make_world_common.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/lib/ptxd_make_world_common.sh b/scripts/lib/ptxd_make_world_common.sh
index 390fcd309..f9e86f2f3 100644
--- a/scripts/lib/ptxd_make_world_common.sh
+++ b/scripts/lib/ptxd_make_world_common.sh
@@ -239,6 +239,21 @@ ptxd_make_world_init() {
unset path_ptr
#
+ # check if we shall use a local work-in-progress tree instead
+ # of the configured URL.
+ #
+ # If a link in local_src/<label>.<platform> exists and points to
+ # a directory, use this instead of the real one.
+ #
+ local wip_sources="${PTXDIST_WORKSPACE}/local_src/${pkg_label}${PTXDIST_PLATFORMSUFFIX}"
+ if [ -d "$(readlink -f "${wip_sources}")" ]; then
+ pkg_url="file://${wip_sources}"
+ unset pkg_src
+ pkg_pkg=${pkg_pkg}-wip # don't apply patches
+ fi
+ unset wip_sources
+
+ #
# extract dir
#
local extract_ptr="ptx_extract_dir_${pkg_type}"