Loading drivers/kernelsu/Makefile +1 −9 Original line number Diff line number Diff line Loading @@ -12,17 +12,9 @@ obj-y += embed_ksud.o obj-y += kernel_compat.o obj-y += selinux/ # .git is a text file while the module is imported by 'git submodule add'. ifeq ($(shell test -e $(srctree)/$(src)/../.git; echo $$?),0) KSU_GIT_VERSION := $(shell cd $(srctree)/$(src); /usr/bin/env PATH="$$PATH":/usr/bin:/usr/local/bin git rev-list --count HEAD) # ksu_version: major * 10000 + git version + 200 for historical reasons $(eval KSU_VERSION=$(shell expr 10000 + $(KSU_GIT_VERSION) + 200)) $(eval KSU_VERSION=11210) $(info -- KernelSU version: $(KSU_VERSION)) ccflags-y += -DKSU_VERSION=$(KSU_VERSION) else # If there is no .git file, the default version will be passed. $(warning "KSU_GIT_VERSION not defined! It is better to make KernelSU a git submodule!") ccflags-y += -DKSU_VERSION=16 endif ifndef KSU_EXPECTED_SIZE KSU_EXPECTED_SIZE := 0x033b Loading Loading
drivers/kernelsu/Makefile +1 −9 Original line number Diff line number Diff line Loading @@ -12,17 +12,9 @@ obj-y += embed_ksud.o obj-y += kernel_compat.o obj-y += selinux/ # .git is a text file while the module is imported by 'git submodule add'. ifeq ($(shell test -e $(srctree)/$(src)/../.git; echo $$?),0) KSU_GIT_VERSION := $(shell cd $(srctree)/$(src); /usr/bin/env PATH="$$PATH":/usr/bin:/usr/local/bin git rev-list --count HEAD) # ksu_version: major * 10000 + git version + 200 for historical reasons $(eval KSU_VERSION=$(shell expr 10000 + $(KSU_GIT_VERSION) + 200)) $(eval KSU_VERSION=11210) $(info -- KernelSU version: $(KSU_VERSION)) ccflags-y += -DKSU_VERSION=$(KSU_VERSION) else # If there is no .git file, the default version will be passed. $(warning "KSU_GIT_VERSION not defined! It is better to make KernelSU a git submodule!") ccflags-y += -DKSU_VERSION=16 endif ifndef KSU_EXPECTED_SIZE KSU_EXPECTED_SIZE := 0x033b Loading