Skip to content

SC05D build

blackzigong edited this page May 15, 2013 · 4 revisions

a

androidのビルド方法(ICS/Jellybean)

作業ディレクトリの準備

$ mkdir -p ~/kbc_work
$ export ANDROID_ROOT=~/kbc_work

###Cyanogenmodのソースコードのダウンロード ICSの場合

$ cd $ANDROID_ROOT
$ repo init -u git://github.com/CyanogenMod/android.git -b ics

Jellybeanの場合

$ cd $ANDROID_ROOT
$ repo init -u git://github.com/CyanogenMod/android.git -b jellybean

CM10.1の場合

$ cd $ANDROID_ROOT
$ repo init -u git://github.com/CyanogenMod/android.git -b cm-10.1

###local_manifest.xmlを作成してrepo sync

$ touch .repo/local_manifest.xml

中には以下を記述

ICSの場合

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
  <project name="CyanogenMod/android_device_samsung_msm8660-common" path="device/samsung/msm8660-common" remote="github" revision="ics" />
  <project name="CyanogenMod/android_device_samsung_quincy-common" path="device/samsung/quincy-common" remote="github" revision="ics" />
  <project name="CyanogenMod/android_kernel_samsung_msm8660-common" path="kernel/samsung/msm8660-common" remote="github" revision="ics" />
  <project name="kbc-developers/android_device_samsung_quincydcm" path="device/samsung/quincydcm" remote="github" revision="ics" />
  <project name="kbc-developers/android_kernel_samsung_msm8660" path="kernel/samsung/msm8660-dcm" remote="github" revision="android-ics-v1" />
</manifest>

Jellybeanの場合

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
  <project name="CyanogenMod/android_device_samsung_msm8660-common" path="device/samsung/msm8660-common" remote="github" revision="jellybean" />
  <project name="CyanogenMod/android_device_samsung_quincy-common" path="device/samsung/quincy-common" remote="github" revision="jellybean" />
  <project name="CyanogenMod/android_kernel_samsung_msm8660-common" path="kernel/samsung/msm8660-common" remote="github" revision="jellybean" />
  <project name="kbc-developers/android_device_samsung_quincydcm" path="device/samsung/quincydcm" remote="github" revision="jellybean" />
  <project name="kbc-developers/android_kernel_samsung_msm8660" path="kernel/samsung/msm8660-dcm" remote="github" revision="android-jb-v1" />
</manifest>

CM10.1の場合

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
  <project name="CyanogenMod/android_device_samsung_msm8660-common" path="device/samsung/msm8660-common" remote="github" revision="cm-10.1" />
  <project name="CyanogenMod/android_device_samsung_quincy-common" path="device/samsung/quincy-common" remote="github" revision="cm-10.1" />
  <project name="CyanogenMod/android_device_samsung_qcom-common" path="device/samsung/qcom-common" remote="github" revision="cm-10.1" />
  <project name="CyanogenMod/android_device_samsung_quincyatt" path="device/samsung/quincyatt" remote="github" revision="cm-10.1" />
  <project name="kbc-developers/android_device_samsung_quincydcm" path="device/samsung/quincydcm" remote="github" revision="cm-10.1" />
  <project name="kbc-developers/android_kernel_samsung_msm8660" path="kernel/samsung/msm8660-dcm" remote="github" revision="android-jb-mr1-v7" />
</manifest>
$ repo sync

###proprietaryの配置

$ cd $ANDROID_ROOT/device/samsung/quincydcm
$ ./extract_files.sh proprietary
$ cd $ANDROID_ROOT
$ vendor/cm/get-prebuilts

###ビルド

$ source build/envsetup.sh 
$ brunch quincydcm
Clone this wiki locally