aboutsummaryrefslogtreecommitdiff
path: root/scripts/musl-cross-make.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/musl-cross-make.sh')
-rw-r--r--scripts/musl-cross-make.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/musl-cross-make.sh b/scripts/musl-cross-make.sh
new file mode 100644
index 0000000..c8f477f
--- /dev/null
+++ b/scripts/musl-cross-make.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+. ./.vars
+# VERSION=3.3.2
+APP_NAME="musl-cross-make"
+BUILD_DIR="${build_dir}/$APP_NAME"
+if ! [ -d "$BUILD_DIR" ] ; then
+ cd "$build_dir"
+ git clone ${dist_dir}/$APP_NAME
+fi
+cd "$BUILD_DIR"
+make -j$(nproc) TARGET=$BUILD_TGT
+make install TARGET=$BUILD_TGT
+mv output "$BUILD_TGT"
+tar cfzv "$base_dir/${BUILD_TGT}.tgz" "$BUILD_TGT"
+mv "$BUILD_TGT" "$base_dir/"