summaryrefslogtreecommitdiffstats
path: root/drivers/core/Makefile
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-11-10 17:16:47 -0700
committerSimon Glass <sjg@chromium.org>2014-11-21 08:13:02 +0100
commit3ac435d33a8f6a4e28df6bc068cb0569bc8061ad (patch)
tree9c13282080d8b92f6b83f46b393dd3567ea96610 /drivers/core/Makefile
parent1151651831ff11b3f40d132bb9ab012e95a8faa1 (diff)
downloadtalos-obmc-uboot-3ac435d33a8f6a4e28df6bc068cb0569bc8061ad.tar.gz
talos-obmc-uboot-3ac435d33a8f6a4e28df6bc068cb0569bc8061ad.zip
dm: Allow device removal features to be dropped
For SPL we don't expect to need to remove a device. Save some code space by dropping this feature. The board config can define CONFIG_DM_DEVICE_REMOVE if this is in fact needed. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@ti.com>
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 151c2398a4..f14695b2d6 100644
--- a/drivers/core/Makefile
+++ b/drivers/core/Makefile
@@ -4,5 +4,6 @@
# SPDX-License-Identifier: GPL-2.0+
#
-obj-y := device.o lists.o root.o uclass.o util.o
+obj-$(CONFIG_DM) += device.o lists.o root.o uclass.o util.o
obj-$(CONFIG_OF_CONTROL) += simple-bus.o
+obj-$(CONFIG_DM_DEVICE_REMOVE) += device-remove.o
OpenPOWER on IntegriCloud