Nexus S ソース
$ cd mydroid
$ repo init -u https://android.googlesource.com/platform/manifest -b android-4.1.2_r1
$ repo sync
下記からバイナリを持ってくる
https://developers.google.com/android/nexus/drivers
$ wget https://dl.google.com/dl/android/aosp/akm-crespo-jzo54k-41bd82a7.tgz
$ wget https://dl.google.com/dl/android/aosp/broadcom-crespo-jzo54k-3272fe6e.tgz
$ wget https://dl.google.com/dl/android/aosp/imgtec-crespo-jzo54k-c20bd30b.tgz
$ wget https://dl.google.com/dl/android/aosp/nxp-crespo-jzo54k-59170f80.tgz
$ wget https://dl.google.com/dl/android/aosp/samsung-crespo-jzo54k-1248bb36.tgz
$ wget https://dl.google.com/dl/android/aosp/widevine-crespo-jzo54k-22298742.tgz
$ tar zxvf akm-crespo-jzo54k-41bd82a7.tgz
$ tar zxvf broadcom-crespo-jzo54k-3272fe6e.tgz
$ tar zxvf imgtec-crespo-jzo54k-c20bd30b.tgz
$ tar zxvf nxp-crespo-jzo54k-59170f80.tgz
$ tar zxvf samsung-crespo-jzo54k-1248bb36.tgz
$ tar zxvf widevine-crespo-jzo54k-22298742.tgz
$ ./extract-akm-crespo.sh
vendor/
vendor/akm/
vendor/akm/crespo/
vendor/akm/crespo/proprietary/
vendor/akm/crespo/proprietary/libakm.so
vendor/akm/crespo/device-crespo.mk
vendor/akm/crespo/BoardConfigCrespo.mk
vendor/samsung/
vendor/samsung/crespo/
vendor/samsung/crespo/BoardConfigVendor.mk
vendor/samsung/crespo/device-vendor.mk
$ ./extract-broadcom-crespo.sh
vendor/
vendor/broadcom/
vendor/broadcom/crespo/
vendor/broadcom/crespo/proprietary/
vendor/broadcom/crespo/proprietary/gpsd
vendor/broadcom/crespo/proprietary/gps.s5pc110.so
vendor/broadcom/crespo/proprietary/bcm4329.hcd
vendor/broadcom/crespo/device-crespo.mk
vendor/broadcom/crespo/BoardConfigCrespo.mk
vendor/samsung/
vendor/samsung/crespo/
vendor/samsung/crespo/BoardConfigVendor.mk
vendor/samsung/crespo/device-vendor.mk
$ ./extract-imgtec-crespo.sh
vendor/
vendor/imgtec/
vendor/imgtec/crespo/
vendor/imgtec/crespo/proprietary/
vendor/imgtec/crespo/proprietary/libsrv_init.so
vendor/imgtec/crespo/proprietary/libsrv_um.so
vendor/imgtec/crespo/proprietary/libIMGegl.so
vendor/imgtec/crespo/proprietary/libEGL_POWERVR_SGX540_120.so
vendor/imgtec/crespo/proprietary/libGLESv2_POWERVR_SGX540_120.so
vendor/imgtec/crespo/proprietary/pvrsrvinit
vendor/imgtec/crespo/proprietary/libGLESv1_CM_POWERVR_SGX540_120.so
vendor/imgtec/crespo/proprietary/libusc.so
vendor/imgtec/crespo/proprietary/gralloc.s5pc110.so
vendor/imgtec/crespo/proprietary/libPVRScopeServices.so
vendor/imgtec/crespo/proprietary/libpvr2d.so
vendor/imgtec/crespo/proprietary/libglslcompiler.so
vendor/imgtec/crespo/proprietary/libpvrANDROID_WSEGL.so
vendor/imgtec/crespo/device-crespo.mk
vendor/imgtec/crespo/BoardConfigCrespo.mk
vendor/samsung/
vendor/samsung/crespo/
vendor/samsung/crespo/BoardConfigVendor.mk
vendor/samsung/crespo/device-vendor.mk
$ ./extract-nxp-crespo.sh
vendor/
vendor/nxp/
vendor/nxp/crespo/
vendor/nxp/crespo/proprietary/
vendor/nxp/crespo/proprietary/libpn544_fw.so
vendor/nxp/crespo/device-crespo.mk
vendor/nxp/crespo/BoardConfigCrespo.mk
vendor/samsung/
vendor/samsung/crespo/
vendor/samsung/crespo/BoardConfigVendor.mk
vendor/samsung/crespo/device-vendor.mk
$ ./extract-samsung-crespo.sh
vendor/
vendor/samsung/
vendor/samsung/crespo/
vendor/samsung/crespo/proprietary/
vendor/samsung/crespo/proprietary/libsec-ril.so
vendor/samsung/crespo/proprietary/libsecril-client.so
vendor/samsung/crespo/BoardConfigVendor.mk
vendor/samsung/crespo/device-crespo.mk
vendor/samsung/crespo/device-vendor.mk
vendor/samsung/crespo/BoardConfigCrespo.mk
$ ./extract-widevine-crespo.sh
vendor/
vendor/widevine/
vendor/widevine/crespo/
vendor/widevine/crespo/proprietary/
vendor/widevine/crespo/proprietary/libdrmdecrypt.so
vendor/widevine/crespo/device-crespo.mk
vendor/widevine/crespo/BoardConfigCrespo.mk
vendor/samsung/
vendor/samsung/crespo/
vendor/samsung/crespo/BoardConfigVendor.mk
vendor/samsung/crespo/device-vendor.mk
kernelソースコードを取得
$ git clone https://android.googlesource.com/kernel/samsung.git
branchを確認
$ git –git-dir=samsung/.git branch -a
* master
remotes/origin/HEAD -> origin/master
remotes/origin/android-samsung-2.6.35-gingerbread
remotes/origin/android-samsung-3.0-ics-mr1
remotes/origin/android-samsung-3.0-jb
remotes/origin/android-samsung-3.0-jb-mr0
remotes/origin/master
Jelly Beanのブランチがあるので
android-samsung-3.0-jb-mr0へcheckout
$ git –git-dir=samsung/.git checkout android-samsung-3.0-jb-mr0
branchを確認
$ git –git-dir=samsung/.git branch -a
* android-samsung-3.0-jb-mr0
master
remotes/origin/HEAD -> origin/master
remotes/origin/android-samsung-2.6.35-gingerbread
remotes/origin/android-samsung-3.0-ics-mr1
remotes/origin/android-samsung-3.0-jb
remotes/origin/android-samsung-3.0-jb-mr0
remotes/origin/master
パスとか通してkernel build
$ cd samsung/
$ export PATH=../prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin:$PATH
$ make ARCH=arm CROSS_COMPILE=arm-eabi- herring_defconfig
$ make ARCH=arm CROSS_COMPILE=arm-eabi- -j8
$ cd mydroid
$ repo init -u https://android.googlesource.com/platform/manifest -b android-4.1.2_r1
$ repo sync
下記からバイナリを持ってくる
https://developers.google.com/android/nexus/drivers
$ wget https://dl.google.com/dl/android/aosp/akm-crespo-jzo54k-41bd82a7.tgz
$ wget https://dl.google.com/dl/android/aosp/broadcom-crespo-jzo54k-3272fe6e.tgz
$ wget https://dl.google.com/dl/android/aosp/imgtec-crespo-jzo54k-c20bd30b.tgz
$ wget https://dl.google.com/dl/android/aosp/nxp-crespo-jzo54k-59170f80.tgz
$ wget https://dl.google.com/dl/android/aosp/samsung-crespo-jzo54k-1248bb36.tgz
$ wget https://dl.google.com/dl/android/aosp/widevine-crespo-jzo54k-22298742.tgz
$ tar zxvf akm-crespo-jzo54k-41bd82a7.tgz
$ tar zxvf broadcom-crespo-jzo54k-3272fe6e.tgz
$ tar zxvf imgtec-crespo-jzo54k-c20bd30b.tgz
$ tar zxvf nxp-crespo-jzo54k-59170f80.tgz
$ tar zxvf samsung-crespo-jzo54k-1248bb36.tgz
$ tar zxvf widevine-crespo-jzo54k-22298742.tgz
$ ./extract-akm-crespo.sh
vendor/
vendor/akm/
vendor/akm/crespo/
vendor/akm/crespo/proprietary/
vendor/akm/crespo/proprietary/libakm.so
vendor/akm/crespo/device-crespo.mk
vendor/akm/crespo/BoardConfigCrespo.mk
vendor/samsung/
vendor/samsung/crespo/
vendor/samsung/crespo/BoardConfigVendor.mk
vendor/samsung/crespo/device-vendor.mk
$ ./extract-broadcom-crespo.sh
vendor/
vendor/broadcom/
vendor/broadcom/crespo/
vendor/broadcom/crespo/proprietary/
vendor/broadcom/crespo/proprietary/gpsd
vendor/broadcom/crespo/proprietary/gps.s5pc110.so
vendor/broadcom/crespo/proprietary/bcm4329.hcd
vendor/broadcom/crespo/device-crespo.mk
vendor/broadcom/crespo/BoardConfigCrespo.mk
vendor/samsung/
vendor/samsung/crespo/
vendor/samsung/crespo/BoardConfigVendor.mk
vendor/samsung/crespo/device-vendor.mk
$ ./extract-imgtec-crespo.sh
vendor/
vendor/imgtec/
vendor/imgtec/crespo/
vendor/imgtec/crespo/proprietary/
vendor/imgtec/crespo/proprietary/libsrv_init.so
vendor/imgtec/crespo/proprietary/libsrv_um.so
vendor/imgtec/crespo/proprietary/libIMGegl.so
vendor/imgtec/crespo/proprietary/libEGL_POWERVR_SGX540_120.so
vendor/imgtec/crespo/proprietary/libGLESv2_POWERVR_SGX540_120.so
vendor/imgtec/crespo/proprietary/pvrsrvinit
vendor/imgtec/crespo/proprietary/libGLESv1_CM_POWERVR_SGX540_120.so
vendor/imgtec/crespo/proprietary/libusc.so
vendor/imgtec/crespo/proprietary/gralloc.s5pc110.so
vendor/imgtec/crespo/proprietary/libPVRScopeServices.so
vendor/imgtec/crespo/proprietary/libpvr2d.so
vendor/imgtec/crespo/proprietary/libglslcompiler.so
vendor/imgtec/crespo/proprietary/libpvrANDROID_WSEGL.so
vendor/imgtec/crespo/device-crespo.mk
vendor/imgtec/crespo/BoardConfigCrespo.mk
vendor/samsung/
vendor/samsung/crespo/
vendor/samsung/crespo/BoardConfigVendor.mk
vendor/samsung/crespo/device-vendor.mk
$ ./extract-nxp-crespo.sh
vendor/
vendor/nxp/
vendor/nxp/crespo/
vendor/nxp/crespo/proprietary/
vendor/nxp/crespo/proprietary/libpn544_fw.so
vendor/nxp/crespo/device-crespo.mk
vendor/nxp/crespo/BoardConfigCrespo.mk
vendor/samsung/
vendor/samsung/crespo/
vendor/samsung/crespo/BoardConfigVendor.mk
vendor/samsung/crespo/device-vendor.mk
$ ./extract-samsung-crespo.sh
vendor/
vendor/samsung/
vendor/samsung/crespo/
vendor/samsung/crespo/proprietary/
vendor/samsung/crespo/proprietary/libsec-ril.so
vendor/samsung/crespo/proprietary/libsecril-client.so
vendor/samsung/crespo/BoardConfigVendor.mk
vendor/samsung/crespo/device-crespo.mk
vendor/samsung/crespo/device-vendor.mk
vendor/samsung/crespo/BoardConfigCrespo.mk
$ ./extract-widevine-crespo.sh
vendor/
vendor/widevine/
vendor/widevine/crespo/
vendor/widevine/crespo/proprietary/
vendor/widevine/crespo/proprietary/libdrmdecrypt.so
vendor/widevine/crespo/device-crespo.mk
vendor/widevine/crespo/BoardConfigCrespo.mk
vendor/samsung/
vendor/samsung/crespo/
vendor/samsung/crespo/BoardConfigVendor.mk
vendor/samsung/crespo/device-vendor.mk
kernelソースコードを取得
$ git clone https://android.googlesource.com/kernel/samsung.git
branchを確認
$ git –git-dir=samsung/.git branch -a
* master
remotes/origin/HEAD -> origin/master
remotes/origin/android-samsung-2.6.35-gingerbread
remotes/origin/android-samsung-3.0-ics-mr1
remotes/origin/android-samsung-3.0-jb
remotes/origin/android-samsung-3.0-jb-mr0
remotes/origin/master
Jelly Beanのブランチがあるので
android-samsung-3.0-jb-mr0へcheckout
$ git –git-dir=samsung/.git checkout android-samsung-3.0-jb-mr0
branchを確認
$ git –git-dir=samsung/.git branch -a
* android-samsung-3.0-jb-mr0
master
remotes/origin/HEAD -> origin/master
remotes/origin/android-samsung-2.6.35-gingerbread
remotes/origin/android-samsung-3.0-ics-mr1
remotes/origin/android-samsung-3.0-jb
remotes/origin/android-samsung-3.0-jb-mr0
remotes/origin/master
パスとか通してkernel build
$ cd samsung/
$ export PATH=../prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin:$PATH
$ make ARCH=arm CROSS_COMPILE=arm-eabi- herring_defconfig
$ make ARCH=arm CROSS_COMPILE=arm-eabi- -j8