#!/bin/sh -e
[ -z "$DEBUG" ] || set -x
echo "########## rktoolkit-master: target install ##########"
cd /home/ych/rk3568/buildroot
touch /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/build/rktoolkit-master/.stamp_installed
if [ -r /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/build/rktoolkit-master/.files-list-target.txt ]; then cd /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/target; cat /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/build/rktoolkit-master/.files-list-target.txt | xargs md5sum /dev/null > /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/build/rktoolkit-master/.md5 2>/dev/null || true; cd -; fi
cd /home/ych/rk3568/buildroot
cd /home/ych/rk3568/buildroot
cd /home/ych/rk3568/buildroot
/usr/bin/install -D -m 755 /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/build/rktoolkit-master/io /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/target/usr/bin/io
cd /home/ych/rk3568/buildroot
/usr/bin/install -D -m 755 /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/build/rktoolkit-master/update /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/target/usr/bin/update
cd /home/ych/rk3568/buildroot
/usr/bin/install -D -m 755 /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/build/rktoolkit-master/vendor_storage /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/target/usr/bin/vendor_storage
cd /home/ych/rk3568/buildroot
/usr/bin/install -D -m 755 /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/build/rktoolkit-master/libvendor_storage.so /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/target/usr/lib || true
/usr/bin/install -D -m 755 /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/build/rktoolkit-master/vendor_storage.h /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/host/aarch64-buildroot-linux-gnu/sysroot/usr/include || true
/usr/bin/install -D -m 755 /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/build/rktoolkit-master/libvendor_storage.so /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/ || true
cd /home/ych/rk3568/buildroot
rm -f -rf  /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/target/share/info/dir
cd /home/ych/rk3568/buildroot
if test -n "" ; then rm -f -f  ; fi
cd /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/target; find . \( -type f -o -type l \) -cnewer /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/build/rktoolkit-master/.stamp_installed | tee /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/build/rktoolkit-master/.files-list-target.txt | /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/host/bin/tar --no-recursion --ignore-failed-read -cf /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/build/rktoolkit-master/rktoolkit-master.tar -T -; true;
cd /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/target; if [ -r /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/build/rktoolkit-master/.md5 ]; then md5sum -c /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/build/rktoolkit-master/.md5 2>&1 | grep "FAILED$" | cut -d':' -f1 > /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/build/rktoolkit-master/.files-list-target-update.txt; fi
