From d58c3bd152a3f86195a537f7115b3b32b4042a15 Mon Sep 17 00:00:00 2001 From: Stephen Warren Date: Mon, 6 Nov 2017 14:54:45 -0700 Subject: nvgpu: use $(srctree.$(overlay)) Update all Makefiles to make use of the new srctree.$(overlay) variables to remove hard-coding the path to any overlays. Bug 1978395 Change-Id: I160efb55536c1d2b1e090895d9d62432a1e4c28c Signed-off-by: Stephen Warren Reviewed-on: https://git-master.nvidia.com/r/1593802 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/Makefile | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'drivers') diff --git a/drivers/gpu/nvgpu/Makefile b/drivers/gpu/nvgpu/Makefile index a0cb5d90..138068c1 100644 --- a/drivers/gpu/nvgpu/Makefile +++ b/drivers/gpu/nvgpu/Makefile @@ -1,9 +1,9 @@ GCOV_PROFILE := y -ccflags-y += -I$(srctree)/../nvgpu/drivers/gpu/nvgpu/include -ccflags-y += -I$(srctree)/../nvgpu/drivers/gpu/nvgpu -ccflags-y += -I$(srctree)/../nvgpu/include -ccflags-y += -I$(srctree)/../nvgpu/include/uapi +ccflags-y += -I$(srctree.nvgpu)/drivers/gpu/nvgpu/include +ccflags-y += -I$(srctree.nvgpu)/drivers/gpu/nvgpu +ccflags-y += -I$(srctree.nvgpu)/include +ccflags-y += -I$(srctree.nvgpu)/include/uapi ccflags-y += -I$(srctree)/drivers/devfreq @@ -15,11 +15,11 @@ ccflags-y += -Wextra -Wno-unused-parameter -Wno-missing-field-initializers endif ifeq ($(CONFIG_TEGRA_19x_GPU),y) -ccflags-y += -I$(srctree)/../nvgpu-t19x/drivers/gpu/nvgpu -ccflags-y += -I$(srctree)/../nvgpu-t19x/drivers/gpu/nvgpu/include -ccflags-y += -I$(srctree)/../nvgpu-t19x/include -ccflags-y += -I$(srctree)/../nvgpu-t19x/include/uapi -ccflags-y += -I$(srctree)/../t19x/include +ccflags-y += -I$(srctree.nvgpu-t19x)/drivers/gpu/nvgpu +ccflags-y += -I$(srctree.nvgpu-t19x)/drivers/gpu/nvgpu/include +ccflags-y += -I$(srctree.nvgpu-t19x)/include +ccflags-y += -I$(srctree.nvgpu-t19x)/include/uapi +ccflags-y += -I$(srctree.t19x)/include endif obj-$(CONFIG_GK20A) := nvgpu.o -- cgit v1.2.2