作者sceneryview (加油~~~)
看板AndroidDev
标题[分享] CyanogenMod Compiler 编译客制化的ROM
时间Fri Dec 30 14:26:05 2011
网志版:
http://goo.gl/cve9w
很多人可能会觉得编译一个客制化的 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 或是更高的版本,以下有两点要注意:
1. "lib32readline5-dev" 在 ubuntu 11.10 中,已经被 "lib32readline-gplv2-dev"
所取代
2. 从 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://schumi0901.blogspot.com/
写得不错的话,麻烦帮忙点个广告,谢谢~~
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 221.120.1.14
1F:推 RealJack:好文! 12/31 09:59
2F:推 Azarc:赞 12/31 17:34