使用aarch64工具链无法编译出.ko文件
make: Entering directory '/share/AIO-3399Pro_source/kernel'Makefile:736: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler
Makefile:660: arch/aarch64/Makefile: No such file or directory
make: *** No rule to make target 'arch/aarch64/Makefile'.Stop.
make: Leaving directory '/share/AIO-3399Pro_source/kernel'
make: *** Error 2
已解决。
先执行:
export PATH=$PATH:/share/AIO-3399Pro_source/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin
export ARCH=arm64
export CROSS_COMPILE=aarch64-linux-android-
export REAL_CROSS_COMPILE=aarch64-linux-android-
编写makefile:
obj-m += word_count.o
all:
make -C /share/AIO-3399Pro_source/kernel/ M=$(PWD) modules
clean:
make -C /share/AIO-3399Pro_source/kernel/ M=$(PWD) clean
页:
[1]