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 11ldflags-y += --wrap=cxl_await_media_ready 12ldflags-y += --wrap=cxl_hdm_decode_init 13ldflags-y += --wrap=cxl_dvsec_rr_decode 14ldflags-y += --wrap=devm_cxl_add_rch_dport 15ldflags-y += --wrap=cxl_rcd_component_reg_phys 16 17DRIVERS := ../../../drivers 18CXL_SRC := $(DRIVERS)/cxl 19CXL_CORE_SRC := $(DRIVERS)/cxl/core 20ccflags-y := -I$(srctree)/drivers/cxl/ 21ccflags-y += -D__mock=__weak 22ccflags-y += -DTRACE_INCLUDE_PATH=$(CXL_CORE_SRC) -I$(srctree)/drivers/cxl/core/ 23 24obj-m += cxl_acpi.o 25 26cxl_acpi-y := $(CXL_SRC)/acpi.o 27cxl_acpi-y += mock_acpi.o 28cxl_acpi-y += config_check.o 29cxl_acpi-y += cxl_acpi_test.o 30 31obj-m += cxl_pmem.o 32 33cxl_pmem-y := $(CXL_SRC)/pmem.o 34cxl_pmem-y += $(CXL_SRC)/security.o 35cxl_pmem-y += config_check.o 36cxl_pmem-y += cxl_pmem_test.o 37 38obj-m += cxl_port.o 39 40cxl_port-y := $(CXL_SRC)/port.o 41cxl_port-y += config_check.o 42cxl_port-y += cxl_port_test.o 43 44 45obj-m += cxl_mem.o 46 47cxl_mem-y := $(CXL_SRC)/mem.o 48cxl_mem-y += config_check.o 49cxl_mem-y += cxl_mem_test.o 50 51obj-m += cxl_core.o 52 53cxl_core-y := $(CXL_CORE_SRC)/port.o 54cxl_core-y += $(CXL_CORE_SRC)/pmem.o 55cxl_core-y += $(CXL_CORE_SRC)/regs.o 56cxl_core-y += $(CXL_CORE_SRC)/memdev.o 57cxl_core-y += $(CXL_CORE_SRC)/mbox.o 58cxl_core-y += $(CXL_CORE_SRC)/pci.o 59cxl_core-y += $(CXL_CORE_SRC)/hdm.o 60cxl_core-y += $(CXL_CORE_SRC)/pmu.o 61cxl_core-$(CONFIG_TRACING) += $(CXL_CORE_SRC)/trace.o 62cxl_core-$(CONFIG_CXL_REGION) += $(CXL_CORE_SRC)/region.o 63cxl_core-y += config_check.o 64cxl_core-y += cxl_core_test.o 65cxl_core-y += cxl_core_exports.o 66 67obj-m += test/ 68