1# SPDX-License-Identifier: GPL-2.0 2ldflags-y += --wrap=acpi_table_parse_cedt 3ldflags-y += --wrap=is_acpi_device_node 4ldflags-y += --wrap=acpi_evaluate_integer 5ldflags-y += --wrap=acpi_pci_find_root 6ldflags-y += --wrap=nvdimm_bus_register 7ldflags-y += --wrap=devm_cxl_port_enumerate_dports 8ldflags-y += --wrap=devm_cxl_setup_hdm 9ldflags-y += --wrap=devm_cxl_add_passthrough_decoder 10ldflags-y += --wrap=devm_cxl_enumerate_decoders 11 12DRIVERS := ../../../drivers 13CXL_SRC := $(DRIVERS)/cxl 14CXL_CORE_SRC := $(DRIVERS)/cxl/core 15ccflags-y := -I$(srctree)/drivers/cxl/ 16ccflags-y += -D__mock=__weak 17 18obj-m += cxl_acpi.o 19 20cxl_acpi-y := $(CXL_SRC)/acpi.o 21cxl_acpi-y += mock_acpi.o 22cxl_acpi-y += config_check.o 23 24obj-m += cxl_pmem.o 25 26cxl_pmem-y := $(CXL_SRC)/pmem.o 27cxl_pmem-y += config_check.o 28 29obj-m += cxl_port.o 30 31cxl_port-y := $(CXL_SRC)/port.o 32cxl_port-y += config_check.o 33 34obj-m += cxl_mem.o 35 36cxl_mem-y := $(CXL_SRC)/mem.o 37cxl_mem-y += mock_mem.o 38cxl_mem-y += config_check.o 39 40obj-m += cxl_core.o 41 42cxl_core-y := $(CXL_CORE_SRC)/port.o 43cxl_core-y += $(CXL_CORE_SRC)/pmem.o 44cxl_core-y += $(CXL_CORE_SRC)/regs.o 45cxl_core-y += $(CXL_CORE_SRC)/memdev.o 46cxl_core-y += $(CXL_CORE_SRC)/mbox.o 47cxl_core-y += $(CXL_CORE_SRC)/pci.o 48cxl_core-y += $(CXL_CORE_SRC)/hdm.o 49cxl_core-y += config_check.o 50 51obj-m += test/ 52