gpu: nvgpu: use $(srctree) properly in makefile

Fix include paths for kernel 4.9 and clean up some unnecessary ones.

Bug 1853519

Change-Id: Ic9dc865654e593f4ed92e88863bca87d850aab3c
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/1321226
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Konsta Holtta
2017-01-18 10:54:25 +02:00
committed by mobile promotions
parent 946f1e6359
commit 0742f4e703

View File

@@ -1,11 +1,11 @@
GCOV_PROFILE := y
ccflags-y += -Idrivers/gpu/nvgpu/include
ccflags-y += -Idrivers/video/tegra/host
ccflags-y += -Idrivers/devfreq
ccflags-y += -I../nvgpu/include
ccflags-y += -I../nvgpu/include/uapi
ccflags-y += -I../nvgpu/drivers/gpu/nvgpu/include
ccflags-y += -I$(srctree)/../nvgpu/drivers/gpu/nvgpu/include
ccflags-y += -I$(srctree)/../nvgpu/include
ccflags-y += -I$(srctree)/../nvgpu/include/uapi
ccflags-y += -I$(srctree)/drivers/devfreq
ccflags-y += -Wno-multichar
ccflags-y += -Werror
ccflags-y += -Wno-error=cpp
@@ -14,7 +14,6 @@ ccflags-y += -Wextra -Wno-unused-parameter -Wno-missing-field-initializers
endif
ifeq ($(CONFIG_TEGRA_19x_GPU),y)
ccflags-y += -I$(srctree)/../nvgpu/drivers/gpu/nvgpu/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