Build - kensuke/How-to-Miracast-on-AOSP GitHub Wiki
.
Common
Setup Android Build Environment
$ mkdir ~/bin
$ PATH=~/bin:$PATH
$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
General Build Process
1. Source Code Download: repo
2. (opt) Proprietary Files Setting
3. Build: make
3.1. Build ota: make otapackage
4. Flash: fastboot flash system system.img
4.1. Flash: custom recovery, update ota.zip
Nexus 4(mako)
// Source Code Download
$ mkdir mako_421Proprietary Files Setting
$ cd mako_421
$ repo init -u git://github.com/jamesonwilliams/platform_manifest.git -b android-4.2.1_r1
$ repo sync -j8
// Build
$ . build/envsetup.sh
$ lunch full_mako-userdebug
$ make -j8
Nexus 7
###3G tilapia
// Source Code Download
$ mkdir tilapia_422
$ cd tilapia_422
$ repo init -u https://android.googlesource.com/platform/manifest -b android-4.2.2_r1.2
$ repo sync -j8
// Proprietary Files Setting
// ...
// Build
$ source ./build/envsetup.sh
$ lunch full_tilapia-userdebug
$ make -j8
###Cyanogen 3G tilapia
// Source Code Download
$ mkdir -p ~/cyanogen/system/
$ cd ~/cyanogen/system
$ repo init -u git://github.com/CyanogenMod/android.git -b cm-10.1
$ repo sync -j8
$ cd ~/cyanogen/system/vendor/cm
$ ./get-prebuilts
$ cd ~/cyanogen/system
$ source build/envsetup.sh
$ breakfast tilapia
// Proprietary Files Setting
(Connect N7 to PC via usb(adb))
$ cd ~/cyanogen/system/device/asus/tilapia
$ ./extract-files.sh
// Build
$ croot
$ brunch tilapia
Galaxy Nexus(maguro)
// Source Code Download
$ mkdir maguro_422
$ cd maguro_422
$ repo init -u https://android.googlesource.com/platform/manifest -b android-4.2.2_r1.2
$ repo sync -j8
// Proprietary Files Setting
// ...
// /system/vendor/firmware/ducati-m3.bin
// Build
$ source ./build/envsetup.sh
$ lunch full_maguro-userdebug
$ make -j8
Galaxy S2(GT-I9100)
- SuperNexus / android_manifest
- [ROM][AOSP][JB][4.2.2][JDQ39E] SuperNexus 2.0 - I9100 - Milestone 1 01-06-13(http://forum.xda-developers.com/showthread.php?t=2076650)
// Source Code Download
$ mkdir SuperNexus
$ cd SuperNexus
$ repo init -u https://github.com/SuperNexus/android_manifest.git -b jellybean
$ repo sync -j8
// Proprietary Files Setting
(Connect S2 to PC via usb(adb))
$ cd /SuperNexus/device/samsung/i9100/
$ ./extract-files.sh
// Build
$ cd /SuperNexus/
$ source build/envsetup.sh
$ lunch i9100-userdebug
$ make -j8
Pandaboard ES
master
// Source Code Download
$ mkdir panda_aosp_master
$ cd panda_aosp_master
$ repo init -u https://android.googlesource.com/platform/manifest -m default.xml
$ repo sync -j8
// Proprietary Files Setting
# Get the latest SGX package
$ wget -p -nd https://dl.google.com/dl/android/aosp/imgtec-panda-imm76i-67545da7.tgz
$ tar zxf imgtec-panda-imm76i-67545da7.tgz
$ ./extract-imgtec-panda.sh
// /system/vendor/firmware/ducati-m3.bin
// Build
$ . build/envsetup.sh
$ lunch full_panda-userdebug
$ make -j8
OMAP4AJ.2.5
NOT YET
Wandboard
// Source Code Download
$ mkdir wand
$ cd wand
$ repo init -u git://www.wandboard.org/android/manifest.git -m default.xml
$ repo sync -j8
// Build
$ source build/envsetup.sh
$ lunch wandboard-userdebug
$ make -j8