how to build custom android 8 kernel

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to build custom android 8 kernel

1,259 Views
andreykononov
Contributor III

i can customize and build android kernel separately from android system as discribed in Android_User's_Guide.pdf, but when build android system, kernel config replaced to some kind of default config (imx_v7_android_defconfig I think)

board sabresd

0 Kudos
2 Replies

1,061 Views
diegoadrian
NXP Employee
NXP Employee

Hello,

I apologize for the delay.

Actually, that is one of the solutions. 

This is because at the time you are initializing the Android environment. You are setting the options that are by default in the defconfig file. One of the solutions is making what you did, another one could be the only modifying or adding the configuration to the defconfig file.

Hope this information can help you.

Best regards,

Diego.

0 Kudos

1,061 Views
andreykononov
Contributor III

find temprorary hack solution - make menuconfig whith script

cp ./out/target/product/sabresd_6dq/obj/KERNEL_OBJ/.config ./vendor/nxp-opensource/kernel_imx
export ARCH=arm
export CROSS_COMPILE=$(pwd)/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androideabi-
cd ./vendor/nxp-opensource/kernel_imx
make menuconfig
cp .config ./arch/arm/configs/imx_v7_android_defconfig
cd ../../..

0 Kudos