1
0
mirror of git://git.2f30.org/morpheus.git synced 2024-06-25 22:48:34 +00:00
morpheus/pkgs/sinit
sin 5ffd49a86d We can build with dash too now
Also rename pkgs/arch-rootfs to pkgs/emul.

The create-bootable script still needs to be fixed
to work with dash.
2014-02-14 10:58:17 +00:00

22 lines
304 B
Plaintext

url=git://git.2f30.org/sinit
fetch() {
[ -d src/sinit ] || git clone $url src/sinit
}
build() {
cd src/sinit
make clean
make -j$nprocs CC=x86_64-linux-musl-gcc LDFLAGS=-static || return 1
cd -
}
install() {
cd src/sinit
make PREFIX=$root install
cd -
cd $root
ln -sf /bin/sinit init
cd -
}