summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-02-27 22:06:40 -0700
committerSimon Glass <sjg@chromium.org>2015-04-23 09:05:54 -0600
commit1d76bf226ac1660ec00c4a2cb276bd000ad37a5a (patch)
treed44d001066420d24492232377323ad4d0d9c7372
parent2860f03b917cf88450fdb6ed888dead10398754f (diff)
downloadu-boot-imx-1d76bf226ac1660ec00c4a2cb276bd000ad37a5a.zip
u-boot-imx-1d76bf226ac1660ec00c4a2cb276bd000ad37a5a.tar.gz
u-boot-imx-1d76bf226ac1660ec00c4a2cb276bd000ad37a5a.tar.bz2
fdt: Allow FDT functions to be built for SPL
Remove the implicit assumption that SPL does not support device tree. Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r--lib/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Makefile b/lib/Makefile
index 07d175f..97ed398 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -44,6 +44,12 @@ obj-$(CONFIG_BITREVERSE) += bitrev.o
obj-y += list_sort.o
endif
+ifndef CONFIG_SPL_DISABLE_OF_CONTROL
+obj-$(CONFIG_OF_LIBFDT) += libfdt/
+obj-$(CONFIG_OF_CONTROL) += fdtdec_common.o
+obj-$(CONFIG_OF_CONTROL) += fdtdec.o
+endif
+
ifdef CONFIG_SPL_BUILD
obj-$(CONFIG_SPL_YMODEM_SUPPORT) += crc16.o
obj-$(CONFIG_SPL_NET_SUPPORT) += net_utils.o