#!/bin/dash SOURCE_DIR=src BUSYBOX_VERSION=1.36.1 OUT=out-arm64 #prepare _PWD=`pwd` mkdir -p $OUT_DIRECTORY echo "Unarchive busbox" cd $SOURCE_DIR mkdir busybox-$BUSYBOX_VERSION-arm64 tar -xvf busybox-$BUSYBOX_VERSION.tar.bz2 --strip-components=1 -C busybox-$BUSYBOX_VERSION-arm64 cd busybox-$BUSYBOX_VERSION-arm64 cp ../../config/busybox-arm64.config ./.config #make CROSS_COMPILE=aarch64-linux-gnu- -j4 make CROSS_COMPILE=aarch64-linux-gnu- #save result echo "Copy result to out-arm64" cp ./busybox ../../$OUT