All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Glass <sjg@chromium.org>
To: u-boot@lists.denx.de
Subject: [PATCH v5 3/4] spl: Allow SPL/TPL to use of-platdata without libfdt
Date: Sun, 26 Apr 2020 19:24:34 -0600	[thread overview]
Message-ID: <20200427012435.254270-4-sjg@chromium.org> (raw)
In-Reply-To: <20200427012435.254270-1-sjg@chromium.org>

At present libfdt is included in SPL/TPL if SPL/TPL_OF_CONTROL is enabled.
But if of-platdata is in use this is not required. Update the condition to
avoid building this extra code. This ensures that if a libfdt function is
used it will produce a link error rather than silently increasing the
build size.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

Changes in v5:
- Drop rockchip patches as those boards have been fixed

Changes in v4:
- Add new patch for rockchip build errors
- Add new patch for omap MMC build errors
- Add new patch for rockchip chromebook build errors
- Pull out patches into a new series
- Add new patches to handle build failures

Changes in v3: None

 lib/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/Kconfig b/lib/Kconfig
index 144a54da28..854f0990c5 100644
--- a/lib/Kconfig
+++ b/lib/Kconfig
@@ -501,7 +501,7 @@ config OF_LIBFDT_OVERLAY
 
 config SPL_OF_LIBFDT
 	bool "Enable the FDT library for SPL"
-	default y if SPL_OF_CONTROL
+	default y if SPL_OF_CONTROL && !SPL_OF_PLATDATA
 	help
 	  This enables the FDT library (libfdt). It provides functions for
 	  accessing binary device tree images in memory, such as adding and
@@ -522,7 +522,7 @@ config SPL_OF_LIBFDT_ASSUME_MASK
 
 config TPL_OF_LIBFDT
 	bool "Enable the FDT library for TPL"
-	default y if TPL_OF_CONTROL
+	default y if TPL_OF_CONTROL && !TPL_OF_PLATDATA
 	help
 	  This enables the FDT library (libfdt). It provides functions for
 	  accessing binary device tree images in memory, such as adding and
-- 
2.26.2.303.gf8c07b1a785-goog

  parent reply	other threads:[~2020-04-27  1:24 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-27  1:24 [PATCH v5 0/4] of-platdata: Avoid building libfdt Simon Glass
2020-04-27  1:24 ` [PATCH v5 1/4] omap: mmc: Avoid using libfdt with of-platdata Simon Glass
2020-04-27  5:33   ` Peng Fan
2020-04-27 18:59     ` Tom Rini
2020-04-28  4:17       ` Lokesh Vutla
2020-04-28  7:00         ` Faiz Abbas
2020-04-30 11:43           ` Bartosz Golaszewski
2020-05-01 18:32             ` Tom Rini
2020-05-04  7:10               ` Bartosz Golaszewski
2020-05-04 13:14                 ` Simon Glass
2020-05-05  6:50                   ` Faiz Abbas
2020-05-05 16:17                     ` Bartosz Golaszewski
2020-05-14  8:19                     ` Faiz Abbas
2020-05-14 14:59                       ` Tom Rini
2020-05-14 15:25                         ` Faiz Abbas
2020-05-14 15:45                           ` Tom Rini
2020-05-14 17:23                           ` Simon Glass
2020-05-14 16:01                       ` Simon Glass
2020-04-27  1:24 ` [PATCH v5 2/4] rockchip: pinctrl: Disable full pinctrl for SPL Simon Glass
2020-04-28 14:21   ` Kever Yang
2020-04-27  1:24 ` Simon Glass [this message]
2020-04-27  1:24 ` [PATCH v5 4/4] dm: core: Don't include ofnode functions with of-platdata 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=20200427012435.254270-4-sjg@chromium.org \
    --to=sjg@chromium.org \
    --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 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.