驱动模块编译报错Error: selected processor does not support `isb ' in ARM mode
-
我想把这个编译成模块https://v853.docs.aw-ol.com/soft/dev_gpio/
写了Makefile文件CROSS_COMPILE := arm-openwrt-linux- CC := $(CROSS_COMPILE)gcc LD := $(CROSS_COMPILE)ld KERNELDIR := /home/allwinner/tina-v853/kernel/linux-4.9 CURRENT_PATH := $(shell pwd) ARCH := arm obj-m := led.o build: kernel_modules kernel_modules: $(MAKE) -C $(KERNELDIR) M=$(CURRENT_PATH) modules ARCH=$(ARCH) clean: $(MAKE) -C $(KERNELDIR) M=$(CURRENT_PATH) clean
但是编译报错了
allwinner@allwinner-VirtualBox:~/nfsroot$ make make -C /home/allwinner/tina-v853/kernel/linux-4.9 M=/home/allwinner/nfsroot modules ARCH=arm make[1]: Entering directory '/home/allwinner/tina-v853/kernel/linux-4.9' CC [M] /home/allwinner/nfsroot/led.o /tmp/ccvV4lGB.s: Assembler messages: /tmp/ccvV4lGB.s:105: Error: selected processor does not support `isb ' in ARM mode /tmp/ccvV4lGB.s:118: Error: selected processor does not support `isb ' in ARM mode make[2]: *** [scripts/Makefile.build:341: /home/allwinner/nfsroot/led.o] Error 1 make[1]: *** [Makefile:1617: _module_/home/allwinner/nfsroot] Error 2 make[1]: Leaving directory '/home/allwinner/tina-v853/kernel/linux-4.9' make: *** [Makefile:13: kernel_modules] Error 2
-
感觉CFLAGS缺失了
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号