All of lore.kernel.org
 help / color / mirror / Atom feed
From: David De Grave (Essensium/Mind) <david.degrave@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] boot/uboot: Really use host-dtc
Date: Thu, 26 Jul 2018 12:36:30 +0200	[thread overview]
Message-ID: <20180726103630.8643-2-david.degrave@mind.be> (raw)
In-Reply-To: <20180726103630.8643-1-david.degrave@mind.be>

U-Boot's build system (at least in 2018.01) does not use $(HOST_DIR)/bin/dtc to
compile dts files. Instead it tries to use it's internal dtc who is not
compiled by default and result in a build failure:

  DTC     arch/arm/dts/foo.dtb
/bin/sh: ./scripts/dtc/dtc: No such file or directory
make[4]: *** [scripts/Makefile.lib:329: arch/arm/dts/foo.dtb] Error 127

To reproduce this error, use a uboot config that contains the following:

CONFIG_MULTI_DTB_FIT=y
CONFIG_OF_LIST="foo"

Signed-off-by: David De Grave (Essensium/Mind) <david.degrave@mind.be>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
---
 boot/uboot/uboot.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk
index bf227f2893..e877de221e 100644
--- a/boot/uboot/uboot.mk
+++ b/boot/uboot/uboot.mk
@@ -141,6 +141,7 @@ UBOOT_MAKE_OPTS += BL31=$(BINARIES_DIR)/bl31.bin
 endif
 
 ifeq ($(BR2_TARGET_UBOOT_NEEDS_DTC),y)
+UBOOT_MAKE_OPTS += DTC=$(HOST_DIR)/bin/dtc
 UBOOT_DEPENDENCIES += host-dtc
 endif
 
-- 
2.13.6

  reply	other threads:[~2018-07-26 10:36 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-26 10:36 [Buildroot] [PATCH 0/1] boot/uboot: host-dtc is not used as expected David De Grave
2018-07-26 10:36 ` David De Grave [this message]
2018-07-28 19:48   ` [Buildroot] [PATCH 1/1] boot/uboot: Really use host-dtc Thomas Petazzoni
2018-07-31 18:12     ` David De Grave
2018-07-31 18:51       ` Thomas Petazzoni
2018-07-31 22:14         ` Arnout Vandecappelle
2018-08-01  7:05           ` Thomas Petazzoni
2018-08-01 10:36             ` David De Grave
2018-08-01 10:43               ` Thomas Petazzoni
2018-08-01 14:36                 ` David De Grave

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=20180726103630.8643-2-david.degrave@mind.be \
    --to=david.degrave@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.