From 572c509152ec95643bbddb32c38d4b58209295b8 Mon Sep 17 00:00:00 2001 From: Stephen Warren Date: Wed, 23 Aug 2017 14:05:13 -0600 Subject: [PATCH] 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 1978395 Change-Id: I51ffc78b3863b89ebb5f051c963a8016258534a3 Signed-off-by: Stephen Warren Reviewed-on: https://git-master.nvidia.com/r/1544320 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/Makefile.nvgpu | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/nvgpu/Makefile.nvgpu b/drivers/gpu/nvgpu/Makefile.nvgpu index b2cb5339f..3feb4e2d7 100644 --- a/drivers/gpu/nvgpu/Makefile.nvgpu +++ b/drivers/gpu/nvgpu/Makefile.nvgpu @@ -6,6 +6,7 @@ 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../nvgpu/drivers/gpu/nvgpu ccflags-y += -Wno-multichar ccflags-y += -Werror ccflags-y += -Wno-error=cpp