天天看點

Android kernel x86 編譯方法

1、下載下傳源碼

$repo init -u git://git.android-x86.org/platform/manifest.git -b donut-x86

$repo sync

2、編譯kernel

  • 使用預設的進行編譯  make kernel TARGET_PRODUCT=eeepc
使用了預設的kernel/arch/x86/configs/android-x86_defconfig
  • 定制自己的kernel

加入編譯規則 build/core/kernel.mk  在kernel/arch/x86/configs 目錄下建立檔案如test_x86_defconfig

make iso_img TARGET_PRODUCT=eeepc TARGET_KERNEL_CONFIG=test_x86_defconfig

轉載于:https://www.cnblogs.com/wzh206/archive/2010/05/25/1743982.html