編譯Android cupcake 核心

來源:互聯網
上載者:User

cupcake支援多國語系,且提供了SoftKeyboard的功能,身為走在時代尖端的工程師,怎麼可以不自已Build一個來玩玩呢。

環境Ubuntu 8.10 x86 32bit,如果是Windows的使用者可以直接用VirtualBox裝個VM。


  • 步驟:
    相關工具:
    直接用下面指令安裝完所需要的工具。
    $ sudo apt-get install git-core gnupg sun-java6-jdk flex bison gperf
    libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zipcurl
    libncurses5-dev zlib1g-dev
  • 取得repo:
    $ curl http://android.git.kernel.org/repo >~/bin/repo
    $ chmod a+x ~/bin/repo
    通常我會將repo移到/bin/repo,方便日後作業。
  • 取得source
    先替source code建個目錄
    $ mkdir android
    $ cd android
  • 在我們建立的目錄底下進行repo 初始化,指定要取得cupcake
    $ repo init -u git://android.git.kernel.org/platform/manifest.git -b cupcake

    執行成功後會出現下面訊息
    repo initialized in /mydroid

    接下來就準備同步程式碼囉
    $ repo sync

    這個工作非常浩時且常常會斷線出錯,建議去泡杯咖啡、看個電影後再回來,也可以中途ctrl-c中止,分次再慢慢補完。
    等出現完成的訊息後。就可以看到android的目錄中有完整的source了。

  • 編譯source
    就簡單到不行,執行
    $ make

    再經過無止境的等待後,就會在~/android/out/target/product/generic出現三個img檔:ramdisk.img、system.img、userdata.img,就可以丟到模擬器測試囉,心臟有力一點的朋友,也可以直接刷ADP啦。

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.