Android4.2ソースをダウンロードしてlunchメニューを確認

前回のブログで書いたNexus7にはAndroid4.2(Jelly Bean)がインストールされています。現時点で最新版のこのAndroid4.2のソースコードをダウンロードしました。
(その後、11月28日にマイナーバージョンの4.2.1のソースが公開されています。)

以下、2012年11月14日付けのAndroid4.2ソース公開の投稿です。(抜粋。全文はこのページ末尾の[参考]に掲載)
https://groups.google.com/forum/#!topic/android-building/-ymcoMuDAbA



4.2 and AOSP
Jean-Baptiste Queru 11月14日
Good news everyone!

-The source code for 4.2 is being pushed to AOSP right now. Look for it under the name "android-4.2_r1" once the replication completes. The matching development branch (for CTS contributions) is jb-mr1-dev, and all the changes are merged into the master branch where platform contributions are accepted.

-Nexus 10 is now the best choice for AOSP work on 4.2.

-Nexus 7 3G isn't supported. We haven't been able to license the GSM stack for AOSP yet, and without the GSM stack this device doesn't do more than a plain Nexus 7.

-Factory images for the "takju" Galaxy Nexus as well as Nexus 7 (both variants), Nexus 4 and Nexus 10 are available at https://developers.google.com/android/nexus/images

-Proprietary binaries to run AOSP on Galaxy Nexus (maguro, toro and toroplus), Nexus 7 (grouper) and Nexus 10 (manta) are available at https://developers.google.com/android/nexus/drivers

-There is no support for 4.2 on Nexus S and Xoom. Those devices should continue using 4.1.2.

JBQ


私の持っているNexus Sは4.2ではサポートされず、4.1.2が最終版となるようです。

[ダウンロード]

$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo  >  repo
$ chmod 755 repo
$ ./repo init -u https://android.googlesource.com/platform/manifest  -b android-4.2_r1
$ ./repo sync
..................
Checking out files: 100% (450/450), done.
Checking out files: 100% (5265/5265), done. out files:   1% (63/5265)   
Checking out files: 100% (1910/1910), done. out files:  16% (315/1910)   
Syncing work tree: 100% (329/329), done.  

$ ls -F
Makefile   build/        device/      gdk/              ndk/        repo*
abi/       cts/          docs/        hardware/         packages/   sdk/
bionic/    dalvik/       external/    libcore/          pdk/        system/
bootable/  development/  frameworks/  libnativehelper/  prebuilts/  tools/
$ du -sh .
14G	.

[コンパイルの手前まで]

$ . build/envsetup.sh
including device/asus/grouper/vendorsetup.sh
including device/asus/tilapia/vendorsetup.sh
including device/generic/armv7-a-neon/vendorsetup.sh
including device/generic/armv7-a/vendorsetup.sh
including device/generic/mips/vendorsetup.sh
including device/generic/x86/vendorsetup.sh
including device/lge/mako/vendorsetup.sh
including device/samsung/maguro/vendorsetup.sh
including device/samsung/manta/vendorsetup.sh
including device/samsung/toro/vendorsetup.sh
including device/samsung/toroplus/vendorsetup.sh
including device/ti/panda/vendorsetup.sh
including sdk/bash_completion/adb.bash

$ lunch
You're building on Linux

Lunch menu... pick a combo:
     1. full-eng
     2. full_x86-eng
     3. vbox_x86-eng
     4. full_mips-eng
     5. full_grouper-userdebug
     6. full_tilapia-userdebug
     7. mini_armv7a_neon-userdebug
     8. mini_armv7a-userdebug
     9. mini_mips-userdebug
     10. mini_x86-userdebug
     11. full_mako-userdebug
     12. full_maguro-userdebug
     13. full_manta-userdebug
     14. full_toro-userdebug
     15. full_toroplus-userdebug
     16. full_panda-userdebug

Which would you like? [full-eng] 5

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.2
TARGET_PRODUCT=full_grouper
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-2.6.32-131.6.1.el6.i686-i686-with-redhat-6.1-Carbon
HOST_BUILD_TYPE=release
BUILD_ID=JOP40C
OUT_DIR=out
============================================

Nexus7のコード名はgrouperなのでlunchメニューは「5. full_grouper-userdebug」を選びます。(確かに、crespo(Nexus S)はメニューに無し。)
このあと、「make -j2」とか「make -j4」とかを実行してコンパイルするのですが、これはまた後ですることにして、今回の記事はここまでにします。
たぶん、proprietary binariesも用意することになると思われます。この後の手順を試したら、またブログにアップしようと思います。



[参考]:Android4.2ソース公開の投稿の全文

4.2 and AOSP

Jean-Baptiste Queru 11月14日
Good news everyone!

-The source code for 4.2 is being pushed to AOSP right now. Look for it under the name "android-4.2_r1" once the replication completes. The matching development branch (for CTS contributions) is jb-mr1-dev, and all the changes are merged into the master branch where platform contributions are accepted.

-Nexus 10 is now the best choice for AOSP work on 4.2. Everything except the GPU code is Open Source, and the only proprietary binaries besides the GPU libraries are firmware files that get loaded into the various peripheral chips. No flagship device so far has been so open, and no flagship device so far has had that level of AOSP support at launch.

-Nexus 7 3G isn't supported. We haven't been able to license the GSM stack for AOSP yet, and without the GSM stack this device doesn't do more than a plain Nexus 7.

-If AOSP starts pointing toward Nexus 4, you are having a bad problem, and you will not go to space today (i.e.: there is nothing in AOSP related to Nexus 4).

-Factory images for the "takju" Galaxy Nexus as well as Nexus 7 (both variants), Nexus 4 and Nexus 10 are available at https://developers.google.com/android/nexus/images

-Proprietary binaries to run AOSP on Galaxy Nexus (maguro, toro and toroplus), Nexus 7 (grouper) and Nexus 10 (manta) are available at
https://developers.google.com/android/nexus/drivers

-There is no support for 4.2 on Nexus S and Xoom. Those devices should continue using 4.1.2.

JBQ

PS: don't reply to this thread if you have specific questions. Start new threads instead.

PPS: no ETAs for OTAs.

--
Jean-Baptiste M. "JBQ" Queru
Technical Lead, Android Open Source Project, Google.

Questions sent directly to me that have no reason for being private will likely get ignored or forwarded to a public forum with no further warning.