From: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 09/10] kconfig: move CONFIG_OF_* to Kconfig
Date: Mon, 08 Sep 2014 21:23:05 +0200 [thread overview]
Message-ID: <540E0219.6050001@gmail.com> (raw)
In-Reply-To: <1410079409-28450-10-git-send-email-yamada.m@jp.panasonic.com>
Hi Masahiro,
On 07.09.2014 10:43, Masahiro Yamada wrote:
> This commit moves:
> CONFIG_OF_CONTROL
> CONFIG_OF_SEPARATE
> CONFIG_OF_EMBED
> CONFIG_OF_HOSTFILE
>
> Because these options are currently not supported for SPL,
> the "Device Tree Control" menu does not appear in the SPL
> configuration.
>
> Note:
> zynq-common.h should be adjusted so as not to change the
> default value of CONFIG_SPL_FAT_LOAD_PAYLOAD_NAME.
>
> Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
> Cc: Simon Glass <sjg@chromium.org>
> Cc: Stephen Warren <swarren@nvidia.com>
> Cc: Minkyu Kang <mk7.kang@samsung.com>
> Cc: Michal Simek <michal.simek@xilinx.com>
> ---
[...]
> diff --git a/dts/Kconfig b/dts/Kconfig
> new file mode 100644
> index 0000000..98b2357
> --- /dev/null
> +++ b/dts/Kconfig
> @@ -0,0 +1,46 @@
> +#
> +# Device Tree Control
> +#
> +# TODO:
> +# This feature is not currently supported for SPL,
> +# but this restriction should be removed in the future.
> +
> +menu "Device Tree Control"
> + depends on !SPL_BUILD
> + depends on ARM || MICROBLAZE || SANDBOX || X86
I suggest to use boolean symbols HAS_* or SUPPORTS_* like the kernel
does. For example:
config SUPPORTS_OF_CONTROL
bool
menu "Device Tree Control"
depends on !SPL_BUILD
depends on SUPPORTS_OF_CONTROL
arch/Kconfig:
config ARM
bool "ARM architecture"
select SUPPORTS_OF_CONTROL
> +
> +config OF_CONTROL
> + bool "Run-time configuration via Device Tree"
> + help
> + This feature provides for run-time configuration of U-Boot
> + via a flattened device tree.
> +
> +choice
> + prompt "Provider of DTB for DT control"
> + depends on OF_CONTROL
> + default OF_HOSTFILE if SANDBOX
> + default OF_SEPARATE
> +
> +config OF_SEPARATE
> + bool "Separate DTB for DT control"
> + help
> + If this option is enabled, the device tree will be built and
> + placed as a separate u-boot.dtb file alongside the U-Boot image.
> +
> +config OF_EMBED
> + bool "Embedded DTB for DT control"
> + help
> + If this option is enabled, the device tree will be picked up and
> + built into the U-Boot image.
> +
> +config OF_HOSTFILE
> + bool "Host filed DTB for DT control"
> + depends on SANDBOX
> + help
> + If this option is enabled, DTB will be read from a file on startup.
> + This is only useful for Sandbox. Use the -d flag to U-Boot to
> + specify the file to read.
> +
> +endchoice
> +
> +endmenu
>
--
- Daniel
next prev parent reply other threads:[~2014-09-08 19:23 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-07 8:43 [U-Boot] [PATCH 0/10] Move some CONFIGs to Kconfig Masahiro Yamada
2014-09-07 8:43 ` [U-Boot] [PATCH 01/10] kconfig: add blank Kconfig files Masahiro Yamada
2014-09-08 18:26 ` Simon Glass
2014-09-07 8:43 ` [U-Boot] [PATCH 02/10] kconfig: move CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED to Kconfig Masahiro Yamada
2014-09-08 18:29 ` Simon Glass
2014-09-07 8:43 ` [U-Boot] [PATCH 03/10] kconfig: move CONFIG_CMD_BOOTM " Masahiro Yamada
2014-09-08 18:32 ` Simon Glass
2014-09-07 8:43 ` [U-Boot] [PATCH 04/10] kconfig: move CONFIG_CMD_CRC32 " Masahiro Yamada
2014-09-08 18:33 ` Simon Glass
2014-09-07 8:43 ` [U-Boot] [PATCH 05/10] kconfig: move CONFIG_CMD_EXPORTENV " Masahiro Yamada
2014-09-08 18:35 ` Simon Glass
2014-09-07 8:43 ` [U-Boot] [PATCH 06/10] kconfig: move CONFIG_CMD_GO " Masahiro Yamada
2014-09-08 18:35 ` Simon Glass
2014-09-07 8:43 ` [U-Boot] [PATCH 07/10] kconfig: move CONFIG_CMD_IMPORTENV " Masahiro Yamada
2014-09-08 18:36 ` Simon Glass
2014-09-07 8:43 ` [U-Boot] [PATCH 08/10] kconfig: remove config_cmd_defaults.h Masahiro Yamada
2014-09-08 18:39 ` Simon Glass
2014-09-07 8:43 ` [U-Boot] [PATCH 09/10] kconfig: move CONFIG_OF_* to Kconfig Masahiro Yamada
2014-09-08 15:04 ` Stephen Warren
2014-09-08 15:57 ` Masahiro YAMADA
2014-09-08 15:58 ` Stephen Warren
2014-09-08 16:10 ` Masahiro YAMADA
2014-09-08 16:25 ` Masahiro YAMADA
2014-09-16 12:05 ` Michal Simek
2014-09-08 19:23 ` Daniel Schwierzeck [this message]
2014-09-09 2:45 ` Masahiro Yamada
2014-09-07 8:43 ` [U-Boot] [PATCH 10/10] kconfig: CONFIG_DEFAULT_DEVICE_TREE to kconfig Masahiro Yamada
2014-09-08 15:04 ` Stephen Warren
2014-09-08 16:29 ` Masahiro YAMADA
2014-09-08 16:28 ` Fabio Estevam
2014-09-08 16:37 ` Masahiro YAMADA
[not found] <30670792.47881410234247727.JavaMail.weblogic@epv6ml04>
2014-09-11 2:57 ` [U-Boot] [PATCH 09/10] kconfig: move CONFIG_OF_* to Kconfig Jaehoon Chung
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=540E0219.6050001@gmail.com \
--to=daniel.schwierzeck@gmail.com \
--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