Step1:
(如果沒有安裝repo,可以參考這裡的step1、2)
選好想要的branch及manifest(這裡brance選carrot.cupcake, manifest選M7201JSDCBALYA638501.xml)就可以準備下載source code
$ mkdir QAEP $ cd QAEP $ repo init -u git://codeaurora.org/platform/manifest.git -b carrot.cupcake -m M7201JSDCBALYA638501.xml $ repo sync
Step2:
設定環境變數, 選定1(device), 1(release), msm7201a_surf(target), eng(default mode), 開始make囉!!
$ source build/envsetup.sh $ choosecombo 1 1 msm7201a_surf eng $ make -j4
Step3:
build出來的img會在out/target/product/msm7201a_surf中, 包括了boot.img, systme.img等。再使用fastboot, 燒img到device(記得要先接上device)
$ sudo out/host/linux-x86/bin/fastboot flash boot out/target/product/msm7201a_surf/boot.img $ sudo out/host/linux-x86/bin/fastboot flash system out/target/product/msm7201a_surf/system.img
Step4:
使用adb 確認device,
(to be continue)
[參考]
[1] MSM/QSD Android Enablement Project
[2] 工程模式與FASTBOOT - Android Dev Phone 1
[3] Developing on a Device
[4] Make UDC & Android ADB Gadget driver work
[5] 編譯android原始碼到模擬器上執行