forked from CHN-beta/rkp-ipid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (26 loc) · 785 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
34
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=rkp-ipid
PKG_RELEASE:=2
include $(INCLUDE_DIR)/package.mk
define KernelPackage/rkp-ipid
SUBMENU:=Other modules
TITLE:=rkp-ipid
FILES:=$(PKG_BUILD_DIR)/rkp-ipid.ko
AUTOLOAD:=$(call AutoLoad, 99, rkp-ipid)
KCONFIG:=
endef
EXTRA_KCONFIG:= \
CONFIG_RKP_IPID=m
EXTRA_CFLAGS:= \
$(patsubst CONFIG_%, -DCONFIG_%=1, $(patsubst %=m,%,$(filter %=m,$(EXTRA_KCONFIG)))) \
$(patsubst CONFIG_%, -DCONFIG_%=1, $(patsubst %=y,%,$(filter %=y,$(EXTRA_KCONFIG)))) \
-DVERSION=$(PKG_RELEASE)
MAKE_OPTS:=$(KERNEL_MAKE_FLAGS) \
M="$(PKG_BUILD_DIR)" \
EXTRA_CFLAGS="$(EXTRA_CFLAGS)" \
$(EXTRA_KCONFIG)
define Build/Compile
$(MAKE) -C "$(LINUX_DIR)" $(MAKE_OPTS) modules
endef
$(eval $(call KernelPackage,rkp-ipid))