08-29-2017, 08:04 AM
I don't really know what I'm doing but I changed this line in the Makefile from
to
and I got a different error while make:
Code:
SUBARCH := $(shell uname -m | sed -e s/i.86/i386/ | sed -e s/ppc/powerpc/ | sed -e s/armv.l/arm/)
ARCH ?= $(SUBARCH)
to
Code:
SUBARCH := "arm64"
ARCH ?= $(SUBARCH)
and I got a different error while make:
Code:
rock64@rock64:~/.git/rtl8723bu$ sudo make
[sudo] password for rock64:
make ARCH="arm64" CROSS_COMPILE= -C /lib/modules/4.4.77-rockchip-ayufan-93/build M=/home/rock64/.git/rtl8723bu modules
make[1]: Entering directory '/usr/src/linux-headers-4.4.77-rockchip-ayufan-93'
CC [M] /home/rock64/.git/rtl8723bu/core/rtw_cmd.o
In file included from ./arch/arm64/include/asm/sysreg.h:25:0,
from ./arch/arm64/include/asm/cputype.h:89,
from ./arch/arm64/include/asm/cachetype.h:19,
from ./arch/arm64/include/asm/cache.h:19,
from include/linux/cache.h:5,
from include/linux/printk.h:8,
from include/linux/kernel.h:13,
from include/linux/list.h:8,
from include/linux/preempt.h:10,
from include/linux/spinlock.h:50,
from /home/rock64/.git/rtl8723bu/include/osdep_service_linux.h:24,
from /home/rock64/.git/rtl8723bu/include/osdep_service.h:40,
from /home/rock64/.git/rtl8723bu/include/drv_types.h:32,
from /home/rock64/.git/rtl8723bu/core/rtw_cmd.c:22:
./arch/arm64/include/asm/opcodes.h:5:43: fatal error: ../../arm/include/asm/opcodes.h: No such file or directory
compilation terminated.
scripts/Makefile.build:258: recipe for target '/home/rock64/.git/rtl8723bu/core/rtw_cmd.o' failed
make[2]: *** [/home/rock64/.git/rtl8723bu/core/rtw_cmd.o] Error 1
Makefile:1424: recipe for target '_module_/home/rock64/.git/rtl8723bu' failed
make[1]: *** [_module_/home/rock64/.git/rtl8723bu] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.4.77-rockchip-ayufan-93'
Makefile:321: recipe for target 'modules' failed
make: *** [modules] Error 2