出自flip the world 檢視Android的原始碼 頁面討論 閱讀檢視原始碼檢視歷史 ←Android 您沒有權限執行編輯此頁面,由於以下原因: 您請求的操作只有這個群組的使用者能使用:使用者 您可以檢視並複製此頁面的原始碼。 Building '''Android''' for the Raspberry Pi - fetching the source with repo, preparing the toolchain, and the build invocation. == source == * <nowiki>git clone https://github.com/gonzoua/u-boot-pi.git</nowiki> * <nowiki>svn co file:///var/svn/raspberrypi/u-boot-pi</nowiki> == Prepare == * repo - a tool that makes it easier to work with Git in the context of Android. ** $ mkdir ~/bin ** $ PATH=~/bin:$PATH ** <nowiki>$ curl http://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo</nowiki> ** $ chmod a+x ~/bin/repo * init repo client ** $ mkdir WORKING_DIRECTORY ** $ cd WORKING_DIRECTORY ** <nowiki>$ repo init -u https://android.googlesource.com/platform/manifest</nowiki> * IcedTea for OpenJDK 6 ** <nowiki>http://blog.fuseyism.com/index.php/2014/04/15/security-icedtea-1-13-3-for-openjdk-6-released/</nowiki> * SD card ** cp system root/* data under out/target/product/generic/ into /root partition in SD ** specify the root= in bootargs (modify the cmdline.txt in /boot paratition) == Build == * switch to your working directory * export TARGET_PREBUILT_KERNEL=$your_kernel_path/arch/arm/boot/zImage * make bootimage == Reference == * [http://s.android.com/source/downloading.html Android - Downloading the Source] * [http://en.wikipedia.org/wiki/Icedtea wiki - IcedTea project] [[Category:Software and Tools]] 返回到「Android」。