From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 3/7] u-boot: add an option to indicate that DTC is needed
Date: Sat, 3 Oct 2015 22:19:33 +0100 [thread overview]
Message-ID: <56104665.6020309@mind.be> (raw)
In-Reply-To: <1443901457-7914-4-git-send-email-thomas.petazzoni@free-electrons.com>
On 03-10-15 20:44, Thomas Petazzoni wrote:
> Some U-Boot configurations require the Device Tree compiler to be
> available, so we need to depend on host-dtc (example configuration:
> zynq_zed).
>
> However, we don't want to build it unconditionally, since the vast
> majority of U-Boot configurations don't need it (and host-dtc itself
> has a bunch of dependencies).
>
> So, we simply add a Config.in option that allows users to indicate
> whether their U-Boot needs DTC or not, and depend on host-dtc if this
> option is enabled.
>
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
I don't really like that the option has to be user-configurable, but I see no
other way. So:
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
with one small nit.
> ---
> boot/uboot/Config.in | 7 +++++++
> boot/uboot/uboot.mk | 4 ++++
> 2 files changed, 11 insertions(+)
>
> diff --git a/boot/uboot/Config.in b/boot/uboot/Config.in
> index be51642..8643dab 100644
> --- a/boot/uboot/Config.in
> +++ b/boot/uboot/Config.in
> @@ -139,6 +139,13 @@ config BR2_TARGET_UBOOT_CUSTOM_CONFIG_FILE
> Path to the U-Boot configuration file.
> endif
>
> +config BR2_TARGET_UBOOT_NEEDS_DTC
> + bool "U-Boot needs dtc"
> + select BR2_PACKAGE_HOST_DTC
> + help
> + Select this option if your U-Boot board configuration
> + requires the Device Tree compiler to be available.
Device Tree Compiler.
> +
> choice
> prompt "U-Boot binary format"
> default BR2_TARGET_UBOOT_FORMAT_BIN
> diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk
> index 8f321ac..af583d1 100644
> --- a/boot/uboot/uboot.mk
> +++ b/boot/uboot/uboot.mk
> @@ -77,6 +77,10 @@ UBOOT_MAKE_OPTS += \
> CROSS_COMPILE="$(CCACHE) $(TARGET_CROSS)" \
> ARCH=$(UBOOT_ARCH)
>
> +ifeq ($(BR2_TARGET_UBOOT_NEEDS_DTC),y)
> +UBOOT_DEPENDENCIES += host-dtc
> +endif
> +
> # Helper function to fill the U-Boot config.h file.
> # Argument 1: option name
> # Argument 2: option value
>
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
next prev parent reply other threads:[~2015-10-03 21:19 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-03 19:44 [Buildroot] [PATCH 0/7] configs: fix build of many defconfigs Thomas Petazzoni
2015-10-03 19:44 ` [Buildroot] [PATCH 1/7] configs: remove gnublin_defconfig Thomas Petazzoni
2015-10-03 21:06 ` Peter Seiderer
2015-10-04 8:15 ` Thomas Petazzoni
2015-10-04 17:01 ` Peter Korsgaard
2015-10-03 19:44 ` [Buildroot] [PATCH 2/7] dtc: add host build Thomas Petazzoni
2015-10-03 21:13 ` Peter Seiderer
2015-10-04 18:12 ` Peter Korsgaard
2015-10-04 18:14 ` Peter Korsgaard
2015-10-03 19:44 ` [Buildroot] [PATCH 3/7] u-boot: add an option to indicate that DTC is needed Thomas Petazzoni
2015-10-03 21:19 ` Arnout Vandecappelle [this message]
2015-10-04 18:15 ` Peter Korsgaard
2015-10-03 19:44 ` [Buildroot] [PATCH 4/7] configs: fix configurations that need host-dtc Thomas Petazzoni
2015-10-04 18:16 ` Peter Korsgaard
2015-10-03 19:44 ` [Buildroot] [PATCH 5/7] configs: fix build of calao_usb_a9g20_lpw_defconfig Thomas Petazzoni
2015-10-04 17:06 ` Peter Korsgaard
2015-10-03 19:44 ` [Buildroot] [PATCH 6/7] configs: fix build of calao_qil_a9260_defconfig Thomas Petazzoni
2015-10-04 17:06 ` Peter Korsgaard
2015-10-03 19:44 ` [Buildroot] [PATCH 7/7] configs: remove old/broken Atmel configurations Thomas Petazzoni
2015-10-03 20:41 ` Alexandre Belloni
2015-10-03 20:54 ` Arnout Vandecappelle
2015-10-13 21:30 ` Thomas Petazzoni
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=56104665.6020309@mind.be \
--to=arnout@mind.be \
--cc=buildroot@busybox.net \
/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