Commit c7d7772f authored by Nick Elsmore's avatar Nick Elsmore

Switch to make build system

parent 9495f615
......@@ -18,7 +18,10 @@ print_usage() {
echo "Commands:"
echo " sync-current Sync all repositories to their current branches"
echo " sync-manifest Sync all repositories to master"
echo " build Run PyraOS build script (see script for arguments"
echo " build Run PyraOS build script"
echo " bootloader"
echo " linux"
echo " rootfs"
echo " build-all [2gb|4gb] Build PyraOS for 2gb or 4gb HW"
echo " bash Configure environment and start bash shell"
}
......@@ -33,15 +36,10 @@ sync_to_manifest() {
repo sync -d
}
build() {
./build.sh $1 $2
}
build_all() {
./build.sh uboot $1
./build.sh kernel
./build.sh rootfs
./build.sh image
PYRA_DDR=$1 make bootloader
make linux
make rootfs
}
main() {
......@@ -57,7 +55,8 @@ main() {
;;
build)
build $2 $3
[[ ! -z $3 ]] && export PYRA_DDR=$3
make $2
;;
build-all)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment