xref: /openbmc/linux/tools/testing/cxl/Kbuild (revision 2a12187d)
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_rcrb_to_component
14
15DRIVERS := ../../../drivers
16CXL_SRC := $(DRIVERS)/cxl
17CXL_CORE_SRC := $(DRIVERS)/cxl/core
18ccflags-y := -I$(srctree)/drivers/cxl/
19ccflags-y += -D__mock=__weak
20
21obj-m += cxl_acpi.o
22
23cxl_acpi-y := $(CXL_SRC)/acpi.o
24cxl_acpi-y += mock_acpi.o
25cxl_acpi-y += config_check.o
26
27obj-m += cxl_pmem.o
28
29cxl_pmem-y := $(CXL_SRC)/pmem.o
30cxl_pmem-y += $(CXL_SRC)/security.o
31cxl_pmem-y += config_check.o
32
33obj-m += cxl_port.o
34
35cxl_port-y := $(CXL_SRC)/port.o
36cxl_port-y += config_check.o
37
38obj-m += cxl_mem.o
39
40cxl_mem-y := $(CXL_SRC)/mem.o
41cxl_mem-y += config_check.o
42
43obj-m += cxl_core.o
44
45cxl_core-y := $(CXL_CORE_SRC)/port.o
46cxl_core-y += $(CXL_CORE_SRC)/pmem.o
47cxl_core-y += $(CXL_CORE_SRC)/regs.o
48cxl_core-y += $(CXL_CORE_SRC)/memdev.o
49cxl_core-y += $(CXL_CORE_SRC)/mbox.o
50cxl_core-y += $(CXL_CORE_SRC)/pci.o
51cxl_core-y += $(CXL_CORE_SRC)/hdm.o
52cxl_core-$(CONFIG_CXL_REGION) += $(CXL_CORE_SRC)/region.o
53cxl_core-y += config_check.o
54
55obj-m += test/
56