From cb92d33b4e86db0c569a59215a5cc232467f8b68 Mon Sep 17 00:00:00 2001 From: Laxman Dewangan Date: Fri, 20 May 2022 06:32:17 +0000 Subject: [PATCH] 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 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2715735 Reviewed-by: Bitan Biswas --- drivers/platform/tegra/cvnas/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/platform/tegra/cvnas/Makefile b/drivers/platform/tegra/cvnas/Makefile index 0e225fcf..48ccb0a4 100644 --- a/drivers/platform/tegra/cvnas/Makefile +++ b/drivers/platform/tegra/cvnas/Makefile @@ -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