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