Redmi K20 Pro 编译 PixelExperience

编译环境:

  • Ubuntu18.04
  • 300GB空间
  • Redmi K20 Pro

依赖安装

sudo apt-get install bc bison build-essential ccache curl flex g++-multilib gcc-multilib git gnupg gperf imagemagick lib32ncurses5-dev lib32readline-dev lib32z1-dev liblz4-tool libncurses5 libncurses5-dev libsdl1.2-dev libssl-dev libxml2 libxml2-utils lzop pngcrush rsync schedtool squashfs-tools xsltproc zip zlib1g-dev

代码同步

mkdir k20pro
cd k20pro
# Initialize local repository
repo init -u https://github.com/PixelExperience/manifest -b ten

# Sync
repo sync -c -j$(nproc --all) --force-sync --no-clone-bundle --no-tags

添加内核源码

#use F1xy kernel
mkdir -p kernel/xiaomi/raphael
git clone https://github.com/PixelExperience-Devices/kernel_xiaomi_raphael kernel/xiaomi/raphael
#Use building kernel instead of prebuilt kernel,this step requires lunch aosp_raphael-eng first.
#Modify file BoardConfig.mk,Comment out 
#TARGET_PREBUILT_KERNEL := $(DEVICE_PATH)/prebuilt/kernel
vim device/xiaomi/raphael/BoardConfig.mk
#Modify file kernel.mk
vim vendor/aosp/build/tasks/kernel.mk
#define this:
TARGET_KERNEL_CONFIG = raphael_defconfig

编译


# Set up environment
$ . build/envsetup.sh

# Choose a target,redmi k20 pro has user,userdebug,eng
$ lunch aosp_raphael-eng

# Build the code
$ mka bacon -jX

错误

if you encounter `out of memory`,Expand your swap space.
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值