WORKING IN PROGRESS. DOESN'T WORK YET.
Selfhosting Musl Linux Sysroot/Scripts
SMLS is automated build scripts for building a selfhosting musl linux. It downloads the sources, builds, and creates a tar achirve the of built sysroot, ideal for building Docker images.
Build
IMPORTANT
This script may permanently damage your system. It is strongly recommanded that you run this in a dedicated virtualmachine or use docker (See With Docker for details).
Clone
$ git clone https://github.com/omeid/smls; # clone the repo scripts.
$ cd smls # Enter SMLS
Configure
Dependencies
You need to install the build dependencies, run the ./01-prepare/01-systemcheck
to see if you have all the requirments.
TODO: This step can automated by making
./01-prepare/01-systemcheck
fail when a Requirements is missing or old.
Can you help out? send us a pull request!
There is only one optional environment variables BUILDROOT
that defaults to /tmp/buildroot
which you may change.
That is it.
Go!
$ ./build # Builds all stages in /tmp/buildroot (default $BUILDROOT).
How Does it works?
Read The Source, Luke!
====
License
Copyright (c) <2014> by omeid [email protected].
This material may be distributed only subject to the terms and conditions set forth in the Open Publication License, v1.0 or later.
Credits & Contributors
This work is based on original work at CLFS Embedded by
- Andrew Bradford
- Joe Ciccone
- Jim Gifford
- Maarten Lankhorst
- Ryan Oliver
A special thanks to Andrew Bradford for writing the musl gcc patch.