google nexus 编译刷机

来源:互联网 发布:淘宝主播合作要多少钱 编辑:程序博客网 时间:2024/04/29 11:51
source build/envsetup.sh
lunch full-eng
./run_emulater.sh



https://developers.google.com/android/nexus/drivers#magurojop40c
Galaxy Nexus (GSM/HSPA+) binaries for Android 4.2/4.2.1 (JOP40C and JOP40D)
download 所有驱动包,然后解压,后得到的是sh文件,放到源码目录,并且一个一个执行。
编译内核
export PREFIX=/path/to/your/aospclone
cd $PREFIX/kernel/omap
make ARCH=arm tuna_defconfig
make ARCH=arm CROSS_COMPILE=$PREFIX/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-


编译android
cd $PREFIX
source build/envsetup.sh
lunch full_maguro-userdebug
export HAVE_SELINUX=true
make

修改 out/target/product/maguro/system/system/lib/egl/egl.cfg
变为如下内容:
0 0 android
0 1 POWERVR_SGX540_120

删除out/target/product/maguro/system.img


make otapackage