mods: use srctree.nvidia-oot if srctree.nvidia is not set

If makefile environment srctree.nvidia is not set
then use the srctree.nvidia-oot for nvidia driver
source path.

This will help to get rid of passing the srctree.nvidia for
building the nvidia-oot. It will pass only srctree.nvidia-oot.

Bug 4087103

Change-Id: I3bca0da88f5980c7f08c4c20d5a742316cc588d1
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2894614
Reviewed-by: Chris Dragan <kdragan@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Laxman Dewangan
2023-04-26 06:22:21 +00:00
committed by mobile promotions
parent cc389c145d
commit f5a3a07c28

View File

@@ -1,6 +1,10 @@
# SPDX-License-Identifier: GPL-2.0-only # SPDX-License-Identifier: GPL-2.0-only
# Copyright (c) 2017-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved. # Copyright (c) 2017-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
ifeq ($(origin srctree.nvidia), undefined)
srctree.nvidia := $(srctree.nvidia-oot)
endif
ccflags-y += -I$(srctree.nvidia)/include ccflags-y += -I$(srctree.nvidia)/include
ccflags-y += -DMODS_HAS_TEGRA ccflags-y += -DMODS_HAS_TEGRA