1
0
mirror of git://git.2f30.org/morpheus.git synced 2024-07-01 02:21:21 +00:00
morpheus/stage0

38 lines
689 B
Plaintext
Raw Normal View History

2013-09-06 08:31:51 +00:00
#!/bin/sh
# Export important variables for the build scripts
top=$(pwd)
root=$top/root
2013-09-06 09:53:51 +00:00
nprocs=4
2013-09-06 08:31:51 +00:00
mirror=http://dl.2f30.org/morpheus-pkgs
2013-09-06 09:53:51 +00:00
export top root nprocs mirror
2013-09-06 08:31:51 +00:00
2013-09-06 09:08:58 +00:00
./clean
. ./prepare-root
2013-09-06 08:31:51 +00:00
./build cross-scripts/musl-0.9.13
PATH=$top/cross/bin:$PATH
export PATH
2013-09-17 10:37:13 +00:00
# These are ordered
./build cross-scripts/libevent-2.0.21
./build cross-scripts/ncurses-5.9
./build cross-scripts/zlib-1.2.8
2013-09-06 08:31:51 +00:00
# Build stage0 packages
pkglist=$(ls pkgs)
for pkg in $pkglist; do
./build pkgs/$pkg
done
2013-09-06 11:42:24 +00:00
# Strip all executables
find $root/bin -executable -type f -exec strip {} \; &>/dev/null
2013-09-06 08:31:51 +00:00
pushd $root
2013-09-17 11:03:02 +00:00
echo Creating ramdisk
2013-09-08 17:39:49 +00:00
find . | cpio --quiet -H newc -o | gzip -9 -n > ../morpheus.img
2013-09-06 08:31:51 +00:00
popd
echo OK!