2012年6月9日 星期六

CyanogenMod Compiler 輕鬆編譯客製化的CyanogenMod ROM

http://freemymind.cc.cc/2011/12/cyanogenmod-compiler-cyanogenmod-rom.html

很多人可能會覺得編譯一個客製化的 CyanogenMod ROM 是一件很複雜的事,因此遲遲不敢動手進行,只能等待別人編譯好的 ROM 來下載使用,測試後覺得不滿意就再換另一個人的 ROM 使用。您可能要試過幾個不同的 ROM 之後,才能找到一個適合自己的 ROM。不過,現在不用這麼麻煩了,國外有人把編譯 CyanogenMod 的流程寫成一個 script 檔,名為 Cyanogenmod Compiler (CMC) ,只要動手按幾個按鈕,就可以輕鬆編譯出屬於自己的 ROM 了

有了 Cyanogenmod Compiler 後,編譯 CyanogenMod 變得很簡單,只要執行以下命令即可:
git clone https://github.com/lithid/CMC.git
cd CMC
./CMCompiler
不過,在執行 Cyanogenmod Compile 之前,有一些相依套件要安裝,根據您的環境而有所不同
32 bit:
git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.6-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev sun-java6-jdk pngcrush schedtool
64 bit:
g++-multilib lib32z1-dev lib32ncurses5-dev lib32readline5-dev gcc-4.3-multilib g++-4.3-multilib
如果您是使用 ubuntu 11.04 或是更高的版本,以下有兩點要注意:
  • "lib32readline5-dev" 在 ubuntu 11.10 中,已經被 "lib32readline-gplv2-dev" 所取代
  • 從 ubuntu 11.04 之後的版本,不再需要 "gcc-4.3-multilib g++-4.3-multilib" 這兩個套件
成功執行 Cyanogenmod Compiler 後,就可以開始作一些客製化的動作,包含移除不需要的語言、桌面及動態桌面…等,詳細功能如下:
  • Check for repo installation on startup / or create a repo
  • Add and remove devices quickly and easily
  • Remove all non english languages
  • Remove live wallpapers
  • Remove cm wallpapers
  • Check if adb is running or not
  • Update the repo
  • Compile cyanogenmod
  • Add unsupported device trees via plugin!
  • Built in color themes. > http://goo.gl/cED8t
  • Plugin support. (More information on this to come)
  • local config file for saving settings or manually editing them
  • Odex plugin built into the package. This will take your connected cyanogemod installed phone and odex the rom on the phone
作者目前還在持續增加功能當中,預計下一版會實現的功能如下:
  • Check for installed tools and tell you which are still needed
  • Installer/Remover
  • Updated information about CMC and plugin support
  • Pure AOSP via plugin
  • Adb installer
  • Better error checking support
  • Check for errors during compile and point to places to fix
  • Edit the name of your kanged rom!


參考資料來源:
http://forum.xda-developers.com/showthread.php?t=1415661

沒有留言:

張貼留言