summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/Makefile.nvgpu
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2017-08-23 16:05:13 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-08-25 21:34:27 -0400
commit867928dd232d941abff9e17f3c44af06080c0134 (patch)
tree3e8020e740ebff3d2499ada82396c1cbe0c66bd3 /drivers/gpu/nvgpu/Makefile.nvgpu
parent9a28bab63fc99146ba2f356bab861d2a59cce115 (diff)
nvgpu: Fix include paths for in-tree builds
When compiling the kernel with an O= option (which stores built files outside the source tree) the kernel adds various extra source paths to the system include path. However, this doesn't happen when building in-tree. Adjust the main nvgpu Makefile to ensure all required paths are part of the system include path so that all headers can be found. Bug 1978388 Change-Id: I51ffc78b3863b89ebb5f051c963a8016258534a3 Signed-off-by: Stephen Warren <swarren@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1544320 (cherry picked from commit 572c509152ec95643bbddb32c38d4b58209295b8 in rel-28) Reviewed-on: https://git-master.nvidia.com/r/1545675 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Bo Yan <byan@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/Makefile.nvgpu')
-rw-r--r--drivers/gpu/nvgpu/Makefile.nvgpu1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/Makefile.nvgpu b/drivers/gpu/nvgpu/Makefile.nvgpu
index dab9db92..25545f29 100644
--- a/drivers/gpu/nvgpu/Makefile.nvgpu
+++ b/drivers/gpu/nvgpu/Makefile.nvgpu
@@ -1,6 +1,7 @@
1GCOV_PROFILE := y 1GCOV_PROFILE := y
2 2
3ccflags-y += -I$(srctree)/../nvgpu/drivers/gpu/nvgpu/include 3ccflags-y += -I$(srctree)/../nvgpu/drivers/gpu/nvgpu/include
4ccflags-y += -I$(srctree)/../nvgpu/drivers/gpu/nvgpu
4ccflags-y += -I$(srctree)/../nvgpu/include 5ccflags-y += -I$(srctree)/../nvgpu/include
5ccflags-y += -I$(srctree)/../nvgpu/include/uapi 6ccflags-y += -I$(srctree)/../nvgpu/include/uapi
6 7