Merge git://git.denx.de/u-boot-usb
[platform/kernel/u-boot.git] / drivers / core / Makefile
index c7905b1..a3fec38 100644 (file)
@@ -4,4 +4,8 @@
 # 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
+ifndef CONFIG_SPL_BUILD
+obj-$(CONFIG_OF_CONTROL) += simple-bus.o
+endif
+obj-$(CONFIG_DM_DEVICE_REMOVE) += device-remove.o