From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Sun, 20 Oct 2013 07:09:24 +0200 Subject: [U-Boot] [PATCH v4 04/16] sandbox: Build a device tree file for sandbox In-Reply-To: <1382135604-31828-5-git-send-email-sjg@chromium.org> References: <1382135604-31828-1-git-send-email-sjg@chromium.org> <1382135604-31828-5-git-send-email-sjg@chromium.org> Message-ID: <201310200709.25004.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Simon Glass, > Add support for building a device tree for sandbox's CONFIG_OF_HOSTFILE > option to make it easier to use device tree with sandbox. > > This adjusts the Makefile to build a u-boot.dtb file which can be passed > to sandbox U-Boot with: > > ./u-boot -d u-boot.dtb > > Signed-off-by: Simon Glass > --- > Changes in v4: None > Changes in v3: > - Add new patch to build a device tree file for sandbox > > Changes in v2: None > > Makefile | 1 + > arch/sandbox/config.mk | 2 ++ > board/sandbox/dts/sandbox.dts | 20 ++++++++++++++++++++ > include/configs/sandbox.h | 1 + > 4 files changed, 24 insertions(+) > create mode 100644 board/sandbox/dts/sandbox.dts > > diff --git a/Makefile b/Makefile > index dc04179..d6af971 100644 > --- a/Makefile > +++ b/Makefile > @@ -402,6 +402,7 @@ ALL-$(CONFIG_SPL) += $(obj)spl/u-boot-spl.bin > ALL-$(CONFIG_SPL_FRAMEWORK) += $(obj)u-boot.img > ALL-$(CONFIG_TPL) += $(obj)tpl/u-boot-tpl.bin > ALL-$(CONFIG_OF_SEPARATE) += $(obj)u-boot.dtb $(obj)u-boot-dtb.bin > +ALL-$(CONFIG_OF_HOSTFILE) += $(obj)u-boot.dtb > ifneq ($(CONFIG_SPL_TARGET),) > ALL-$(CONFIG_SPL) += $(obj)$(subst ",,$(CONFIG_SPL_TARGET)) > endif > diff --git a/arch/sandbox/config.mk b/arch/sandbox/config.mk > index 6142dd4..60b7262 100644 > --- a/arch/sandbox/config.mk > +++ b/arch/sandbox/config.mk > @@ -7,3 +7,5 @@ PLATFORM_LIBS += -lrt > > # Support generic board on sandbox > __HAVE_ARCH_GENERIC_BOARD := y > + > +CONFIG_ARCH_DEVICE_TREE := sandbox > diff --git a/board/sandbox/dts/sandbox.dts b/board/sandbox/dts/sandbox.dts > new file mode 100644 > index 0000000..96a4438 > --- /dev/null > +++ b/board/sandbox/dts/sandbox.dts > @@ -0,0 +1,20 @@ Arent you missing a license in this file ? > +/dts-v1/; > + [...]