82 lines
2.9 KiB
Plaintext
Raw Normal View History

2022-05-09 13:18:59 -07:00
###########################################################################
# Kbuild fragment for nvidia-uvm.ko
###########################################################################
UVM_BUILD_TYPE = release
#
# Define NVIDIA_UVM_{SOURCES,OBJECTS}
#
NVIDIA_UVM_OBJECTS =
include $(src)/nvidia-uvm/nvidia-uvm-sources.Kbuild
NVIDIA_UVM_OBJECTS += $(patsubst %.c,%.o,$(NVIDIA_UVM_SOURCES))
obj-m += nvidia-uvm.o
nvidia-uvm-y := $(NVIDIA_UVM_OBJECTS)
NVIDIA_UVM_KO = nvidia-uvm/nvidia-uvm.ko
#
# Define nvidia-uvm.ko-specific CFLAGS.
#
ifeq ($(UVM_BUILD_TYPE),debug)
2024-10-22 17:38:58 +02:00
NVIDIA_UVM_CFLAGS += -DDEBUG -g
endif
ifeq ($(UVM_BUILD_TYPE),develop)
# -DDEBUG is required, in order to allow pr_devel() print statements to
# work:
NVIDIA_UVM_CFLAGS += -DDEBUG
NVIDIA_UVM_CFLAGS += -DNVIDIA_UVM_DEVELOP
2022-05-09 13:18:59 -07:00
endif
NVIDIA_UVM_CFLAGS += -DNVIDIA_UVM_ENABLED
NVIDIA_UVM_CFLAGS += -DNVIDIA_UNDEF_LEGACY_BIT_MACROS
NVIDIA_UVM_CFLAGS += -DLinux
NVIDIA_UVM_CFLAGS += -D__linux__
NVIDIA_UVM_CFLAGS += -I$(src)/nvidia-uvm
$(call ASSIGN_PER_OBJ_CFLAGS, $(NVIDIA_UVM_OBJECTS), $(NVIDIA_UVM_CFLAGS))
#
# Register the conftests needed by nvidia-uvm.ko
#
NV_OBJECTS_DEPEND_ON_CONFTEST += $(NVIDIA_UVM_OBJECTS)
NV_CONFTEST_FUNCTION_COMPILE_TESTS += radix_tree_empty
NV_CONFTEST_FUNCTION_COMPILE_TESTS += radix_tree_replace_slot
NV_CONFTEST_FUNCTION_COMPILE_TESTS += pnv_npu2_init_context
NV_CONFTEST_FUNCTION_COMPILE_TESTS += cpumask_of_node
NV_CONFTEST_FUNCTION_COMPILE_TESTS += list_is_first
NV_CONFTEST_FUNCTION_COMPILE_TESTS += ioasid_get
2023-09-21 10:43:43 -07:00
NV_CONFTEST_FUNCTION_COMPILE_TESTS += mm_pasid_drop
2022-11-10 08:39:33 -08:00
NV_CONFTEST_FUNCTION_COMPILE_TESTS += mmget_not_zero
2023-05-30 10:11:36 -07:00
NV_CONFTEST_FUNCTION_COMPILE_TESTS += mmgrab
2023-02-28 11:12:44 -08:00
NV_CONFTEST_FUNCTION_COMPILE_TESTS += iommu_sva_bind_device_has_drvdata_arg
2023-05-30 10:11:36 -07:00
NV_CONFTEST_FUNCTION_COMPILE_TESTS += vm_fault_to_errno
2023-10-17 09:25:29 -07:00
NV_CONFTEST_FUNCTION_COMPILE_TESTS += find_next_bit_wrap
2024-01-24 17:51:53 +01:00
NV_CONFTEST_FUNCTION_COMPILE_TESTS += iommu_is_dma_domain
2024-10-22 17:38:58 +02:00
NV_CONFTEST_FUNCTION_COMPILE_TESTS += folio_test_swapcache
2022-05-09 13:18:59 -07:00
NV_CONFTEST_TYPE_COMPILE_TESTS += vm_ops_fault_removed_vma_arg
NV_CONFTEST_TYPE_COMPILE_TESTS += mmu_notifier_ops_invalidate_range
2023-10-17 09:25:29 -07:00
NV_CONFTEST_TYPE_COMPILE_TESTS += mmu_notifier_ops_arch_invalidate_secondary_tlbs
2022-05-09 13:18:59 -07:00
NV_CONFTEST_TYPE_COMPILE_TESTS += migrate_vma_added_flags
2023-02-28 11:12:44 -08:00
NV_CONFTEST_TYPE_COMPILE_TESTS += migrate_device_range
2023-05-30 10:11:36 -07:00
NV_CONFTEST_TYPE_COMPILE_TESTS += handle_mm_fault_has_mm_arg
NV_CONFTEST_TYPE_COMPILE_TESTS += handle_mm_fault_has_pt_regs_arg
2023-07-18 15:54:53 +02:00
NV_CONFTEST_TYPE_COMPILE_TESTS += mempolicy_has_unified_nodes
NV_CONFTEST_TYPE_COMPILE_TESTS += mempolicy_has_home_node
2023-09-21 10:43:43 -07:00
NV_CONFTEST_TYPE_COMPILE_TESTS += mpol_preferred_many_present
2023-08-22 15:09:37 +02:00
NV_CONFTEST_TYPE_COMPILE_TESTS += mmu_interval_notifier
2024-07-19 15:45:15 -07:00
NV_CONFTEST_TYPE_COMPILE_TESTS += fault_flag_remote_present
2024-10-22 17:38:58 +02:00
NV_CONFTEST_TYPE_COMPILE_TESTS += struct_page_has_zone_device_data
2022-05-09 13:18:59 -07:00
NV_CONFTEST_SYMBOL_COMPILE_TESTS += is_export_symbol_present_int_active_memcg
2024-01-24 17:51:53 +01:00
NV_CONFTEST_SYMBOL_COMPILE_TESTS += is_export_symbol_present_migrate_vma_setup