Android 11 Build failed after changes in menuconfig

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

Android 11 Build failed after changes in menuconfig

727 Views
abhiroopnray
Contributor III

Hi

I am using Android 11.2.6.0. I have made changes in menuconfig to enable DM-Verity and copied the .config to imx_v8_android_defconf

Steps:

IN VENDOR/NXP-OPENSOURCE/KERNEL_IMX folder
1> export ARCH=arm64
2> export AARCH64_GCC_CROSS_COMPILE=/opt/gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-
3> export CLANG_PATH=/opt/prebuilt-android-clang
4> make imx_v8_android_defconfig
5> make menuconfig ---> do your changes --> save changes
6> cp .config ./arch/arm64/configs/imx_v8_android_defconfig

 

 

But now I am getting this error when trying to build the kernel:

Command: ./imx-make.sh kernel -j4

make: Entering directory '/home/dev1/sinlap_11_2_6/simpli-aosp-11_2_6_0'
mkdir -p /home/dev1/sinlap_11_2_6/simpli-aosp-11_2_6_0/out/target/product/evk_8mp/obj/KERNEL_OBJ
Merging KERNEL config srcs: /home/dev1/sinlap_11_2_6/simpli-aosp-11_2_6_0/vendor/nxp-opensource/kernel_imx/arch/arm64/configs/gki_defconfig /home/dev1/sinlap_11_2_6/simpli-aosp-11_2_6_0/device/nxp/imx8m/evk_8mp/android_addition_defconfig /home/dev1/sinlap_11_2_6/simpli-aosp-11_2_6_0/vendor/nxp-opensource/kernel_imx/arch/arm64/configs/imx8mp_gki.fragment
Using /home/dev1/sinlap_11_2_6/simpli-aosp-11_2_6_0/vendor/nxp-opensource/kernel_imx/arch/arm64/configs/gki_defconfig as base
Merging /home/dev1/sinlap_11_2_6/simpli-aosp-11_2_6_0/device/nxp/imx8m/evk_8mp/android_addition_defconfig
Merging /home/dev1/sinlap_11_2_6/simpli-aosp-11_2_6_0/vendor/nxp-opensource/kernel_imx/arch/arm64/configs/imx8mp_gki.fragment
Value of CONFIG_STATIC_USERMODEHELPER_PATH is redefined by fragment /home/dev1/sinlap_11_2_6/simpli-aosp-11_2_6_0/vendor/nxp-opensource/kernel_imx/arch/arm64/configs/imx8mp_gki.fragment:
Previous value: CONFIG_STATIC_USERMODEHELPER_PATH=""
New value: CONFIG_STATIC_USERMODEHELPER_PATH="/system/bin/sh"

Value of CONFIG_LTO_CLANG_FULL is redefined by fragment /home/dev1/sinlap_11_2_6/simpli-aosp-11_2_6_0/vendor/nxp-opensource/kernel_imx/arch/arm64/configs/imx8mp_gki.fragment:
Previous value: CONFIG_LTO_CLANG_FULL=y
New value: # CONFIG_LTO_CLANG_FULL is not set

Value of CONFIG_CFI_CLANG is redefined by fragment /home/dev1/sinlap_11_2_6/simpli-aosp-11_2_6_0/vendor/nxp-opensource/kernel_imx/arch/arm64/configs/imx8mp_gki.fragment:
Previous value: CONFIG_CFI_CLANG=y
New value: # CONFIG_CFI_CLANG is not set

Value of CONFIG_RCU_FAST_NO_HZ is redefined by fragment /home/dev1/sinlap_11_2_6/simpli-aosp-11_2_6_0/vendor/nxp-opensource/kernel_imx/arch/arm64/configs/imx8mp_gki.fragment:
Previous value: CONFIG_RCU_FAST_NO_HZ=y
New value: # CONFIG_RCU_FAST_NO_HZ is not set

make[1]: Entering directory '/home/dev1/sinlap_11_2_6/simpli-aosp-11_2_6_0/vendor/nxp-opensource/kernel_imx'
make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
make[2]: Entering directory '/home/dev1/sinlap_11_2_6/simpli-aosp-11_2_6_0/out/target/product/evk_8mp/obj/KERNEL_OBJ'
***
*** The source tree is not clean, please run 'make mrproper'
*** in /home/dev1/sinlap_11_2_6/simpli-aosp-11_2_6_0/vendor/nxp-opensource/kernel_imx
***
make[2]: *** [/home/dev1/sinlap_11_2_6/simpli-aosp-11_2_6_0/vendor/nxp-opensource/kernel_imx/Makefile:562: outputmakefile] Error 1
make[2]: Leaving directory '/home/dev1/sinlap_11_2_6/simpli-aosp-11_2_6_0/out/target/product/evk_8mp/obj/KERNEL_OBJ'
make[1]: *** [Makefile:185: __sub-make] Error 2
make[1]: Leaving directory '/home/dev1/sinlap_11_2_6/simpli-aosp-11_2_6_0/vendor/nxp-opensource/kernel_imx'
make: *** [/home/dev1/sinlap_11_2_6/simpli-aosp-11_2_6_0/device/nxp/common/build/kernel.mk:187: /home/dev1/sinlap_11_2_6/simpli-aosp-11_2_6_0/out/target/product/evk_8mp/obj/KERNEL_OBJ/.config] Error 2
make: Leaving directory '/home/dev1/sinlap_11_2_6/simpli-aosp-11_2_6_0'

 

But if I run make mrproper still the build is not getting successful.

It is showing error as below :

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=11
TARGET_PRODUCT=evk_8mp
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a9
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.15.0-60-generic-x86_64-Ubuntu-20.04.3-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=RQ3A.211001.001
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES=device/generic/goldfish device/generic/goldfish-opengl external/mesa3d vendor/nxp-opensource/imx/power hardware/google/pixel hardware/google/camera vendor/nxp-opensource/imx/came
ra vendor/partner_gms
============================================
FAILED: ninja: unknown target 'mrproper'
13:03:05 ninja failed with: exit status 1

#### failed to build some targets (6 seconds) ####

 

Can you please tell me how to resolve this issue?

 

Thanks and regards,

Abhiroop Nandi Ray

0 Kudos
Reply
0 Replies