]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/core/Makefile
devres: make Devres optional with CONFIG_DEVRES
[karo-tx-uboot.git] / drivers / core / Makefile
index 260833e8ee859df7b8452701f88ba44073dc5779..ccc2fd4e21ae1f9ab53fd3c181e06007f5e7d8c5 100644 (file)
@@ -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