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