1# SPDX-License-Identifier: GPL-2.0
2ldflags-y += --wrap=is_acpi_device_node
3ldflags-y += --wrap=acpi_get_table
4ldflags-y += --wrap=acpi_put_table
5ldflags-y += --wrap=acpi_evaluate_integer
6ldflags-y += --wrap=acpi_pci_find_root
7ldflags-y += --wrap=pci_walk_bus
8ldflags-y += --wrap=nvdimm_bus_register
9
10DRIVERS := ../../../drivers
11CXL_SRC := $(DRIVERS)/cxl
12CXL_CORE_SRC := $(DRIVERS)/cxl/core
13ccflags-y := -I$(srctree)/drivers/cxl/
14ccflags-y += -D__mock=__weak
15
16obj-m += cxl_acpi.o
17
18cxl_acpi-y := $(CXL_SRC)/acpi.o
19cxl_acpi-y += mock_acpi.o
20cxl_acpi-y += config_check.o
21
22obj-m += cxl_pmem.o
23
24cxl_pmem-y := $(CXL_SRC)/pmem.o
25cxl_pmem-y += config_check.o
26
27obj-m += cxl_core.o
28
29cxl_core-y := $(CXL_CORE_SRC)/bus.o
30cxl_core-y += $(CXL_CORE_SRC)/pmem.o
31cxl_core-y += $(CXL_CORE_SRC)/regs.o
32cxl_core-y += $(CXL_CORE_SRC)/memdev.o
33cxl_core-y += $(CXL_CORE_SRC)/mbox.o
34cxl_core-y += config_check.o
35
36cxl_core-y += mock_pmem.o
37
38obj-m += test/
39