android_kernel_xiaomi_sm8150 icon indicating copy to clipboard operation
android_kernel_xiaomi_sm8150 copied to clipboard

尝试编译遇到错误,可以分享一下你的编译命令和环境变量设置吗?

Open QingLea opened this issue 11 months ago • 0 comments

尝试编译你的内核遇到错误,我的命令是

make O=out ARCH=arm64 raphael_defconfig

make -j$(nproc --all) O=out \
                      ARCH=arm64 \
                      CC=clang \
                      CLANG_TRIPLE=aarch64-linux-gnu- \
                      CROSS_COMPILE=aarch64-linux-android- \
                      DTC_EXT=dtc \
                      2>&1 | tee kernel.log

环境变量是

export ARCH=arm64
export SUBARCH=arm64
export LLVM=1
export DTC_EXT=dtc
export CROSS_COMPILE=aarch64-linux-android-
export PATH="/home/ubuntu/workplace/clang/bin:/home/ubuntu/workplace/gcc/bin:${PATH}"

我正在使用的是AOSP-Clang

但是遇到了报错 image

image

能分享一下你编译内核使用的命令和环境变量和工具链吗? 或者简单说明一下你是怎么编译这个内核的?

QingLea avatar Mar 26 '24 13:03 QingLea