162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
262306a36Sopenharmony_ci# Makefile for the Linux device tree
362306a36Sopenharmony_ci
462306a36Sopenharmony_ciobj-y			:= component.o core.o bus.o dd.o syscore.o \
562306a36Sopenharmony_ci			   driver.o class.o platform.o \
662306a36Sopenharmony_ci			   cpu.o firmware.o init.o map.o devres.o \
762306a36Sopenharmony_ci			   attribute_container.o transport_class.o \
862306a36Sopenharmony_ci			   topology.o container.o property.o cacheinfo.o \
962306a36Sopenharmony_ci			   swnode.o
1062306a36Sopenharmony_ciobj-$(CONFIG_AUXILIARY_BUS) += auxiliary.o
1162306a36Sopenharmony_ciobj-$(CONFIG_DEVTMPFS)	+= devtmpfs.o
1262306a36Sopenharmony_ciobj-y			+= power/
1362306a36Sopenharmony_ciobj-$(CONFIG_ISA_BUS_API)	+= isa.o
1462306a36Sopenharmony_ciobj-y				+= firmware_loader/
1562306a36Sopenharmony_ciobj-$(CONFIG_NUMA)	+= node.o
1662306a36Sopenharmony_ciobj-$(CONFIG_MEMORY_HOTPLUG) += memory.o
1762306a36Sopenharmony_ciifeq ($(CONFIG_SYSFS),y)
1862306a36Sopenharmony_ciobj-$(CONFIG_MODULES)	+= module.o
1962306a36Sopenharmony_ciendif
2062306a36Sopenharmony_ciobj-$(CONFIG_SYS_HYPERVISOR) += hypervisor.o
2162306a36Sopenharmony_ciobj-$(CONFIG_REGMAP)	+= regmap/
2262306a36Sopenharmony_ciobj-$(CONFIG_SOC_BUS) += soc.o
2362306a36Sopenharmony_ciobj-$(CONFIG_PINCTRL) += pinctrl.o
2462306a36Sopenharmony_ciobj-$(CONFIG_DEV_COREDUMP) += devcoredump.o
2562306a36Sopenharmony_ciobj-$(CONFIG_GENERIC_MSI_IRQ) += platform-msi.o
2662306a36Sopenharmony_ciobj-$(CONFIG_GENERIC_ARCH_TOPOLOGY) += arch_topology.o
2762306a36Sopenharmony_ciobj-$(CONFIG_GENERIC_ARCH_NUMA) += arch_numa.o
2862306a36Sopenharmony_ciobj-$(CONFIG_ACPI) += physical_location.o
2962306a36Sopenharmony_ci
3062306a36Sopenharmony_ciobj-y			+= test/
3162306a36Sopenharmony_ci
3262306a36Sopenharmony_ciccflags-$(CONFIG_DEBUG_DRIVER) := -DDEBUG
3362306a36Sopenharmony_ci
3462306a36Sopenharmony_ci# define_trace.h needs to know how to find our header
3562306a36Sopenharmony_ciCFLAGS_trace.o		:= -I$(src)
3662306a36Sopenharmony_ciobj-$(CONFIG_TRACING)	+= trace.o
37