hello nxp:
docment version : android_11.0.0_2.2.0_docs
soc: imx8qxpC0
1 Android 11 has been compile successfully with the Android_User's_Guide.pdf
2 what is the right way to modify and change kernel source code and compile it ?
3 the follow steps had been tried to change/modify kernel .
3.1 $cd ~/android_build/vendor/nxp-opensource/kernel_imx
3.2 $make menuconfig
3.3 $make -j8
and we have got this errors:
jack@MS-7D17:~/android_build/vendor/nxp-opensource/kernel_imx$ make -j8
DESCEND objtool
UPD include/config/kernel.release
UPD include/generated/utsrelease.h
CALL scripts/atomic/check-atomics.sh
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CC init/version.o
CC kernel/sys.o
AR init/built-in.a
CC [M] sound/soc/sof/intel/byt.o
CC [M] sound/soc/zte/zx-tdm.o
CC [M] sound/soc/xtensa/xtfpga-i2s.o
CC [M] sound/soc/sof/intel/hda-loader.o
CC [M] sound/soc/sof/intel/hda-stream.o
sound/soc/sof/intel/byt.c:613:18: error: ‘intel_ipc_msg_data’ undeclared here (not in a function); did you mean ‘sof_ipc_msg_data’?
613 | .ipc_msg_data = intel_ipc_msg_data,
| ^~~~~~~~~~~~~~~~~~
| sof_ipc_msg_data
sound/soc/sof/intel/byt.c:614:20: error: ‘intel_ipc_pcm_params’ undeclared here (not in a function); did you mean ‘sof_ipc_pcm_params’?
614 | .ipc_pcm_params = intel_ipc_pcm_params,
| ^~~~~~~~~~~~~~~~~~~~
| sof_ipc_pcm_params
sound/soc/sof/intel/byt.c:628:14: error: ‘intel_pcm_open’ undeclared here (not in a function)
628 | .pcm_open = intel_pcm_open,
| ^~~~~~~~~~~~~~
CC [M] sound/soc/sof/intel/hda-trace.o
sound/soc/sof/intel/byt.c:629:15: error: ‘intel_pcm_close’ undeclared here (not in a function)
629 | .pcm_close = intel_pcm_close,
| ^~~~~~~~~~~~~~~
3.4 The result was the kernel Image hadn't been generated .
summary: How to work with kernel as standalone build environment under Android 11?
thanks
wish u have a happy national day!
You can try these two ways:
1.add CONFIG_XX to imx8_defconfig manually
2.make ARCH=arm64 imx8_defconfig , and then make menuconfig,after you change the config, you need save .config to imx8_defconfig:make savedefconfig && mv defconfig arch/arm64/configs/xxx_defconfig