From c2b6f4cdd5383108a923cf4dac133ac62bcbfe1d Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Sun, 22 Apr 2018 12:49:35 -0400 Subject: Updated PATH in ./inc and document further --- inc | 2 +- readme.md | 11 +++++------ scripts/mksh.sh | 1 + 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 -- cgit v1.2.3