Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #build.sh created by Pizza_Dox
- clear
- jobs="-j$(grep -c ^processor /proc/cpuinfo)"
- export ARCH=arm
- export SUBARCH=arm
- export CROSS_COMPILE=`pwd`/prebuilt/toolchains/linaro/bin/arm-eabi-
- echo "compiling..."
- sleep 1;
- make clean mrproper
- make msm8226_defconfig
- echo "compile started at: $(date)" >> out/log.txt
- make -$jobs
- echo "compile finished at: $(date)" >> out/log.txt
- echo "" >> `pwd`out/log.txt
- sleep 1;
- echo ""
- echo "packaging..."
- if [ ! -f .ver ]; then
- touch .ver
- fi
- v=`cat .ver`
- v=$((v+1))
- sed -i "s/CONFIG_LOCALVERSION="-MicroKernel-b$(($v-1))"/CONFIG_LOCALVERSION="-MicroKernel-b$v/" arch/arm/configs/msm8226_defconfig
- echo $v > .ver
- cp arch/arm/boot/zImage out/kitchen/kernel/zImage
- ./dtbTool -o dt.img -s 2048 -p scripts/dtc/ arch/arm/boot/
- cp dt.img out/kitchen/kernel/dt.img
- cd out/kitchen
- sleep 1
- zip -r MicroKernel-$v.zip *
- cd ../
- mv out/kitchen/MicroKernel-$v.zip builds/MicroKernel-$v.zip
- echo ""
- echo "compilation finished!"
- sleep 5
- xdg-open out/builds/
Advertisement
Add Comment
Please, Sign In to add comment