public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Brian Moyer <bdm310@gmail.com>
To: u-boot@lists.denx.de
Subject: [PATCH 1/1] arm: Add SPL build check to SPL early bss clear
Date: Sun, 19 Jul 2020 16:26:46 -0700	[thread overview]
Message-ID: <20200719232647.6996-2-bdm310@gmail.com> (raw)
In-Reply-To: <20200719232647.6996-1-bdm310@gmail.com>

SPL_CLEAR_BSS is called regardless of build type if
CONFIG_SPL_EARLY_BSS is defined. Add a guard for CONFIG_SPL_BUILD
to fix.

Signed-off-by: Brian Moyer <bdm310@gmail.com>
---

 arch/arm/lib/crt0.S | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/lib/crt0.S b/arch/arm/lib/crt0.S
index df9dd83e40..fd6c4874f8 100644
--- a/arch/arm/lib/crt0.S
+++ b/arch/arm/lib/crt0.S
@@ -109,7 +109,7 @@ ENTRY(_main)
 	mov	r9, r0
 	bl	board_init_f_init_reserve
 
-#if defined(CONFIG_SPL_EARLY_BSS)
+#if defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_EARLY_BSS)
 	SPL_CLEAR_BSS
 #endif
 
-- 
2.17.1

  reply	other threads:[~2020-07-19 23:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-19 23:26 [PATCH 0/1] Fix SPL_EARLY_BSS applying to normal build Brian Moyer
2020-07-19 23:26 ` Brian Moyer [this message]
2020-07-24  6:54   ` [PATCH 1/1] arm: Add SPL build check to SPL early bss clear Brian Moyer

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=20200719232647.6996-2-bdm310@gmail.com \
    --to=bdm310@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