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 <[email protected]> --- scripts/lib/ptxd_make_world_common.sh | 15 +++++++++++++++ 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 390fcd3..f9e86f2 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}" -- 1.7.5.3 -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- ptxdist mailing list [email protected]
