fix mali API_VERSION grep
authorStricted <info@stricted.net>
Fri, 22 Feb 2019 22:06:40 +0000 (22:06 +0000)
committerStricted <info@stricted.net>
Fri, 22 Feb 2019 22:06:40 +0000 (22:06 +0000)
drivers/misc/mediatek/gpu/mt8127/mali/mali/Kbuild

index 64d52cd83df52a86708d1ce9752c6f215f39240b..101716efb6e5cde24d6d200e7a75c869a629582a 100644 (file)
@@ -194,7 +194,7 @@ endif
 ccflags-y += -DSVN_REV_STRING=\"$(DRIVER_REV)\"
 
 VERSION_STRINGS :=
-VERSION_STRINGS += API_VERSION=$(shell cd $(DRIVER_DIR); grep "\#define _MALI_API_VERSION" $(FILES_PREFIX)include/linux/mali/mali_utgard_uk_types.h | cut -d' ' -f 3 )
+VERSION_STRINGS += API_VERSION=$(shell grep "\#define _MALI_API_VERSION" $(srctree)/$(DRIVER_DIR)/include/linux/mali/mali_utgard_uk_types.h | cut -d' ' -f 3 )
 VERSION_STRINGS += REPO_URL=$(REPO_URL)
 VERSION_STRINGS += REVISION=$(DRIVER_REV)
 VERSION_STRINGS += CHANGED_REVISION=$(CHANGED_REVISION)