#!/bin/sh -e
[ -z "$DEBUG" ] || set -x
echo "########## busybox-1.36.1: target install ##########"
cd /home/ych/rk3568/buildroot
touch /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/build/busybox-1.36.1/.stamp_installed
if [ -r /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/build/busybox-1.36.1/.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/busybox-1.36.1/.files-list-target.txt | xargs md5sum /dev/null > /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/build/busybox-1.36.1/.md5 2>/dev/null || true; cd -; fi
cd /home/ych/rk3568/buildroot
# Use the 'noclobber' install rule, to prevent BusyBox from overwriting
# any full-blown versions of apps installed by other packages.
PATH="/home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/host/bin:/home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" CFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Os -g0 -D_FORTIFY_SOURCE=1" CFLAGS_busybox="" /usr/bin/make -j21 AR="/home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/host/bin/aarch64-buildroot-linux-gnu-ar" NM="/home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/host/bin/aarch64-buildroot-linux-gnu-nm" RANLIB="/home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/host/bin/aarch64-buildroot-linux-gnu-ranlib" CC="/home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/host/bin/aarch64-buildroot-linux-gnu-gcc" ARCH=arm64 PREFIX="/home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/target" EXTRA_LDFLAGS="" CROSS_COMPILE="/home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/host/bin/aarch64-buildroot-linux-gnu-" CONFIG_PREFIX="/home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/target" SKIP_STRIP=y -C /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/build/busybox-1.36.1 install-noclobber
/usr/bin/install -D -m 0644 package/busybox/inittab /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/target/etc/inittab
if grep -q CONFIG_UDHCPC=y /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/build/busybox-1.36.1/.config; then /usr/bin/install -m 0755 -D package/busybox/udhcpc.script /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/target/usr/share/udhcpc/default.script; /usr/bin/install -m 0755 -d /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/target/usr/share/udhcpc/default.script.d; fi
if grep -q CONFIG_ZCIP=y /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/build/busybox-1.36.1/.config; then /usr/bin/install -m 0755 -D /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/build/busybox-1.36.1/examples/zcip.script /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/target/usr/share/zcip/default.script; fi
cd /home/ych/rk3568/buildroot
if grep -q CONFIG_SYSLOGD=y /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/build/busybox-1.36.1/.config; then /usr/bin/install -m 0755 -D package/busybox/S01syslogd /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/target/etc/init.d/S01syslogd; fi; if grep -q CONFIG_KLOGD=y /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/build/busybox-1.36.1/.config; then /usr/bin/install -m 0755 -D package/busybox/S02klogd /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/target/etc/init.d/S02klogd; fi
if grep -q CONFIG_BB_SYSCTL=y /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/build/busybox-1.36.1/.config; then /usr/bin/install -m 0755 -D package/busybox/S02sysctl /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/target/etc/init.d/S02sysctl ; fi
if grep -q CONFIG_FEATURE_TELNETD_STANDALONE=y /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/build/busybox-1.36.1/.config; then /usr/bin/install -m 0755 -D package/busybox/S50telnet /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/target/etc/init.d/S50telnet ; fi
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/busybox-1.36.1/.stamp_installed | tee /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/build/busybox-1.36.1/.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/busybox-1.36.1/busybox-1.36.1.tar -T -; true;
cd /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/target; if [ -r /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/build/busybox-1.36.1/.md5 ]; then md5sum -c /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/build/busybox-1.36.1/.md5 2>&1 | grep "FAILED$" | cut -d':' -f1 > /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/build/busybox-1.36.1/.files-list-target-update.txt; fi
