summaryrefslogtreecommitdiffstats
path: root/drivers/core/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/core/Makefile')
-rw-r--r--drivers/core/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/core/Makefile b/drivers/core/Makefile
index 260833e8ee..ccc2fd4e21 100644
--- a/drivers/core/Makefile
+++ b/drivers/core/Makefile
@@ -4,7 +4,8 @@
# SPDX-License-Identifier: GPL-2.0+
#
-obj-y += device.o lists.o root.o uclass.o util.o devres.o
+obj-y += device.o lists.o root.o uclass.o util.o
+obj-$(CONFIG_DEVRES) += devres.o
ifndef CONFIG_SPL_BUILD
obj-$(CONFIG_OF_CONTROL) += simple-bus.o
endif
OpenPOWER on IntegriCloud