1
0
mirror of git://git.2f30.org/morpheus.git synced 2024-06-28 23:51:22 +00:00
morpheus/stage0
2013-09-17 11:37:13 +01:00

37 lines
667 B
Bash
Executable File

#!/bin/sh
# Export important variables for the build scripts
top=$(pwd)
root=$top/root
nprocs=4
mirror=http://dl.2f30.org/morpheus-pkgs
export top root nprocs mirror
./clean
. ./prepare-root
./build cross-scripts/musl-0.9.13
PATH=$top/cross/bin:$PATH
export PATH
# These are ordered
./build cross-scripts/libevent-2.0.21
./build cross-scripts/ncurses-5.9
./build cross-scripts/zlib-1.2.8
# Build stage0 packages
pkglist=$(ls pkgs)
for pkg in $pkglist; do
./build pkgs/$pkg
done
# Strip all executables
find $root/bin -executable -type f -exec strip {} \; &>/dev/null
pushd $root
find . | cpio --quiet -H newc -o | gzip -9 -n > ../morpheus.img
popd
echo OK!