morpheus

suckless linux distro
git clone git://git.2f30.org/morpheus.git
Log | Files | Refs | Submodules | README | LICENSE

commit a0fbd8da422bb3c5d6f7199d2aa46262d7cf6733
parent 39a1a2ac177ca4fb351e1c9ee49c22d391e539f1
Author: sin <sin@2f30.org>
Date:   Tue Sep 17 12:03:02 +0100

Add musl based toolchain

Diffstat:
create-bootable | 2+-
pkgs/crossmusl | 9+++++++++
prepare-root | 2+-
stage0 | 1+
4 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/create-bootable b/create-bootable @@ -2,7 +2,7 @@ # # Ensure you've loaded the loop module with max_part=15 -dd if=/dev/zero of=morpheus-boot.img bs=16M count=1 +dd if=/dev/zero of=morpheus-boot.img bs=256M count=1 fdisk morpheus-boot.img <<< ' o n diff --git a/pkgs/crossmusl b/pkgs/crossmusl @@ -0,0 +1,9 @@ +url=$mirror/crossx86-x86_64-linux-musl-0.9.11.tar.xz + +fetch() { + wget -c $url -O src/crossx86-x86_64-linux-musl-0.9.11.tar.xz +} + +install() { + tar xJf src/crossx86-x86_64-linux-musl-0.9.11.tar.xz -C $root/devel +} diff --git a/prepare-root b/prepare-root @@ -1,5 +1,5 @@ mkdir -p src cross -mkdir -p $root/{bin,boot,dev,etc,home,root,lib,var,share,tmp,sys,proc} +mkdir -p $root/{bin,boot,dev,etc,home,root,lib,var,share,devel,tmp,sys,proc} mkdir -p $root/dev/shm mkdir -p $root/share/{doc,man} mkdir -p $root/var/run diff --git a/stage0 b/stage0 @@ -30,6 +30,7 @@ done find $root/bin -executable -type f -exec strip {} \; &>/dev/null pushd $root +echo Creating ramdisk find . | cpio --quiet -H newc -o | gzip -9 -n > ../morpheus.img popd