2011-03-27 20:20:40 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2011-04-08 23:54:24 +00:00
|
|
|
export ARM=$PWD/../../../toolchain/arm-2009q3/bin
|
2011-04-07 17:01:19 +00:00
|
|
|
export PATH=$ARM:$PATH
|
2011-05-08 23:24:44 +00:00
|
|
|
export VERSION=1.4.0.1
|
2011-08-12 10:21:00 +00:00
|
|
|
#export SIZES="`echo {80..150..10} {160..460..20} 250 350 450`"
|
|
|
|
export SIZES="`echo {80..450..10}`"
|
2011-04-07 17:01:19 +00:00
|
|
|
export CACHE="5 44"
|
|
|
|
export OUTPUT=$PWD/../cLK-out
|
|
|
|
export O_ALL=$OUTPUT/allInOne
|
|
|
|
export O_ZIP=$OUTPUT/zips
|
2011-03-28 11:55:42 +00:00
|
|
|
|
|
|
|
make clean
|
2011-04-07 17:01:19 +00:00
|
|
|
mkdir -p $O_ALL
|
|
|
|
mkdir -p $O_ZIP
|
|
|
|
rm -rf $O_ALL/{*.nbh,*.zip}
|
|
|
|
rm -rf $O_ZIP/*.zip
|
2011-03-27 20:20:40 +00:00
|
|
|
|
2011-04-07 17:01:19 +00:00
|
|
|
for cache in $CACHE
|
2011-03-27 20:20:40 +00:00
|
|
|
do
|
2011-04-07 17:01:19 +00:00
|
|
|
for size in $SIZES
|
|
|
|
do
|
|
|
|
sed -i s/DEFINES\ +=\ SYSTEM_PARTITION_SIZE=.*/DEFINES\ +=\ SYSTEM_PARTITION_SIZE=${size}/ lk/target/htcleo/rules.mk
|
|
|
|
sed -i s/DEFINES\ +=\ CACHE_PARTITION_SIZE=.*/DEFINES\ +=\ CACHE_PARTITION_SIZE=${cache}/ lk/target/htcleo/rules.mk
|
|
|
|
sed -i s/system\ .*/system\ ${size}M/ build-stuff/readme.txt
|
|
|
|
sed -i s/cache\ .*/cache\ ${cache}M/ build-stuff/readme.txt
|
|
|
|
make partition
|
|
|
|
pushd build-stuff
|
|
|
|
rm -rf $O_ZIP/cLK_${VERSION}_${size}_${cache}.zip
|
|
|
|
mv ../bin/RUU_signed.nbh .
|
|
|
|
zip -9Dr $O_ZIP/cLK_${VERSION}_${size}_${cache}.zip readme.txt CustomRUU.exe RUU_signed.nbh
|
|
|
|
cp RUU_signed.nbh $O_ALL/RUU_signed-${size}-${cache}.nbh
|
|
|
|
rm -rf RUU_signed.nbh
|
|
|
|
popd
|
|
|
|
done
|
2011-03-27 20:20:40 +00:00
|
|
|
done
|
2011-04-07 17:01:19 +00:00
|
|
|
|
|
|
|
pushd $O_ALL
|
|
|
|
rm -rf cLK_${VERSION}_layouts_arif.zip
|
|
|
|
zip -9Dr cLK_${VERSION}_layouts_arif.zip *.nbh
|
|
|
|
popd
|