]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Remove SPL undefine of CONFIG_OF_CONTROL
authorSimon Glass <sjg@chromium.org>
Tue, 12 May 2015 20:55:07 +0000 (14:55 -0600)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 22:42:46 +0000 (00:42 +0200)
Allow SPL to be built with this option so that we can support device tree
control. Disable the simple bus for now in SPL. It may be needed later.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/core/Makefile
include/config_uncmd_spl.h
scripts/Makefile.uncmd_spl

index f14695b2d6eae985d366827d69bcedda1ce1e2ce..a3fec3850395512d3fdb177feb49ebb1381ca224 100644 (file)
@@ -5,5 +5,7 @@
 #
 
 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
index 38cb0e8abac9378c375cb4162454b6cc6923b2c8..c191f5634e24888606d64638ced17c3a6218fc0a 100644 (file)
@@ -20,7 +20,9 @@
 #undef CONFIG_CMD_SNTP
 #undef CONFIG_CMD_TFTPPUT
 #undef CONFIG_CMD_TFTPSRV
+#ifdef CONFIG_SPL_DISABLE_OF_CONTROL
 #undef CONFIG_OF_CONTROL
+#endif
 
 #ifndef CONFIG_SPL_DM
 #undef CONFIG_DM_SERIAL
index 25f643882a04dc2095019d606eab1e2346505bf0..4f056525bb0692b78577ac35dfa2c96f221c6540 100644 (file)
@@ -3,6 +3,9 @@
 # TODO: Invent a better way
 
 ifdef CONFIG_SPL_BUILD
+ifdef CONFIG_SPL_DISABLE_OF_CONTROL
+CONFIG_OF_CONTROL=
+endif
 
 ifndef CONFIG_SPL_DM
 CONFIG_DM_SERIAL=