Advertisement
Perka

cmds_build

Mar 11th, 2013
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. make mr proper
  2.  
  3. Edit in Makefile
  4. LDFLAGS_MODULE = --strip-debug
  5. Edit in m0_00defconfig
  6. CONFIG_CROSS_COMPILE="~/path/toolchains/arm-eabi-4.4.3/bin/arm-eabi-"
  7. CONFIG_LOCALVERSION="-Shark-A3"
  8.  
  9. Edit .bashrc in your home directory and add the following line:
  10. PATH=~/path/toolchains/arm-eabi-4.4.3/bin:
  11. $ gedit .bashrc
  12. $ source .bashrc
  13.  
  14. make m0_00_defconfig
  15.  
  16. time make -j3
  17.  
  18. cp ~/GT-I9300/u8/drivers/net/wireless/btlock/btlock.ko ~/GT-I9300/u8/drivers/net/wireless/bcmdhd/dhd.ko ~/GT-I9300/u8/drivers/scsi/scsi_wait_scan.ko ~/pack_boot/boot.img-ramdisk_FILES/lib/modules
  19.  
  20. cp ~/GT-I9300/u8/arch/arm/boot/zImage ~/pack_boot/zImage
  21.  
  22. perl repack-bootimg.pl zImage boot.img-ramdisk_FILES boot.img
  23.  
  24. sudo heimdall flash --primary-boot boot.img
  25.  
  26. git cherry-pick
  27. git remote add upstream [email protected]:perkarom/GT-I9300.git
  28. git fetch upstream
  29. git cherry-pick sha1
  30. git remote rm upstream
  31.  
  32.  
  33. find Shark-A -type f | xargs -n 1 file | LANG=C grep 'terminators$' | \
  34. while read LINE; do FILE=${LINE%%:*}; fromdos -p "$FILE"; done
  35.  
  36. Output files
  37. - Kernel : arch/arm/boot/zImage
  38. - modules : drivers/*/*.ko
  39.  
  40. diff -ruN original/ test/ > patch
  41. patch --dry-run -s -p1 < patch
  42.  
  43.  
  44. delete
  45. find . -type f -name "*.rej" -exec rm -f {} \;
  46. find . -type f -name "*.orig" -exec rm -f {} \;
  47. ask first
  48. find . -type f -name "*.rej" -exec rm -i {} \;
  49. find . -type f -name "*.orig" -exec rm -i {} \;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement