Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | # Makefile for the Linux device tree |
| 3 | |
Russell King | 2a41e60 | 2014-01-10 23:23:37 +0000 | [diff] [blame] | 4 | obj-y := component.o core.o bus.o dd.o syscore.o \ |
gregkh@suse.de | cd987d3 | 2005-03-23 11:12:38 -0800 | [diff] [blame] | 5 | driver.o class.o platform.o \ |
Heiko Carstens | 411f0f3 | 2007-05-06 14:49:09 -0700 | [diff] [blame] | 6 | cpu.o firmware.o init.o map.o devres.o \ |
Ben Hutchings | ccbc60d | 2011-11-24 07:04:39 +0000 | [diff] [blame] | 7 | attribute_container.o transport_class.o \ |
Heikki Krogerus | f2d9b66 | 2018-03-20 15:57:02 +0300 | [diff] [blame] | 8 | topology.o container.o property.o cacheinfo.o \ |
Heikki Krogerus | d7cf559 | 2020-09-07 15:05:31 +0300 | [diff] [blame] | 9 | swnode.o |
Dave Ertman | 7de3697 | 2020-12-02 16:54:24 -0800 | [diff] [blame] | 10 | obj-$(CONFIG_AUXILIARY_BUS) += auxiliary.o |
Kay Sievers | 2b2af54 | 2009-04-30 15:23:42 +0200 | [diff] [blame] | 11 | obj-$(CONFIG_DEVTMPFS) += devtmpfs.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 12 | obj-y += power/ |
William Breathitt Gray | 3a49551 | 2016-05-27 18:08:27 -0400 | [diff] [blame] | 13 | obj-$(CONFIG_ISA_BUS_API) += isa.o |
Luis R. Rodriguez | 5d6d1dd | 2018-03-10 06:14:50 -0800 | [diff] [blame] | 14 | obj-y += firmware_loader/ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 15 | obj-$(CONFIG_NUMA) += node.o |
David Hildenbrand | 50f9481 | 2021-11-05 13:44:24 -0700 | [diff] [blame] | 16 | obj-$(CONFIG_MEMORY_HOTPLUG) += memory.o |
Randy Dunlap | 92b4214 | 2007-12-31 10:05:43 -0800 | [diff] [blame] | 17 | ifeq ($(CONFIG_SYSFS),y) |
Greg Kroah-Hartman | c63469a | 2007-11-28 12:23:18 -0800 | [diff] [blame] | 18 | obj-$(CONFIG_MODULES) += module.o |
Randy Dunlap | 92b4214 | 2007-12-31 10:05:43 -0800 | [diff] [blame] | 19 | endif |
Michael Holzheu | 4039483 | 2006-05-09 12:53:49 +0200 | [diff] [blame] | 20 | obj-$(CONFIG_SYS_HYPERVISOR) += hypervisor.o |
Mark Brown | b83a313 | 2011-05-11 19:59:58 +0200 | [diff] [blame] | 21 | obj-$(CONFIG_REGMAP) += regmap/ |
Lee Jones | 74d1d82 | 2012-02-06 11:22:22 -0800 | [diff] [blame] | 22 | obj-$(CONFIG_SOC_BUS) += soc.o |
Linus Walleij | ab78029 | 2013-01-22 10:56:14 -0700 | [diff] [blame] | 23 | obj-$(CONFIG_PINCTRL) += pinctrl.o |
Johannes Berg | 833c954 | 2014-09-12 09:01:56 +0200 | [diff] [blame] | 24 | obj-$(CONFIG_DEV_COREDUMP) += devcoredump.o |
Marc Zyngier | c09fcc4b | 2015-07-28 14:46:16 +0100 | [diff] [blame] | 25 | obj-$(CONFIG_GENERIC_MSI_IRQ_DOMAIN) += platform-msi.o |
Juri Lelli | 2ef7a29 | 2017-05-31 17:59:28 +0100 | [diff] [blame] | 26 | obj-$(CONFIG_GENERIC_ARCH_TOPOLOGY) += arch_topology.o |
Atish Patra | ae3c107 | 2020-11-18 16:38:26 -0800 | [diff] [blame] | 27 | obj-$(CONFIG_GENERIC_ARCH_NUMA) += arch_numa.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 28 | |
Dmitry Torokhov | 79543cf | 2016-09-29 17:13:14 +0200 | [diff] [blame] | 29 | obj-y += test/ |
| 30 | |
matt mooney | 7a86808 | 2010-09-24 12:17:11 -0700 | [diff] [blame] | 31 | ccflags-$(CONFIG_DEBUG_DRIVER) := -DDEBUG |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 32 | |
Andy Shevchenko | 09705dc | 2021-05-17 15:29:46 +0300 | [diff] [blame] | 33 | # define_trace.h needs to know how to find our header |
| 34 | CFLAGS_trace.o := -I$(src) |
| 35 | obj-$(CONFIG_TRACING) += trace.o |