From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v4 04/16] sandbox: Build a device tree file for sandbox
Date: Sun, 20 Oct 2013 07:09:24 +0200 [thread overview]
Message-ID: <201310200709.25004.marex@denx.de> (raw)
In-Reply-To: <1382135604-31828-5-git-send-email-sjg@chromium.org>
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 <sjg@chromium.org>
> ---
> 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/;
> +
[...]
next prev parent reply other threads:[~2013-10-20 5:09 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-18 22:33 [U-Boot] [PATCH v4 0/16] Driver model implementation, tests, demo and GPIO Simon Glass
2013-10-18 22:33 ` [U-Boot] [PATCH v4 01/16] sandbox: Make map_to_sysmem() use a constant pointer Simon Glass
2013-10-20 5:05 ` Marek Vasut
2013-10-18 22:33 ` [U-Boot] [PATCH v4 02/16] sandbox: Correct data sizes and printf() strings in fdtdec.c Simon Glass
2013-10-20 5:06 ` Marek Vasut
2013-10-18 22:33 ` [U-Boot] [PATCH v4 03/16] sandbox: config: Don't use 64-bit physical memory Simon Glass
2013-10-20 5:08 ` Marek Vasut
2013-10-20 5:13 ` Simon Glass
2013-10-18 22:33 ` [U-Boot] [PATCH v4 04/16] sandbox: Build a device tree file for sandbox Simon Glass
2013-10-20 5:09 ` Marek Vasut [this message]
2013-10-20 5:23 ` Simon Glass
2013-10-18 22:33 ` [U-Boot] [PATCH v4 05/16] Add cmd_process_error() to report and process errors Simon Glass
2013-10-18 22:33 ` [U-Boot] [PATCH v4 06/16] sandbox: config: Enable driver model Simon Glass
2013-10-20 5:11 ` Marek Vasut
2013-10-20 19:05 ` Simon Glass
2013-10-20 19:36 ` Marek Vasut
2013-10-20 20:05 ` Simon Glass
2013-10-18 22:33 ` [U-Boot] [PATCH v4 07/16] dm: Add README for " Simon Glass
2013-10-18 22:33 ` [U-Boot] [PATCH v4 08/16] dm: Add base driver model support Simon Glass
2013-10-18 22:33 ` [U-Boot] [PATCH v4 09/16] dm: Set up driver model after relocation Simon Glass
2013-10-18 22:33 ` [U-Boot] [PATCH v4 10/16] dm: Add basic tests Simon Glass
2013-10-18 22:33 ` [U-Boot] [PATCH v4 11/16] dm: Add a 'dm' command for testing Simon Glass
2013-10-18 22:33 ` [U-Boot] [PATCH v4 12/16] dm: Add a demonstration/example driver Simon Glass
2013-10-18 22:33 ` [U-Boot] [PATCH v4 13/16] dm: Add GPIO support and tests Simon Glass
2013-10-18 22:33 ` [U-Boot] [PATCH v4 14/16] sandbox: Convert GPIOs to use driver model Simon Glass
2013-10-18 22:33 ` [U-Boot] [PATCH v4 15/16] dm: Enable gpio command to support " Simon Glass
2013-10-18 22:33 ` [U-Boot] [PATCH v4 16/16] dm: Move old driver model documentation into an 'old-docs' directory Simon Glass
2013-10-20 5:12 ` Marek Vasut
2013-10-20 19:34 ` Simon Glass
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201310200709.25004.marex@denx.de \
--to=marex@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox