summaryrefslogtreecommitdiff
path: root/create_tools/create_busybox_arm64.sh
diff options
context:
space:
mode:
Diffstat (limited to 'create_tools/create_busybox_arm64.sh')
-rwxr-xr-xcreate_tools/create_busybox_arm64.sh25
1 files changed, 25 insertions, 0 deletions
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
+