This repository has been archived by the owner on Oct 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
63 lines (48 loc) · 1.59 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
ifneq ($(KERNELRELEASE),)
NOSTDINC_FLAGS += \
-I$(M)/backport-include/ \
-I$(M)/backport-include/uapi
ccflags-y += -DDISTRO_NAME="$(shell cat /etc/os-release | grep PRETTY_NAME | sed 's/PRETTY_NAME="//;s/"//' | sed 's/ /-/g')" \
-DKERNEL_VERSION_NAME="$(shell uname -r)" \
-DCSE_BACKPORT_VERSION="$(MODULE_VERSION)"
obj-m := mei.o
mei-objs := drivers/misc/mei/init.o
mei-objs += drivers/misc/mei/hbm.o
mei-objs += drivers/misc/mei/interrupt.o
mei-objs += drivers/misc/mei/client.o
mei-objs += drivers/misc/mei/main.o
mei-objs += drivers/misc/mei/dma-ring.o
mei-objs += drivers/misc/mei/bus.o
mei-objs += drivers/misc/mei/bus-fixup.o
mei-$(CONFIG_DEBUG_FS) += drivers/misc/mei/debugfs.o
mei-$(CONFIG_EVENT_TRACING) += drivers/misc/mei/mei-trace.o
ccflags-y += -I$(M)/drivers/misc/mei/
obj-m += mei-me.o
mei-me-objs := drivers/misc/mei/pci-me.o
mei-me-objs += drivers/misc/mei/hw-me.o
obj-m += mei-gsc.o
mei-gsc-objs := drivers/misc/mei/gsc-me.o
obj-m += mei_hdcp.o
mei_hdcp-objs := drivers/misc/mei/hdcp/mei_hdcp.o
obj-m += mei_pxp.o
mei_pxp-objs := drivers/misc/mei/pxp/mei_pxp.o
obj-m += mei_wdt.o
mei_wdt-objs := drivers/watchdog/mei_wdt.o
obj-m += mei_iaf.o
mei_iaf-objs := drivers/misc/mei/iaf/mei_iaf.o
else
KDIR ?= /lib/modules/`uname -r`/build
backport-include/generated_osv_version.h:
scripts/generate_osv_version_h.sh > $@
modules: backport-include/generated_osv_version.h
$(MAKE) -C $(KDIR) M=$$PWD
mkdir -p bin
cp *.ko bin/
clean:
$(MAKE) -C $(KDIR) M=$$PWD clean
rm -rf bin/
modules_install:
$(MAKE) -C $(KDIR) M=$$PWD modules_install
help:
$(MAKE) -C $(KDIR) M=$$PWD help
endif