Advertisement
techmik

mybuild2.sh

Sep 1st, 2011
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.98 KB | None | 0 0
  1. # mybuild2.sh
  2.      
  3. # my custom script to build and flash
  4.      
  5. # change to top of build directory
  6. cd ~/android/system
  7.      
  8. # clean 1st if called
  9. OPTION="$1"
  10.  
  11. case "$OPTION" in
  12.     clean)
  13.         make clean
  14.         rm -rf ./out
  15. esac      
  16.    
  17. # prepare and build for my stupid system, including kernel ;)
  18.  
  19. # change to kernel directory and build kernel
  20. cd ~/android/system/kernel/samsung/aries && ./build.sh captivatemtd
  21.  
  22. # change to top of build directory and build, using ccache to speed things up
  23. cd ~/android/system && . build/envsetup.sh && USE_CCACHE=1 brunch captivatemtd
  24.  
  25. # fix the stupid issue with my system/build environment
  26. mv ~/android/system/out/target/product/captivatemtd/cyanogen_captivatemtd-ota-eng.techmik.zip ~/android/system/out/target/product/captivatemtd/cyanogen_captivatemtd-ota-eng..zip
  27.  
  28. # start the build over without cleaning (won't take long)
  29. . build/envsetup.sh && USE_CCACHE=1 brunch captivatemtd
  30.  
  31. # push zip to connected phone and flash
  32. eat
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement