#!/bin/sh PWD=`pwd` export ECOS_REPOSITORY=${PWD}/ecos_20050912/packages # checks if [ ! -d ${ECOS_REPOSITORY} ]; then echo "no redboot source?" exit -1 fi function do_build { (cd ecos_20050912; quilt push $1) if [ $? -ne 0 ]; then echo "quilt push failed" exit -1 fi rm -rf ecos-build ./build.sh if [ $? -ne 0 ]; then echo "build failed" exit -1 fi cp ecos-build/install/bin/redboot.bin $2 } # get to known state (cd ecos_20050912; quilt pop logitech/0012-mx35-squeezeos-redboot.patch) # MP (rev 0004) do_build "logitech/0013-fab4-noop.patch" "redboot-fab4-0004.bin" # 2G flash (rev 0005) do_build "logitech/fab4-2g-flash.patch" "redboot-fab4-0005.bin"