I'm trying to build Android 12.0.0.2 for the imx8mq but it's failing for me. The board I'm using is the imx8mq dev board VAR-DT8MCustomBoard. I used variscite docker 22.04 LTS and followed the instructions from https://variwiki.com/index.php?title=Android_NXP_Guide&release=mx8m-android-12.0.0_2.0.0-v1.0. The only step I skipped is recompiling flex 2.5.39 since it's not included in the prebuilt folder.
From inspecting the log, I noticed that a few things:
1/ There is an unknown command in the build script. I was not able to locate where it is.
build post process
/bin/sh: line 10: @: command not found
2/ There are a few "Pad file tee.bin NOT found" messages
3/ The final error is:
BTF: .tmp_vmlinux.btf: pahole (pahole) is not available
Failed to generate BTF for vmlinux
What can I do to fix the build error?