fix mali API_VERSION grep
authorStricted <info@stricted.net>
Thu, 22 Mar 2018 15:44:48 +0000 (16:44 +0100)
committerStricted <info@stricted.net>
Sat, 24 Mar 2018 12:51:10 +0000 (13:51 +0100)
drivers/misc/mediatek/gpu/mt8127/mali/mali/Kbuild

index c4fcd5d9c4684e1e0baae54e5bf310ff4b88ad9a..7f6abae267cd7b3eb92f1070cea632d5c0e2cbfb 100755 (executable)
@@ -202,7 +202,7 @@ ccflags-y += -DSVN_REV_STRING=\"$(DRIVER_REV)\"
 ccflags-y += -I$(srctree)/drivers/staging/android
 
 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)