diff options
author | FreeArtMan <dos21h@gmail.com> | 2023-10-14 08:24:18 +0100 |
---|---|---|
committer | FreeArtMan <dos21h@gmail.com> | 2023-10-14 08:24:18 +0100 |
commit | 6db32478d5951f01fd055c61176db0fea84379a7 (patch) | |
tree | fd5dec7df6bb293f8754335648bb97c3c106bab4 /create_tools/create_busybox_arm64.sh | |
parent | d06103b3d68eff371751c0ab21c478077718a937 (diff) | |
download | os201-6db32478d5951f01fd055c61176db0fea84379a7.tar.gz os201-6db32478d5951f01fd055c61176db0fea84379a7.zip |
Compiling and createing arm64 image
Diffstat (limited to 'create_tools/create_busybox_arm64.sh')
-rwxr-xr-x | create_tools/create_busybox_arm64.sh | 25 |
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 + |