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=pci_walk_bus 7ldflags-y += --wrap=nvdimm_bus_register 8 9DRIVERS := ../../../drivers 10CXL_SRC := $(DRIVERS)/cxl 11CXL_CORE_SRC := $(DRIVERS)/cxl/core 12ccflags-y := -I$(srctree)/drivers/cxl/ 13ccflags-y += -D__mock=__weak 14 15obj-m += cxl_acpi.o 16 17cxl_acpi-y := $(CXL_SRC)/acpi.o 18cxl_acpi-y += mock_acpi.o 19cxl_acpi-y += config_check.o 20 21obj-m += cxl_pmem.o 22 23cxl_pmem-y := $(CXL_SRC)/pmem.o 24cxl_pmem-y += config_check.o 25 26obj-m += cxl_core.o 27 28cxl_core-y := $(CXL_CORE_SRC)/bus.o 29cxl_core-y += $(CXL_CORE_SRC)/pmem.o 30cxl_core-y += $(CXL_CORE_SRC)/regs.o 31cxl_core-y += $(CXL_CORE_SRC)/memdev.o 32cxl_core-y += $(CXL_CORE_SRC)/mbox.o 33cxl_core-y += config_check.o 34 35cxl_core-y += mock_pmem.o 36 37obj-m += test/ 38