git clone https://github.com/al177/esp8089
git clone https://github.com/al177/esp8089
:对比内核版本4.1.35版本发现,在内核顶层的Makefile的LINUXINCLUDE宏中少加入了-I$(objtree)/arch/$(SRCARCH)/include/generated/uapi路径,加入后编译正常。
# Use LINUXINCLUDE when you must reference the include/ directory.
# Needed to be compatible with the O= option
cd /mangopi_r3/openwrt/3/buildroot-tiny200-master/output/build/linux-5.4.99/
nano Makefile
LINUXINCLUDE := \
-I$(srctree)/arch/$(SRCARCH)/include \
-I$(objtree)/arch/$(SRCARCH)/include/generated/uapi \
如果没有效果,可以尝试一下 apt-get install linux-libc-dev-arm64-cross --------------
ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make -C ~/mangopi_r3/openwrt/3/buildroot-tiny200-master1/output/build/linux-5.4.99/ M=${PWD} modules
最近编辑记录 kc87654321 (2022-03-16 13:30:16)
离线