summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2011-06-21 08:48:56 -0700
committerSimon Glass <sjg@chromium.org>2011-08-29 10:39:34 -0700
commitea1e225fb9a6a0dbd5a810a1de711e308bc4b175 (patch)
treefd243feeb7f82456470ca7a190faec7529aeefe7 /Makefile
parentd82bf0abd79b65282349663f45e2f602cd70dd52 (diff)
fdt: Add DEV_TREE_SEPARATE to provide an fdt separate from image
This adds support for an FDT to be concatenated to the u-boot-bin binary. This is located at run-time by U-Boot. BUG=chromium-os:11623 TEST=Either emerge with http://gerrit.chromium.org/gerrit/2961 or build manually: make ... DEV_TREE_SEPARATE=true and check that u-boot.dtb is built. Change-Id: I7c8b1315d721bc957ef3fd07f167d86345868036 Reviewed-on: http://gerrit.chromium.org/gerrit/2962 Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 4d0d53d748..ebce9398f6 100644
--- a/Makefile
+++ b/Makefile
@@ -225,6 +225,9 @@ endif
ifeq ($(CPU),ixp)
LIBS += arch/arm/cpu/ixp/npe/libnpe.o
endif
+ifdef DEV_TREE_SEPARATE
+ALL += $(obj)u-boot.dtb
+endif
ifeq ($(CONFIG_OF_EMBED),y)
LIBS += dts/dt.o
endif
@@ -378,6 +381,10 @@ $(obj)u-boot-cflags.mk:
echo $(CFLAGS) | \
awk -v RS='[ \t\n]+' -v ORS='' -- '$(AWK_SRC)' >> $@
+$(obj)u-boot.dtb: $(obj)u-boot
+ $(MAKE) -C dts binary
+ mv $(obj)dts/dt.dtb $@
+
$(obj)u-boot.hex: $(obj)u-boot
$(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@