ARCH:= arm64 MVTOOL_PREFIX = /home/walter/work/px30-linux/px30-linux/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu- CROSS_COMPILE= $(MVTOOL_PREFIX) KDIR := /home/walter/work/px30-linux/px30-linux/kernel/ TARGET =wk2xxx_spi EXEC = $(TARGET) obj-m :=$(TARGET).o PWD :=$(shell pwd) all: $(MAKE) ARCH=arm64 -C $(KDIR) M=$(PWD) modules clean: rm -rf *.o *~core.depend.*.cmd *.ko *.mod.c .tmp_versions $(TARGET)