blob: e0aef8b960e6a23fcc46a78b796425083cd8a25b [file] [log] [blame]
LOCAL_PATH := $(call my-dir)
# kernel version check
KERNEL_VERSION := $(word 2,$(subst -, ,$(LINUX_KERNEL_VERSION)))
MAJOR_VERSION := $(shell echo $(KERNEL_VERSION) | cut -f1 -d.)
MINOR_VERSION := $(shell echo $(KERNEL_VERSION) | cut -f2 -d.)
VERSION_CHECK := $(shell test $(MAJOR_VERSION) -ge 5 || test $(MAJOR_VERSION) -ge 4 -a $(MINOR_VERSION) -ge 19 && echo true)
ifeq ($(VERSION_CHECK), true)
include $(CLEAR_VARS)
LOCAL_MODULE := met.ko
LOCAL_STRIP_MODULE := true
include $(MTK_KERNEL_MODULE)
endif # Kernel version >= 4.19