167dcdd4dSDan Williams# SPDX-License-Identifier: GPL-2.0 2814dff9aSDan Williamsldflags-y += --wrap=acpi_table_parse_cedt 367dcdd4dSDan Williamsldflags-y += --wrap=is_acpi_device_node 467dcdd4dSDan Williamsldflags-y += --wrap=acpi_evaluate_integer 567dcdd4dSDan Williamsldflags-y += --wrap=acpi_pci_find_root 667dcdd4dSDan Williamsldflags-y += --wrap=nvdimm_bus_register 798d2d3a2SDan Williamsldflags-y += --wrap=devm_cxl_port_enumerate_dports 8d17d0540SDan Williamsldflags-y += --wrap=devm_cxl_setup_hdm 9eb0764b8SDan Williamsldflags-y += --wrap=devm_cxl_enable_hdm 10d17d0540SDan Williamsldflags-y += --wrap=devm_cxl_add_passthrough_decoder 11d17d0540SDan Williamsldflags-y += --wrap=devm_cxl_enumerate_decoders 122e4ba0ecSDan Williamsldflags-y += --wrap=cxl_await_media_ready 13a12562bbSDan Williamsldflags-y += --wrap=cxl_hdm_decode_init 1459c3368bSDave Jiangldflags-y += --wrap=cxl_dvsec_rr_decode 15*eb4663b0SRobert Richterldflags-y += --wrap=devm_cxl_add_rch_dport 16*eb4663b0SRobert Richterldflags-y += --wrap=cxl_rcd_component_reg_phys 1767dcdd4dSDan Williams 1867dcdd4dSDan WilliamsDRIVERS := ../../../drivers 1967dcdd4dSDan WilliamsCXL_SRC := $(DRIVERS)/cxl 2067dcdd4dSDan WilliamsCXL_CORE_SRC := $(DRIVERS)/cxl/core 2167dcdd4dSDan Williamsccflags-y := -I$(srctree)/drivers/cxl/ 2267dcdd4dSDan Williamsccflags-y += -D__mock=__weak 234a20bc3eSDan Williamsccflags-y += -DTRACE_INCLUDE_PATH=$(CXL_CORE_SRC) -I$(srctree)/drivers/cxl/core/ 2467dcdd4dSDan Williams 2567dcdd4dSDan Williamsobj-m += cxl_acpi.o 2667dcdd4dSDan Williams 2767dcdd4dSDan Williamscxl_acpi-y := $(CXL_SRC)/acpi.o 2867dcdd4dSDan Williamscxl_acpi-y += mock_acpi.o 2967dcdd4dSDan Williamscxl_acpi-y += config_check.o 308c149eb0SDan Williamscxl_acpi-y += cxl_acpi_test.o 3167dcdd4dSDan Williams 3267dcdd4dSDan Williamsobj-m += cxl_pmem.o 3367dcdd4dSDan Williams 3467dcdd4dSDan Williamscxl_pmem-y := $(CXL_SRC)/pmem.o 3532828115SDave Jiangcxl_pmem-y += $(CXL_SRC)/security.o 3667dcdd4dSDan Williamscxl_pmem-y += config_check.o 378c149eb0SDan Williamscxl_pmem-y += cxl_pmem_test.o 3867dcdd4dSDan Williams 3954cdbf84SBen Widawskyobj-m += cxl_port.o 4054cdbf84SBen Widawsky 4154cdbf84SBen Widawskycxl_port-y := $(CXL_SRC)/port.o 4254cdbf84SBen Widawskycxl_port-y += config_check.o 438c149eb0SDan Williamscxl_port-y += cxl_port_test.o 448c149eb0SDan Williams 4554cdbf84SBen Widawsky 468dd2bc0fSBen Widawskyobj-m += cxl_mem.o 478dd2bc0fSBen Widawsky 488dd2bc0fSBen Widawskycxl_mem-y := $(CXL_SRC)/mem.o 498dd2bc0fSBen Widawskycxl_mem-y += config_check.o 508c149eb0SDan Williamscxl_mem-y += cxl_mem_test.o 518dd2bc0fSBen Widawsky 5267dcdd4dSDan Williamsobj-m += cxl_core.o 5367dcdd4dSDan Williams 540ff0af18SDan Williamscxl_core-y := $(CXL_CORE_SRC)/port.o 5567dcdd4dSDan Williamscxl_core-y += $(CXL_CORE_SRC)/pmem.o 5667dcdd4dSDan Williamscxl_core-y += $(CXL_CORE_SRC)/regs.o 5767dcdd4dSDan Williamscxl_core-y += $(CXL_CORE_SRC)/memdev.o 5867dcdd4dSDan Williamscxl_core-y += $(CXL_CORE_SRC)/mbox.o 5998d2d3a2SDan Williamscxl_core-y += $(CXL_CORE_SRC)/pci.o 60d17d0540SDan Williamscxl_core-y += $(CXL_CORE_SRC)/hdm.o 614a20bc3eSDan Williamscxl_core-$(CONFIG_TRACING) += $(CXL_CORE_SRC)/trace.o 62779dd20cSBen Widawskycxl_core-$(CONFIG_CXL_REGION) += $(CXL_CORE_SRC)/region.o 6367dcdd4dSDan Williamscxl_core-y += config_check.o 648c149eb0SDan Williamscxl_core-y += cxl_core_test.o 6567dcdd4dSDan Williams 6667dcdd4dSDan Williamsobj-m += test/ 67