标签:
$mkdir android-4.3.1_r1 $cd android-4.3.1_r1 $repo init -u https://android.googlesource.com/platform/manifest -b android-4.3.1_r1 $repo sync
dennis@dubuntu1404:~/devenv/android-4.3.1_r1$ . build/envsetup.sh including device/asus/deb/vendorsetup.sh including device/asus/flo/vendorsetup.sh including device/asus/tilapia/vendorsetup.sh including device/generic/armv7-a-neon/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_slsi/arndale/vendorsetup.sh including device/samsung/toroplus/vendorsetup.sh including device/samsung/toro/vendorsetup.sh including device/ti/panda/vendorsetup.sh including sdk/bash_completion/adb.bash dennis@dubuntu1404:~/devenv/android-4.3.1_r1$ lunch You‘re building on Linux Lunch menu... pick a combo: 1. aosp_arm-eng 2. aosp_x86-eng 3. aosp_mips-eng 4. vbox_x86-eng 5. aosp_deb-userdebug 6. aosp_flo-userdebug 7. full_tilapia-userdebug 8. mini_armv7a_neon-userdebug 9. mini_mips-userdebug 10. mini_x86-userdebug 11. full_mako-userdebug 12. full_maguro-userdebug 13. full_manta-userdebug 14. full_arndale-userdebug 15. full_toroplus-userdebug 16. full_toro-userdebug 17. full_panda-userdebug Which would you like? [aosp_arm-eng] 12 ============================================ PLATFORM_VERSION_CODENAME=REL PLATFORM_VERSION=4.3.1 TARGET_PRODUCT=full_maguro TARGET_BUILD_VARIANT=userdebug TARGET_BUILD_TYPE=release TARGET_BUILD_APPS= TARGET_ARCH=arm TARGET_ARCH_VARIANT=armv7-a-neon TARGET_CPU_VARIANT=cortex-a9 HOST_ARCH=x86 HOST_OS=linux HOST_OS_EXTRA=Linux-3.13.0-24-generic-x86_64-with-Ubuntu-14.04-trusty HOST_BUILD_TYPE=release BUILD_ID=JLS36I OUT_DIR=out ============================================ dennis@dubuntu1404:~/devenv/android-4.3.1_r1$ make -j4
Can‘t locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at external/webkit/Source/WebCore/make-hash-tools.pl line 23. BEGIN failed--compilation aborted at external/webkit/Source/WebCore/make-hash-tools.pl line 23.
$sudo apt-get install libswitch-perl
$. build/envsetup.sh $lunch 12 $make -j4
export ANDROID_PRODUCT_OUT=/home/dennis/devenv/android-4.3.1_r1/out/target/product/maguro
$ adb reboot bootloader $ fastboot flashall -w
编译android-4.3.1_r源代码并刷到自己的Galaxy Nexus I9250真机上
标签:
原文地址:http://www.cnblogs.com/bhlsheji/p/4286021.html