Advertisement
playfulgod

Untitled

Sep 14th, 2012
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # Our settings
  4.  
  5. #Let's make sure the environment is clean and ready to compile the kernel
  6. echo
  7. echo "Cleaning house!!"
  8. echo
  9. make mrproper
  10. rm -rf ../package/system/lib/modules/*.ko
  11. rm -f ../package/zImage
  12. rm -f ../package/ramdisk.gz
  13. echo
  14. echo "House cleaned, lets build a kernel!!!"
  15. echo
  16. #
  17. # Lets set the kernel defconfig
  18. echo "defconfig = plague_defconfig"
  19. echo
  20. make ARCH=arm plague_defconfig
  21. #
  22. # Let's build a kernel
  23. echo
  24. echo "Now compiling kernel, go get a soda! ;)"
  25. echo
  26. ARCH=arm CROSS_COMPILE=~/Android/CM9/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi- make -j16
  27. #
  28. if [ -f arch/arm/boot/zImage ]; then
  29. echo
  30. echo "Plague has been compiled!!! You can find it in arch/arm/boot/zImage"
  31. echo
  32. else
  33. echo
  34. echo "Kernel did not compile, please check for errors!!"
  35. echo
  36. fi
  37.  
  38. # These move files to easier locations
  39. #find -name '*.ko' -exec cp -av {} ../package/system/lib/modules/ \;
  40. #cp arch/arm/boot/zImage ../package/
  41.  
  42. # This part packs the img up :)
  43. #../package/mkbootfs ../package/ramdisk_tmp | gzip > ../package/ramdisk.gz
  44. #../package/mkbootimg --kernel ../package/zImage --ramdisk ../package/ramdisk.gz --cmdline "console=ttyMSM1 androidboot.hardware=qcom" -o ../package/boot.img --base 0x00200000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement