mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 18:21:35 +03:00
The NVMAP configs NVMAP_CONFIG_LOADABLE_MODULE and NVMAP_CONFIG_UPSTREAM_KERNEL are no longer needed or used because the NVMAP driver is now always compiled as an out-of-tree driver. Remove these legacy configs. Bug 4074863 Change-Id: I4998ab9b2f0ab660a07aab262074c15db913c298 Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3136417 GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com> Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Ketan Patil <ketanp@nvidia.com>
46 lines
1.0 KiB
Makefile
46 lines
1.0 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
# Copyright (c) 2024, NVIDIA CORPORATION. All rights reserved.
|
|
|
|
GCOV_PROFILE := y
|
|
|
|
subdir-ccflags-y += -Werror
|
|
|
|
include $(srctree.nvidia-oot)/drivers/video/tegra/nvmap/Makefile.memory.configs
|
|
|
|
# If the kernel enables CONFIG_GENERIC_IOREMAP,
|
|
# then pass this flag for building NVMAP.
|
|
ifdef CONFIG_GENERIC_IOREMAP
|
|
ccflags-y += -DCONFIG_GENERIC_IOREMAP
|
|
endif
|
|
|
|
ifeq ($(NVMAP_CONFIG), y)
|
|
# Build NvMap only when NVMAP_CONFIG is set to y
|
|
nvmap-y := nvmap_core.o \
|
|
nvmap_alloc.o \
|
|
nvmap_cache.o \
|
|
nvmap_dev.o \
|
|
nvmap_dmabuf.o \
|
|
nvmap_fault.o \
|
|
nvmap_handle.o \
|
|
nvmap_heap.o \
|
|
nvmap_ioctl.o \
|
|
nvmap_init.o \
|
|
nvmap_tag.o \
|
|
nvmap_mm.o \
|
|
nvmap_stats.o \
|
|
nvmap_carveout.o \
|
|
nvmap_kasan_wrapper.o
|
|
nvmap-$(NVMAP_CONFIG_HANDLE_AS_ID) += nvmap_id_array.o
|
|
|
|
nvmap-$(NVMAP_CONFIG_SCIIPC) += nvmap_sci_ipc.o
|
|
|
|
ifeq ($(NVMAP_CONFIG_PAGE_POOLS), y)
|
|
nvmap-y += nvmap_pp.o
|
|
endif #NVMAP_CONFIG_PAGE_POOLS
|
|
|
|
KASAN_SANITIZE_nvmap_kasan_wrapper.o := n
|
|
|
|
nvmap-y += nvmap_cache_maint.o
|
|
obj-m += nvmap.o
|
|
endif #NVMAP_CONFIG
|