From 6db32478d5951f01fd055c61176db0fea84379a7 Mon Sep 17 00:00:00 2001 From: FreeArtMan Date: Sat, 14 Oct 2023 08:24:18 +0100 Subject: Compiling and createing arm64 image --- create_tools/create_busybox_arm64.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 create_tools/create_busybox_arm64.sh (limited to 'create_tools/create_busybox_arm64.sh') diff --git a/create_tools/create_busybox_arm64.sh b/create_tools/create_busybox_arm64.sh new file mode 100755 index 0000000..f2ac3ea --- /dev/null +++ b/create_tools/create_busybox_arm64.sh @@ -0,0 +1,25 @@ +#!/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 + -- cgit v1.2.3