nvgpu: Add out-of-tree headers path when building as OOT module

It is required to build nvgpu as separate module from OOT modules
because its source will be continue to be in different repository.
The nvgpu module will depends on the headers and symvars from
core kernel and OOT modules.
Add the path of headers of OOT modules when compiling the nvgpu as
OOT module.

Bug 4038415

Change-Id: I0f42c8e75ca63784c9d9ba3624e5ed0141e1df77
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2880466
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Laxman Dewangan
2023-03-31 07:50:44 +00:00
committed by mobile promotions
parent 821699d3a3
commit f5b50fec4d

View File

@@ -52,6 +52,11 @@ endif
ccflags-y += -I$(srctree.nvmap)/include
endif
# When compiling as OOT module, include the headers from nvidia-oot tree.
ifeq ($(CONFIG_TEGRA_OOT_MODULE),m)
ccflags-y += -I$(srctree.nvidia)/include
endif
ifeq ($(CONFIG_NVGPU_DEBUGGER),y)
ccflags-y += -DCONFIG_NVGPU_DEBUGGER
ccflags-y += -DCONFIG_NVGPU_ENGINE_RESET