cLK/compile

44 lines
673 B
Plaintext
Raw Normal View History

2011-11-06 23:26:22 +00:00
#!/bin/bash
#use codesourcery toolchain
2011-11-06 23:48:03 +00:00
TOOLCHAIN_PREFIX="arm-none-eabi-"
2011-11-06 23:26:22 +00:00
export TOOLCHAIN_PREFIX
if [ "$1" = "clean" ]; then
2011-11-06 23:48:03 +00:00
cd lk
make htcleo clean
cd ..
rm bin/nbfix
2011-11-06 23:26:22 +00:00
fi
2011-11-06 23:48:03 +00:00
rm bin/lk.bin
rm bin/os.nb.payload
rm bin/os.nb
rm bin/RUU_signed.nbh
2011-11-06 23:26:22 +00:00
if [ ! -f bin/nbfix ]; then
gcc nbfix.c -o bin/nbfix
fi
2011-11-06 23:48:03 +00:00
cd lk
make htcleo DEBUG=1
[ $? -eq 0 ] || exit 1
cp build-htcleo/lk.bin ../bin/
cd ..
2011-11-06 23:26:22 +00:00
2011-11-06 23:48:03 +00:00
cd bin
cp template_os.nb.payload os.nb.payload
wine osnbtool.exe -c os.nb.payload 0 lk.bin
2011-11-06 23:48:03 +00:00
mv os.nb.payload.NEW os.nb.payload
./nbfix
wine NBMerge.exe -kaiser os.nb
wine yang.exe -F RUU_signed.nbh -f os.nb -t 0x400 -s 64 -d PB8110000 -c 11111111 -v CLK1.3 -l WWE
2011-11-06 23:48:03 +00:00
cd ..
2011-11-06 23:26:22 +00:00