mods: Get rid of non-module build

mods driver inside the nvidia-oot is always build as
module. Remove the handling of non-module build.

Bug 4074863

Change-Id: I11a22c181e159e81328fa8e2d77d1b5bc4474d94
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2890061
Tested-by: Chris Dragan <kdragan@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Laxman Dewangan
2023-04-18 16:02:32 +00:00
committed by mobile promotions
parent 17c13e0ec0
commit 15d1f96bd8

View File

@@ -1,13 +1,10 @@
# SPDX-License-Identifier: GPL-2.0 # SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
ccflags-y += -I$(srctree.nvidia)/include ccflags-y += -I$(srctree.nvidia)/include
ccflags-y += -DMODS_HAS_TEGRA ccflags-y += -DMODS_HAS_TEGRA
ifeq ($(CONFIG_TEGRA_OOT_MODULE),m) obj-m += mods.o
CONFIG_MODS := m
endif
obj-$(CONFIG_MODS) := mods.o
mods-y := mods_irq.o mods-y := mods_irq.o
mods-y += mods_krnl.o mods-y += mods_krnl.o