编译nexus4 4.4.2 aosp

/ 0评 / 0
qtfreet00@qtfreet00-PC:~/WORKING_DIRECTORY/442$ source build/envsetup.sh
including device/generic/mips/vendorsetup.sh
including device/generic/x86/vendorsetup.sh
including device/generic/armv7-a-neon/vendorsetup.sh
including device/asus/grouper/vendorsetup.sh
including device/asus/deb/vendorsetup.sh
including device/asus/tilapia/vendorsetup.sh
including device/asus/flo/vendorsetup.sh
including device/lge/hammerhead/vendorsetup.sh
including device/lge/mako/vendorsetup.sh
including device/samsung/manta/vendorsetup.sh
including sdk/bash_completion/adb.bash
qtfreet00@qtfreet00-PC:~/WORKING_DIRECTORY/442$ prebuilts/misc/linux-x86/ccache/ccache -M 50G
Set cache size limit to 52428800k
qtfreet00@qtfreet00-PC:~/WORKING_DIRECTORY/442$ lunch full_mako-userdebug

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.2
TARGET_PRODUCT=full_mako
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-34-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_BUILD_TYPE=release
BUILD_ID=KK
OUT_DIR=out
============================================

qtfreet00@qtfreet00-PC:~/WORKING_DIRECTORY/442$ make -j8

主要就4条命令

source build/envsetup.sh
prebuilts/misc/linux-x86/ccache/ccache -M 50G
lunch full_mako-userdebug
make -j8
  1. 用于初始化编译环境

  2. 用于设置缓存,可提高编译速度

  3. 用于编译出nexus4专用的系统

  4. 编译命令,j后面数字可根据cpu核数而定

发表评论

电子邮件地址不会被公开。 必填项已用*标注