Makefile DRVTARGET = sifangrpmsgdrv obj-m := $(DRVTARGET).o
- User
Makefile DRV_TARGET = sifang_rpmsg_drv
obj-m := $(DRV_TARGET).o
- Assistant
Set the kernel version
KERNELVERSION := $(shell uname -r)
Set the path to the kernel source
KERNELDIR := /lib/modules/$(KERNELVERSION)/build
Set the compiler flags
ccflags-y += -I$(src)/include
Build target
(DRV_TARGET)-objs += src/sifang_rpmsg_proc.o