From 9d0dda14ae666dd8bef1d59dcf3de8f66b24cc6f Mon Sep 17 00:00:00 2001 From: Jon Hunter Date: Mon, 3 Oct 2022 11:41:57 +0100 Subject: [PATCH] gpu: host1x-nvhost: Update include path When building the host1x-nvhost driver as an external module, the driver source is now copied into a common location with all the other external modules. Therefore, we can now use the 'srctree.nvidia' path for finding the necessary header files for Host1x. Update the include search paths to use 'srctree.nvidia' when building the driver. Bug 3817518 Change-Id: I443dd4cb6d01c4e9be8f3c02550b1050d0bcfd28 Signed-off-by: Jon Hunter Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2785956 Reviewed-by: svcacv Reviewed-by: Mikko Perttunen GVS: Gerrit_Virtual_Submit --- drivers/gpu/host1x-nvhost/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/host1x-nvhost/Makefile b/drivers/gpu/host1x-nvhost/Makefile index 65fbd82d..48bd9441 100644 --- a/drivers/gpu/host1x-nvhost/Makefile +++ b/drivers/gpu/host1x-nvhost/Makefile @@ -7,7 +7,7 @@ ccflags-y += -I$(srctree.nvidia)/include ccflags-y += -I$(srctree.nvidia)/include/uapi/linux -ccflags-y += -I$(srctree.host1x)/include +ccflags-y += -I$(srctree.nvidia)/drivers/gpu/host1x/include ccflags-y += -DCONFIG_TEGRA_HOST1X ccflags-y += -Werror