Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 377d0e3b authored by t-user-nwd's avatar t-user-nwd Committed by Matt Wagantall
Browse files

Update Makefile to not use $PWD.

Looks like on a kernel version 3.18 $(PWD) returns <root_dir>.
But on kernel version 3.14 it returns <root_dir>/kernel.

Change-Id: I1103667d474857d0e2fd470b976260419b07568d
Git-commit: 8368496921bfc257ac1b59bcdc6e273c3d1c36a7
Git-repo: https://github.com/TrustonicNwd/tee-mobicore-driver.kernel.git


Acked-by: default avatarTony Hamilton <tonyh@qti.qualcomm.com>
Signed-off-by: default avatarPuneet Mishra <puneetm@codeaurora.org>
parent d994c652
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@
# Makefile for the <t-base core driver
#

GUD_ROOT_FOLDER := drivers/gud/
GUD_ROOT_FOLDER := drivers/gud

# add our modules to kernel.
obj-$(CONFIG_MOBICORE_DRIVER) += mcDrvModule.o
@@ -18,7 +18,7 @@ ccflags-$(CONFIG_MOBICORE_DEBUG) += -DDEBUG
ccflags-$(CONFIG_MOBICORE_VERBOSE) += -DDEBUG_VERBOSE

# Choose one platform from the folder
MOBICORE_PLATFORM := $(shell (ls -1 $(PWD)/$(GUD_ROOT_FOLDER)/MobiCoreDriver/platforms | tail -1))
MOBICORE_PLATFORM := $(shell (ls -1 $(srctree)/$(GUD_ROOT_FOLDER)/MobiCoreDriver/platforms | tail -1))
# Use the available platform folder
ccflags-y += -I$(GUD_ROOT_FOLDER)/MobiCoreDriver/platforms/$(MOBICORE_PLATFORM)
# MobiCore Driver includes