summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2011-11-13 13:43:50 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2011-11-23 11:20:39 +0100
commitb4ac8de1cfa29f1882c6bfee4b0f2b394e31daf2 (patch)
tree3edc7fed017e9442c3530c0ceaaa8fadb3db5a37 /scripts
parent04e85e7f81378ef64976e764e768e2aeb627b4d3 (diff)
downloadptxdist-b4ac8de1cfa29f1882c6bfee4b0f2b394e31daf2.tar.gz
ptxdist-b4ac8de1cfa29f1882c6bfee4b0f2b394e31daf2.tar.xz
add install_alternative_tree command for targetinstall
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/ptxd_make_xpkg_pkg.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/lib/ptxd_make_xpkg_pkg.sh b/scripts/lib/ptxd_make_xpkg_pkg.sh
index 38225357e..89d631974 100644
--- a/scripts/lib/ptxd_make_xpkg_pkg.sh
+++ b/scripts/lib/ptxd_make_xpkg_pkg.sh
@@ -463,6 +463,16 @@ ptxd_install_tree() {
}
export -f ptxd_install_tree
+ptxd_install_alternative_tree() {
+ local cmd="alternative"
+ local src="${1}"
+ local dst="${2}"
+ shift 2
+ ptxd_install_find "${src}" "${dst:-${src}}" "$@" ||
+ ptxd_install_error "install_alternative_tree failed!"
+}
+export -f ptxd_install_alternative_tree
+
ptxd_install_archive() {
local archive="$1"
shift