2013-09-06 08:31:51 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2013-09-20 14:59:53 +00:00
|
|
|
set -e -x
|
|
|
|
|
2013-09-18 13:22:20 +00:00
|
|
|
rm -rf root cross morpheus.log
|
2013-09-17 14:26:52 +00:00
|
|
|
. ./prepare-env
|
2013-09-17 10:07:15 +00:00
|
|
|
. ./prepare-root
|
2013-09-06 08:31:51 +00:00
|
|
|
|
2013-09-17 14:26:52 +00:00
|
|
|
mkdir -p src cross
|
2013-09-06 08:31:51 +00:00
|
|
|
|
2013-09-17 14:26:52 +00:00
|
|
|
# Deps list
|
|
|
|
./build cross-scripts/musl
|
2013-09-17 10:37:13 +00:00
|
|
|
|
2013-09-06 08:31:51 +00:00
|
|
|
# Build stage0 packages
|
|
|
|
pkglist=$(ls pkgs)
|
|
|
|
for pkg in $pkglist; do
|
2013-09-23 18:36:54 +00:00
|
|
|
while read line; do
|
|
|
|
if [ $(echo $line | cut -d' ' -f1) != $pkg ]; then
|
|
|
|
continue
|
|
|
|
fi
|
|
|
|
deps=$(echo $line | cut -d' ' -f2-)
|
|
|
|
# Build dependencies for package in order
|
|
|
|
for d in $deps; do
|
|
|
|
./build cross-scripts/$d
|
|
|
|
done
|
|
|
|
done < DEPS
|
2013-09-06 08:31:51 +00:00
|
|
|
./build pkgs/$pkg
|
|
|
|
done
|
|
|
|
|
|
|
|
echo OK!
|