Skip to content

A Linux system which is just barely capable of building itself.

Notifications You must be signed in to change notification settings

gnuos/bootstrap-musl-linux

 
 

Repository files navigation

    This is a complete, self-bootstrapping musl-based Linux system. It
contains nothing more than Linux, Busybox, Binutils, GCC, GMP, MPFR,
MPC, and GNU Make. I haven't attempted to minimize the configuration
of these (yet), merely the package set. The programs get static-linked,
but musl does install a dynamic linker, and GCC should be able to link
programs against it.

    To build this from a non-musl Linux system, you will need to
execute ./bootstrap.sh. This will build musl and a cross compiler,
and then build the system against it, placing the result in ./out.

    ./make_fs.sh can be used to generate a bootable ext2 filesystem
from the out directory. To use it, you will need the "genext2fs" program
installed. If you don't feel like using it, you can just copy the files
onto a filesystem of your choice and boot it.

Some todos:
 * Fix the busybox patches so they work with latest busybox
 * Update to Linux 3.4 (after fixing those patches)
 * Backport the GCC patches, so I can use 4.2.x, and then remove
   MPFR, MPC, and GMP

About

A Linux system which is just barely capable of building itself.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Roff 65.5%
  • Shell 34.5%