|
发表于 2021-9-1 16:16:29
只看该作者
沙发
已解决。
先执行:
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
复制代码 |
|