sharp-drm-driver-radxa-zero/Makefile
2023-07-11 17:43:35 -05:00

20 lines
446 B
Makefile

obj-m += sharp.o
sharp-objs += main.o drm_iface.o params_iface.o ioctl_iface.o
export KROOT=/lib/modules/$(shell uname -r)/build
all: modules sharp.dtbo
modules modules_install clean::
@$(MAKE) -C $(KROOT) M=$(shell pwd) $@
modules_install:: sharp.dtbo
@$(MAKE) -C $(KROOT) M=$(shell pwd) $@
cp sharp.dtbo /boot/overlays
sharp.dtbo: sharp.dts
dtc -@ -I dts -O dtb -o sharp.dtbo sharp.dts
clean::
rm -rf Module.symvers modules.order