]> git.mdlowis.com Git - proto/albase.git/commitdiff
Added bootstrap script for building a statically-linked musl-based cross compiler
authorMike Lowis <mike.lowis@gentex.com>
Wed, 21 Sep 2016 13:20:18 +0000 (09:20 -0400)
committerMike Lowis <mike.lowis@gentex.com>
Wed, 21 Sep 2016 13:20:18 +0000 (09:20 -0400)
.gitignore [new file with mode: 0644]
bootstrap.sh [new file with mode: 0755]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..33ae812
--- /dev/null
@@ -0,0 +1,3 @@
+tags
+cscope.out
+project.vim
diff --git a/bootstrap.sh b/bootstrap.sh
new file mode 100755 (executable)
index 0000000..0098b22
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/sh
+if [ ! -d musl-cross-make/stage1 ]; then
+    cd musl-cross-make
+    cp stage1.mak config.mak
+    make all install
+    make clean
+fi
+if [ ! -d musl-cross-make/stage2 ]; then
+    cd musl-cross-make
+    cp stage2.mak config.mak
+    export PATH="$PWD/stage1/bin:$PATH"
+    make all install
+    make clean
+fi