aboutsummaryrefslogtreecommitdiff
path: root/scripts/musl-cross-make.sh
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2018-04-22 18:26:18 -0400
committerMitch Riedstra <mitch@riedstra.us>2018-04-22 18:26:18 -0400
commit73692b5ba9f28b75e226152044b18409a7df7685 (patch)
tree06e8dbb42994ee65c8c815de3c23e5d2a910716d /scripts/musl-cross-make.sh
parentb3810b12552a937dcb6486ccf775a0bd9094db23 (diff)
downloadmin-73692b5ba9f28b75e226152044b18409a7df7685.tar.gz
min-73692b5ba9f28b75e226152044b18409a7df7685.tar.xz
Addex XZ as well as sources and a working "tar" for the system.
( I need to rename it to cpio )
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/"