Added my quick build environment
changed make files and code, to dynaically change cache
This commit is contained in:
parent
2e26415092
commit
45e1245f9e
BIN
build-stuff/CustomRUU.exe
Executable file
BIN
build-stuff/CustomRUU.exe
Executable file
Binary file not shown.
19
build-stuff/readme.txt
Normal file
19
build-stuff/readme.txt
Normal file
@ -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
|
19
compile-all
Executable file
19
compile-all
Executable file
@ -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
|
39
compile-arif
Executable file
39
compile-arif
Executable file
@ -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 ..
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user