2025-05-10 21:58:58 +08:00

19 lines
610 B
Bash
Executable File

#!/bin/bash -e
TARGET_DIR="$1"
[ "$TARGET_DIR" ] || exit 1
OVERLAY_DIR="$(dirname "$(realpath "$0")")"
SDK_DIR="${SDK_DIR:-$(realpath "$OVERLAY_DIR/../../../../..")}"
if [ -x "$TARGET_DIR/usr/bin/weston" ]; then
echo "Installing weston overlay: $OVERLAY_DIR to $TARGET_DIR..."
rsync -av --chmod=u=rwX,go=rX "$OVERLAY_DIR/" "$TARGET_DIR/" \
--exclude="$(basename "$(realpath "$0")")"
echo "Installing Rockchip test scripts to $TARGET_DIR..."
rsync -av --chmod=u=rwX,go=rX "$SDK_DIR/external/rockchip-test/" \
"$TARGET_DIR/rockchip-test/" \
--include="camera/" --include="video/" --exclude="/*"
fi