#!/bin/sh -e
[ -z "$DEBUG" ] || set -x
echo "########## memtester-4.5.1: build ##########"
cd /home/ych/rk3568/buildroot
/bin/sed -i -e "s%^cc%/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/bin/aarch64-buildroot-linux-gnu-gcc -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Os -g0 -D_FORTIFY_SOURCE=1%" /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/memtester-4.5.1/conf-cc
/bin/sed -i -e "s%^cc%/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/bin/aarch64-buildroot-linux-gnu-gcc %" /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/memtester-4.5.1/conf-ld
/usr/bin/make -j21 -C /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/memtester-4.5.1
