I have some code that compiles fine on Rpi3 but gives me an error on Rpi4 with the latest released raspbian
Error: '__aeabi_uldivmod' undefined.
This is the makefile:
ifneq ($(KERNELRELEASE),)
obj-m := copleycan.o
copleycan-objs := src/main.o src/cardintf.o src/send.o src/recv.o src/test.o src/utils.o \
src/fileinfo.o src/MsgQueue.o src/command.o src/bdm.o src/xmitbuff.o \
src/usb.o
ccflags-y := -std=gnu99 -Wno-declaration-after-statement
else
KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
default:
$(MAKE) -C $(KDIR) M=$(PWD) modules
endif
Any suggestions?