cLK/compile-arif
Arif Ali 45e1245f9e Added my quick build environment
changed make files and code, to dynaically change cache
2011-03-27 21:20:40 +01:00

40 lines
699 B
Bash
Executable File

#!/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 ..