This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# In Makefile, check if the current kernel version is < 5.6, | |
# it sets `ADD_CCFLAGS_Y=-DOLD_KERNEL_FOR_PIN` | |
# Kernel Version | |
KVER := $(shell uname -r) | |
KMAJ := $(shell echo $(KVER) | \ | |
sed -e 's/^\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*.*/\1/') | |
KMIN := $(shell echo $(KVER) | \ | |
sed -e 's/^[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*.*/\1/') |