mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
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:
committed by
mobile promotions
parent
821699d3a3
commit
f5b50fec4d
@@ -52,6 +52,11 @@ endif
|
|||||||
ccflags-y += -I$(srctree.nvmap)/include
|
ccflags-y += -I$(srctree.nvmap)/include
|
||||||
endif
|
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)
|
ifeq ($(CONFIG_NVGPU_DEBUGGER),y)
|
||||||
ccflags-y += -DCONFIG_NVGPU_DEBUGGER
|
ccflags-y += -DCONFIG_NVGPU_DEBUGGER
|
||||||
ccflags-y += -DCONFIG_NVGPU_ENGINE_RESET
|
ccflags-y += -DCONFIG_NVGPU_ENGINE_RESET
|
||||||
|
|||||||
Reference in New Issue
Block a user