iglunix/docs/index.md

60 lines
1.3 KiB
Markdown
Raw Normal View History

2021-02-10 19:00:20 +00:00
# Iglunix Linux
2021-01-28 12:35:05 +00:00
## Building
Inorder to build from source you need a complete LLVM/Musl toolchain.
I have provided one on the releases page on this repo.
```sh
tar -xf llvm...tar.xz -C $LBROOT
```
Next one must install musl from source
```sh
./configure --prefix=/usr --enable-wrapper=no
make
make install DESTDIR=$LBROOT
```
Next one must grab the binary releases of busybox and toybox from
their respective websites and place them in `$LBROOT/bin`
Next one needs to chroot into `$LBROOT`
```sh
doas chroot $LBROOT /bin/busybox --install -s
doas chroot $LBROOT /bin/sh
```
One may need to adjust their `$PATH`.
One needs to cross compile GNU Make and place it in `/usr/bin/gmake`
From here one needs to build the first package, `mksh` which will
allow one to rebuild `toybox` and `busybox`.
2021-02-10 19:00:20 +00:00
Clone this git repo into `$LBROOT/root/iglunix` and then chroot to `$LBROOT`
2021-01-28 12:37:19 +00:00
```sh
2021-02-10 19:00:20 +00:00
cd /root/iglunix
2021-01-28 12:35:05 +00:00
cd pkgs/mksh
2021-02-10 19:00:20 +00:00
../../iglupkg.sh
2021-01-28 12:35:05 +00:00
tar -xf out/mksh*.tar.xz -C /
cd ../..
cd pkgs/bmake
2021-02-10 19:00:20 +00:00
../../iglupkg.sh
2021-01-28 12:35:05 +00:00
tar -xf out/bmake*.tar.xz -C /
cd ../..
cd pkgs/gmake
2021-02-10 19:00:20 +00:00
../../iglupkg.sh
2021-01-28 12:35:05 +00:00
tar-xf out/gmake*.tar.xz -C /
cd ../../
```
Build packages like above. There is a problem with building CMake as it needs LibreSSL but LibreSSL needs CMake to build.
To get around this one will need to manually build LibreSSL with `./configure` first, then build CMake then rebuild
LibreSSL.