diff options
author | Simon Glass <sjg@chromium.org> | 2011-06-21 08:48:56 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2011-08-29 10:39:34 -0700 |
commit | ea1e225fb9a6a0dbd5a810a1de711e308bc4b175 (patch) | |
tree | fd243feeb7f82456470ca7a190faec7529aeefe7 /Makefile | |
parent | d82bf0abd79b65282349663f45e2f602cd70dd52 (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-- | Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 $< $@ |