1 # SPDX-License-Identifier: GPL-2.0
2 # Makefile for the Linux device tree
4 obj-y := component.o core.o bus.o dd.o syscore.o \
5 driver.o class.o platform.o \
6 cpu.o firmware.o init.o map.o devres.o \
7 attribute_container.o transport_class.o \
8 topology.o container.o property.o cacheinfo.o \
10 obj-$(CONFIG_AUXILIARY_BUS) += auxiliary.o
11 obj-$(CONFIG_DEVTMPFS) += devtmpfs.o
13 obj-$(CONFIG_ISA_BUS_API) += isa.o
14 obj-y += firmware_loader/
15 obj-$(CONFIG_NUMA) += node.o
16 obj-$(CONFIG_MEMORY_HOTPLUG) += memory.o
17 ifeq ($(CONFIG_SYSFS),y)
18 obj-$(CONFIG_MODULES) += module.o
20 obj-$(CONFIG_SYS_HYPERVISOR) += hypervisor.o
21 obj-$(CONFIG_REGMAP) += regmap/
22 obj-$(CONFIG_SOC_BUS) += soc.o
23 obj-$(CONFIG_PINCTRL) += pinctrl.o
24 obj-$(CONFIG_DEV_COREDUMP) += devcoredump.o
25 obj-$(CONFIG_GENERIC_MSI_IRQ) += platform-msi.o
26 obj-$(CONFIG_GENERIC_ARCH_TOPOLOGY) += arch_topology.o
27 obj-$(CONFIG_GENERIC_ARCH_NUMA) += arch_numa.o
28 obj-$(CONFIG_ACPI) += physical_location.o
32 ccflags-$(CONFIG_DEBUG_DRIVER) := -DDEBUG
34 # define_trace.h needs to know how to find our header
35 CFLAGS_trace.o := -I$(src)
36 obj-$(CONFIG_TRACING) += trace.o