luca020400

Untitled

Apr 16th, 2015
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.99 KB | None | 0 0
  1. #build.sh created by Pizza_Dox
  2. clear
  3. jobs="-j$(grep -c ^processor /proc/cpuinfo)"
  4. export ARCH=arm
  5. export SUBARCH=arm
  6. export CROSS_COMPILE=`pwd`/prebuilt/toolchains/linaro/bin/arm-eabi-
  7. echo "compiling..."
  8. sleep 1;
  9. make clean mrproper
  10. make msm8226_defconfig
  11. echo "compile started at: $(date)" >> out/log.txt
  12. make -$jobs
  13. echo "compile finished at: $(date)" >> out/log.txt
  14. echo "" >> `pwd`out/log.txt
  15. sleep 1;
  16. echo ""
  17. echo "packaging..."
  18. if [ ! -f .ver ]; then
  19.     touch .ver
  20. fi
  21. v=`cat .ver`
  22. v=$((v+1))
  23. sed -i "s/CONFIG_LOCALVERSION="-MicroKernel-b$(($v-1))"/CONFIG_LOCALVERSION="-MicroKernel-b$v/" arch/arm/configs/msm8226_defconfig
  24. echo $v > .ver
  25. cp arch/arm/boot/zImage out/kitchen/kernel/zImage
  26. ./dtbTool -o dt.img -s 2048 -p scripts/dtc/ arch/arm/boot/
  27. cp dt.img out/kitchen/kernel/dt.img
  28. cd out/kitchen
  29. sleep 1
  30. zip -r MicroKernel-$v.zip *
  31. cd ../
  32. mv out/kitchen/MicroKernel-$v.zip builds/MicroKernel-$v.zip
  33. echo ""
  34. echo "compilation finished!"
  35. sleep 5
  36. xdg-open out/builds/
Advertisement
Add Comment
Please, Sign In to add comment