aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2018-04-22 12:49:35 -0400
committerMitch Riedstra <mitch@riedstra.us>2018-04-22 12:49:35 -0400
commitc2b6f4cdd5383108a923cf4dac133ac62bcbfe1d (patch)
tree017a63d3974ab253eaf2a5ec254fd370732550aa
parent4b1cd7ad1e1463a45b444d066b49574a9b6ad04a (diff)
downloadmin-c2b6f4cdd5383108a923cf4dac133ac62bcbfe1d.tar.gz
min-c2b6f4cdd5383108a923cf4dac133ac62bcbfe1d.tar.xz
Updated PATH in ./inc and document further
-rw-r--r--inc2
-rw-r--r--readme.md11
-rw-r--r--scripts/mksh.sh1
3 files changed, 7 insertions, 7 deletions
diff --git a/inc b/inc
index d2f05bc..34a9c6c 100644
--- a/inc
+++ b/inc
@@ -18,6 +18,6 @@ export BUILD_TGT="x86_64-linux-musl"
PATH="$prefix/usr/local/musl/bin:$prefix/usr/sbin:$prefix/usr/bin:$prefix/bin:$prefix/sbin:${PATH}"
# PATH="${PATH}:$prefix/usr/local/musl/bin:$prefix/usr/sbin:$prefix/usr/bin:$prefix/bin:$prefix/sbin"
-PATH="$base_dir/$BUILD_TGT/bin:$base_dir/toolchain/bin:$prefix/usr/local/musl/bin:$prefix/usr/sbin:$prefix/usr/bin:$prefix/bin:$prefix/sbin:${PATH}"
+PATH="$base_dir/$BUILD_TGT/bin:$base_dir/$BUILD_TGT/bin:$prefix/usr/local/musl/bin:$prefix/usr/sbin:$prefix/usr/bin:$prefix/bin:$prefix/sbin:${PATH}"
# export CC=${DEST}cc
diff --git a/readme.md b/readme.md
index 286b73e..fdb158c 100644
--- a/readme.md
+++ b/readme.md
@@ -40,11 +40,10 @@ just too tedious and boring for me, I'd rather do something different.
## The process so far:
+Acquire a toolchain and set it in `./inc` I used [`musl-cross-make`](https://github.com/richfelker/musl-cross-make)
+and placed the `output` folder into `./x86_64-linux-musl` where `x86_64` is
+the arch you're compiling for, in theory this should work for ARM and the like
+but I haven't gotten around to testing.
+
Run `scripts/get_sources.sh` and then `scripts/build.sh` It's rather important
to run them from the `min` directory so the paths and imports will be correct.
-
-
-## Todo:
-
-Build `busybox` with `musl` libc
-Build `ibressl` with `musl` libc
diff --git a/scripts/mksh.sh b/scripts/mksh.sh
index 992df11..9d997cf 100644
--- a/scripts/mksh.sh
+++ b/scripts/mksh.sh
@@ -4,6 +4,7 @@ VERSION="R56c"
cd $build_dir
gzip -dc < ${dist_dir}/mksh-$VERSION.tgz | tar -xvf -
cd mksh
+export CC="$BUILD_TGT-gcc"
export LDFLAGS="-static"
sh ./Build.sh
install -d $prefix/bin