-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
33 lines (24 loc) · 995 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
KVER := $(shell uname -r)
KBASE := /lib/modules/$(KVER)
KSRC := $(KBASE)/source
KBUILD := $(KBASE)/build
MOD_DIR := $(KBASE)/kernel
PWD := $(shell pwd)
INC_INCPATH := $(KBUILD_EXTMOD)/include
DRMD := drivers/gpu/drm/
.PHONY: default clean modules load unload install patch
# make sure our dkms includes override local ones:
LINUXINCLUDE := -I$(INC_INCPATH) -I$(INC_INCPATH)/drm -I$(INC_INCPATH)/uapi $(LINUXINCLUDE)
LINUXINCLUDE += -I$(KBUILD_EXTMOD)/drivers/gpu/drm/amd/include
ccflags-y := -Iinclude/drm
intel_ips-y := $(patsubst %,drivers/platform/x86/%.o,intel_ips)
backport-y := $(patsubst %,drivers/%.o,backport)
obj-$(CONFIG_INTEL_IPS) += intel_ips.o
obj-m += backport.o
BUILD_MODULES := intel_ips.o backport.o
obj-m := $(BUILD_MODULES)
obj-m += drivers/gpu/drm/
modules: $(KBUILD) $(patsubst %.o,%.c,$(BUILD_MODULES))
$(MAKE) -C $(KBUILD) M=$(PWD) O=$(KBUILD) modules
clean:
rm -rf *.o *.ko *.cmd .*.cmd .tmp_versions