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