cvnas: Set config variable when build as OOT module

When cvnas driver is build as OOT module, it is required
to set the following config.
	CONFIG_TEGRA_FUSE_UPSTREAM
	CONFIG_TEGRA_CVNAS

Set these config when CONFIG_TEGRA_OOT_MODULE is set.

Bug 3583599

Change-Id: I8deffa609cfc7abf6c9efd69405295077649c8b1
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2715735
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
This commit is contained in:
Laxman Dewangan
2022-05-20 06:32:17 +00:00
parent eda8327741
commit cb92d33b4e

View File

@@ -8,6 +8,12 @@
ccflags-y += -I$(srctree.nvidia)/include
ccflags-y += -Werror
# Set config when build as OOT module.
ifeq ($(CONFIG_TEGRA_OOT_MODULE),m)
CONFIG_TEGRA_FUSE_UPSTREAM := y
CONFIG_TEGRA_CVNAS := m
endif
ifeq ($(CONFIG_TEGRA_FUSE_UPSTREAM),y)
ccflags-y += -DCONFIG_TEGRA_FUSE_UPSTREAM
endif