#!/bin/sh -e
[ -z "$DEBUG" ] || set -x
echo "########## host-binutils-2.40: host install ##########"
cd /home/ych/rk3568/buildroot
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" PKG_CONFIG="/home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/host/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_LIBDIR="/home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/host/lib/pkgconfig:/home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/host/share/pkgconfig"  /usr/bin/make -j21 MAKEINFO=true install -C /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/build/host-binutils-2.40/
cd /home/ych/rk3568/buildroot
rm -f /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/host/aarch64-buildroot-linux-gnu/bin/ar && cp -a /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/host/bin/aarch64-buildroot-linux-gnu-ar /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/host/aarch64-buildroot-linux-gnu/bin/ar
rm -f /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/host/aarch64-buildroot-linux-gnu/bin/as && cp -a /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/host/bin/aarch64-buildroot-linux-gnu-as /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/host/aarch64-buildroot-linux-gnu/bin/as
rm -f /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/host/aarch64-buildroot-linux-gnu/bin/ld && cp -a /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/host/bin/aarch64-buildroot-linux-gnu-ld /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/host/aarch64-buildroot-linux-gnu/bin/ld
rm -f /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/host/aarch64-buildroot-linux-gnu/bin/ld.bfd && cp -a /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/host/bin/aarch64-buildroot-linux-gnu-ld.bfd /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/host/aarch64-buildroot-linux-gnu/bin/ld.bfd
rm -f /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/host/aarch64-buildroot-linux-gnu/bin/nm && cp -a /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/host/bin/aarch64-buildroot-linux-gnu-nm /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/host/aarch64-buildroot-linux-gnu/bin/nm
rm -f /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/host/aarch64-buildroot-linux-gnu/bin/objcopy && cp -a /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/host/bin/aarch64-buildroot-linux-gnu-objcopy /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/host/aarch64-buildroot-linux-gnu/bin/objcopy
rm -f /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/host/aarch64-buildroot-linux-gnu/bin/objdump && cp -a /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/host/bin/aarch64-buildroot-linux-gnu-objdump /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/host/aarch64-buildroot-linux-gnu/bin/objdump
rm -f /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/host/aarch64-buildroot-linux-gnu/bin/ranlib && cp -a /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/host/bin/aarch64-buildroot-linux-gnu-ranlib /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/host/aarch64-buildroot-linux-gnu/bin/ranlib
rm -f /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/host/aarch64-buildroot-linux-gnu/bin/readelf && cp -a /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/host/bin/aarch64-buildroot-linux-gnu-readelf /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/host/aarch64-buildroot-linux-gnu/bin/readelf
rm -f /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/host/aarch64-buildroot-linux-gnu/bin/strip && cp -a /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/host/bin/aarch64-buildroot-linux-gnu-strip /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/host/aarch64-buildroot-linux-gnu/bin/strip
cd /home/ych/rk3568/buildroot
rm -f -rf  /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/host/share/info/dir
