summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2018-09-24 22:08:31 +0100
committerFreeArtMan <dos21h@gmail.com>2018-09-24 22:08:31 +0100
commitd58a8be150d72ffeb24f0aaf2195ff415608ea01 (patch)
treec097f9409f773a6048552c5bad55f710884e4a41
parent542359b2ebba3c3b7758c11b5c3598fbc4354615 (diff)
downloados201-d58a8be150d72ffeb24f0aaf2195ff415608ea01.tar.gz
os201-d58a8be150d72ffeb24f0aaf2195ff415608ea01.zip
Update busybox, create minibase script
-rwxr-xr-xcreate_tools/create_busybox.sh5
-rwxr-xr-xcreate_tools/create_minibase.sh27
2 files changed, 30 insertions, 2 deletions
diff --git a/create_tools/create_busybox.sh b/create_tools/create_busybox.sh
index a947744..aa36281 100755
--- a/create_tools/create_busybox.sh
+++ b/create_tools/create_busybox.sh
@@ -15,7 +15,8 @@ cd busybox-$BUSYBOX_VERSION
cp ../../config/busybox.config ./.config
make -j4
-cp ./busybox ../../$OUT_DIRECTORY
-
#save result
echo "Copy result to out"
+cp ./busybox ../../$OUT_DIRECTORY
+
+
diff --git a/create_tools/create_minibase.sh b/create_tools/create_minibase.sh
new file mode 100755
index 0000000..9cc45c5
--- /dev/null
+++ b/create_tools/create_minibase.sh
@@ -0,0 +1,27 @@
+#!/bin/dash
+
+SOURCE_DIR=src
+MINIBASE_VERSION=0.6.2
+
+OUT_DIRECTORY=out
+
+#prepare
+_PWD=`pwd`
+
+echo "Unarchive minibase"
+cd $SOURCE_DIR
+rm -rf minibase-$MINIBASE_VERSION
+unzip minibase.zip
+cd minibase-$MINIBASE_VERSION
+./configure
+make
+
+
+#save result
+#declare -a allowed_binaries
+mkdir ../../$OUT_DIRECTORY/minibase
+find ./ -executable -type f | xargs -I {} cp ./{} ../../$OUT_DIRECTORY/minibase
+
+
+echo "Copy minibase to out"
+