mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: Update include paths for OOT module
When building NVGPU as an OOT module for upstream Linux kernels, the NVGPU driver source is now copied into a common location with all the other OOT modules. Therefore, we can now use the 'srctree.nvidia' path for finding the necessary header files for Host1x and NVMAP. Update the include search paths to use 'srctree.nvidia' when building NVGPU as an OOT module. Bug 3817518 Change-Id: I63066e4331c66a0f47ada83fde3e63402faaf38a Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2785910 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
724f49f6eb
commit
6bef424e1e
@@ -39,7 +39,7 @@ endif
|
||||
# srctree.host1x path in order to find the necessary header files for
|
||||
# the upstream host1x driver.
|
||||
ifeq ($(CONFIG_TEGRA_GK20A_NVHOST_HOST1X),y)
|
||||
ccflags-y += -I$(srctree.host1x)/include
|
||||
ccflags-y += -I$(srctree.nvidia)/drivers/gpu/host1x/include
|
||||
endif
|
||||
|
||||
# When using the upstream nvmap driver, the Makefile must define the
|
||||
@@ -47,7 +47,7 @@ endif
|
||||
# the upstream nvmap driver.
|
||||
ifeq ($(CONFIG_NVGPU_NVMAP_NEXT),y)
|
||||
ifeq ($(origin srctree.nvmap), undefined)
|
||||
srctree.nvmap := $(abspath $(shell dirname $(lastword $(MAKEFILE_LIST)))/../../../../nvidia/drivers/video/tegra/nvmap)
|
||||
srctree.nvmap := $(srctree.nvidia)/drivers/video/tegra/nvmap
|
||||
endif
|
||||
ccflags-y += -I$(srctree.nvmap)/include
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user