blob: e0aef8b960e6a23fcc46a78b796425083cd8a25b [file] [log] [blame]
xjb04a4022021-11-25 15:01:52 +08001LOCAL_PATH := $(call my-dir)
2
3# kernel version check
4KERNEL_VERSION := $(word 2,$(subst -, ,$(LINUX_KERNEL_VERSION)))
5MAJOR_VERSION := $(shell echo $(KERNEL_VERSION) | cut -f1 -d.)
6MINOR_VERSION := $(shell echo $(KERNEL_VERSION) | cut -f2 -d.)
7VERSION_CHECK := $(shell test $(MAJOR_VERSION) -ge 5 || test $(MAJOR_VERSION) -ge 4 -a $(MINOR_VERSION) -ge 19 && echo true)
8
9ifeq ($(VERSION_CHECK), true)
10
11include $(CLEAR_VARS)
12LOCAL_MODULE := met.ko
13LOCAL_STRIP_MODULE := true
14
15include $(MTK_KERNEL_MODULE)
16
17endif # Kernel version >= 4.19