mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 10:11:26 +03:00
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 <jonathanh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2785956 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
17 lines
411 B
Makefile
17 lines
411 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# Tegra Host1x-Nvhost Driver.
|
|
#
|
|
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved.
|
|
#
|
|
|
|
ccflags-y += -I$(srctree.nvidia)/include
|
|
ccflags-y += -I$(srctree.nvidia)/include/uapi/linux
|
|
ccflags-y += -I$(srctree.nvidia)/drivers/gpu/host1x/include
|
|
ccflags-y += -DCONFIG_TEGRA_HOST1X
|
|
ccflags-y += -Werror
|
|
|
|
host1x-nvhost-objs = nvhost.o falcon.o
|
|
|
|
obj-m += host1x-nvhost.o
|