diff --git a/build-stuff/CustomRUU.exe b/build-stuff/CustomRUU.exe new file mode 100755 index 0000000..014166b Binary files /dev/null and b/build-stuff/CustomRUU.exe differ diff --git a/build-stuff/readme.txt b/build-stuff/readme.txt new file mode 100644 index 0000000..45dacb5 --- /dev/null +++ b/build-stuff/readme.txt @@ -0,0 +1,19 @@ +cLK 1.4 +--------- + +Built by arif-ali from xda-developers +using 2009q3 of Codesourcery Toolchain + +misc 1M +recovery 5M +boot 8M +system 400M +cache 5M +userdata remaining + +Thanks and credits +------------------ +* cedesmith +* seadersn + +- 27 Mar 2011 diff --git a/compile-all b/compile-all new file mode 100755 index 0000000..3cd6a89 --- /dev/null +++ b/compile-all @@ -0,0 +1,19 @@ +#!/bin/bash + +version=1.4 +SIZES="100 150 200 210 250 300 350 400" +cache=5 + +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 +./compile-arif clean +pushd build-stuff +rm -rf ../../cLK-out/cLK${version}_system_${size}M_arif-ali.zip +cp ../bin/RUU_signed.nbh . +zip -9Dr ../../cLK-out/cLK${version}_system_${size}M_arif-ali.zip readme.txt CustomRUU.exe RUU_signed.nbh +rm -rf RUU_signed.nbh +popd +done diff --git a/compile-arif b/compile-arif new file mode 100755 index 0000000..c9c2905 --- /dev/null +++ b/compile-arif @@ -0,0 +1,39 @@ +#!/bin/bash + +export ARM=$HOME/android/HD2/android/toolchain/arm-2009q3/bin +export WINE=/opt/cxoffice/bin +export PATH=$ARM:$WINE:$PATH + +[ `which arm-none-eabi-gcc` ] && TOOLCHAIN_PREFIX="arm-none-eabi-" || TOOLCHAIN_PREFIX="arm-eabi-" +export TOOLCHAIN_PREFIX + +if [ "$1" = "clean" ]; then + cd lk + make htcleo clean + cd .. + rm bin/nbgen +fi + +rm bin/lk.bin +rm bin/os.nb.payload +rm bin/os.nb +rm bin/RUU_signed.nbh + +if [ ! -f bin/nbgen ]; then + gcc -std=c99 nbgen.c -o bin/nbgen +fi + +cd lk +make htcleo DEBUG=1 +[ $? -eq 0 ] || exit 1 +cp build-htcleo/lk.bin ../bin/ +cd .. + +cd bin +chmod +x yang +./nbgen os.nb +./yang -F RUU_signed.nbh -f os.nb -t 0x400 -s 64 -d PB8110000 -c 11111111 -v CLK1.4 -l WWE +cd .. + + +