1#!/bin/bash -e 2 3TARGET_DIR="$1" 4[ "$TARGET_DIR" ] || exit 1 5 6OVERLAY_DIR="$(dirname "$(realpath "$0")")" 7SDK_DIR="${SDK_DIR:-$(realpath "$OVERLAY_DIR/../../../../..")}" 8 9if [ -x "$TARGET_DIR/usr/bin/weston" ]; then 10 echo "Installing weston overlay: $OVERLAY_DIR to $TARGET_DIR..." 11 rsync -av --chmod=u=rwX,go=rX "$OVERLAY_DIR/" "$TARGET_DIR/" \ 12 --exclude="$(basename "$(realpath "$0")")" 13 14 echo "Installing Rockchip test scripts to $TARGET_DIR..." 15 rsync -av --chmod=u=rwX,go=rX "$SDK_DIR/external/rockchip-test/" \ 16 "$TARGET_DIR/rockchip-test/" \ 17 --include="camera/" --include="video/" --exclude="/*" 18fi 19