diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2011-03-17 08:57:55 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2011-03-28 10:19:19 +0200 |
commit | e449e28d4edfbf0ebc1fe9bfbbf0fa93e134e1c2 (patch) | |
tree | cbae8ac79f096ea1474f45f605c26ea4dcdab7a9 /scripts/libptxdist.sh | |
parent | 85be3bf0382d8734327757f034559628721bcb52 (diff) | |
download | ptxdist-e449e28d4edfbf0ebc1fe9bfbbf0fa93e134e1c2.tar.gz ptxdist-e449e28d4edfbf0ebc1fe9bfbbf0fa93e134e1c2.tar.xz |
libptxdist: load scripts/lib/ptxd_make_* scripts from the BSP
this makes it possible to overwrite stuff exported during ptxd_make
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts/libptxdist.sh')
-rw-r--r-- | scripts/libptxdist.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/libptxdist.sh b/scripts/libptxdist.sh index 8a379f134..3e1658d4a 100644 --- a/scripts/libptxdist.sh +++ b/scripts/libptxdist.sh @@ -337,8 +337,12 @@ export -f ptxd_kconfig # ("scripts/lib/ptxd_make_"*.sh) # ptxd_make() { - for lib in "${SCRIPTSDIR}/lib/ptxd_make_"*.sh; do - source "${lib}" || ptxd_bailout "failed to source lib: ${lib}" + local lib i + ptxd_in_path PTXDIST_PATH_SCRIPTS || return + for ((i=$((${#ptxd_reply[@]}-1)); i>=0; i--)) do + for lib in "${ptxd_reply[${i}]}/lib/ptxd_make_"*.sh; do + source "${lib}" || ptxd_bailout "failed to source lib: ${lib}" + done done ${PTX_NICE:+nice -n ${PTX_NICE}} "${PTXCONF_SETUP_HOST_MAKE}" \ "${PTX_MAKE_ARGS[@]}" "${PTXDIST_PARALLELMFLAGS_EXTERN}" \ |