我试图为像素4构建Android内核。
export ARCH=arm64
export CROSS_COMPILE=/home/xxx/AOSP/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-
make floral_defconfig (not sure)
make我失败了,因为一个错误:
arch/arm64/Makefile:49: LSE atomics not supported by binutils
arch/arm64/Makefile:57: Detected assembler with broken .inst; disassembly will be unreliable
arch/arm64/Makefile:83: *** CROSS_COMPILE_ARM32 not defined or empty, the compat vDSO will not be built. Stop.我试过export CC_FOR_BUILD=clang,但没成功。
我该怎么解决这个问题。
发布于 2022-12-04 10:18:53
错误消息在上面是很清楚的,您还没有定义某些变量。试着遵循这些指南,非常有用:
https://github.com/nathanchance/android-kernel-clang
https://forum.xda-developers.com/t/reference-how-to-compile-an-android-kernel.3627297/
https://stackoverflow.com/questions/74343968
复制相似问题