blob: 02f7f1358e865a2b8d8b6003c9f3edd92baf472c [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
Linus Torvalds1da177e2005-04-16 15:20:36 -07002# Makefile for the Linux device tree
3
Russell King2a41e602014-01-10 23:23:37 +00004obj-y := component.o core.o bus.o dd.o syscore.o \
gregkh@suse.decd987d32005-03-23 11:12:38 -08005 driver.o class.o platform.o \
Heiko Carstens411f0f32007-05-06 14:49:09 -07006 cpu.o firmware.o init.o map.o devres.o \
Ben Hutchingsccbc60d2011-11-24 07:04:39 +00007 attribute_container.o transport_class.o \
Heikki Krogerusf2d9b662018-03-20 15:57:02 +03008 topology.o container.o property.o cacheinfo.o \
Heikki Krogerusd7cf5592020-09-07 15:05:31 +03009 swnode.o
Dave Ertman7de36972020-12-02 16:54:24 -080010obj-$(CONFIG_AUXILIARY_BUS) += auxiliary.o
Kay Sievers2b2af542009-04-30 15:23:42 +020011obj-$(CONFIG_DEVTMPFS) += devtmpfs.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070012obj-y += power/
William Breathitt Gray3a495512016-05-27 18:08:27 -040013obj-$(CONFIG_ISA_BUS_API) += isa.o
Luis R. Rodriguez5d6d1dd2018-03-10 06:14:50 -080014obj-y += firmware_loader/
Linus Torvalds1da177e2005-04-16 15:20:36 -070015obj-$(CONFIG_NUMA) += node.o
David Hildenbrand50f94812021-11-05 13:44:24 -070016obj-$(CONFIG_MEMORY_HOTPLUG) += memory.o
Randy Dunlap92b42142007-12-31 10:05:43 -080017ifeq ($(CONFIG_SYSFS),y)
Greg Kroah-Hartmanc63469a2007-11-28 12:23:18 -080018obj-$(CONFIG_MODULES) += module.o
Randy Dunlap92b42142007-12-31 10:05:43 -080019endif
Michael Holzheu40394832006-05-09 12:53:49 +020020obj-$(CONFIG_SYS_HYPERVISOR) += hypervisor.o
Mark Brownb83a3132011-05-11 19:59:58 +020021obj-$(CONFIG_REGMAP) += regmap/
Lee Jones74d1d822012-02-06 11:22:22 -080022obj-$(CONFIG_SOC_BUS) += soc.o
Linus Walleijab780292013-01-22 10:56:14 -070023obj-$(CONFIG_PINCTRL) += pinctrl.o
Johannes Berg833c9542014-09-12 09:01:56 +020024obj-$(CONFIG_DEV_COREDUMP) += devcoredump.o
Marc Zyngierc09fcc4b2015-07-28 14:46:16 +010025obj-$(CONFIG_GENERIC_MSI_IRQ_DOMAIN) += platform-msi.o
Juri Lelli2ef7a292017-05-31 17:59:28 +010026obj-$(CONFIG_GENERIC_ARCH_TOPOLOGY) += arch_topology.o
Atish Patraae3c1072020-11-18 16:38:26 -080027obj-$(CONFIG_GENERIC_ARCH_NUMA) += arch_numa.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070028
Dmitry Torokhov79543cf2016-09-29 17:13:14 +020029obj-y += test/
30
matt mooney7a868082010-09-24 12:17:11 -070031ccflags-$(CONFIG_DEBUG_DRIVER) := -DDEBUG
Linus Torvalds1da177e2005-04-16 15:20:36 -070032
Andy Shevchenko09705dc2021-05-17 15:29:46 +030033# define_trace.h needs to know how to find our header
34CFLAGS_trace.o := -I$(src)
35obj-$(CONFIG_TRACING) += trace.o