From: Eugen.Hristev at microchip.com <Eugen.Hristev@microchip.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 4/4] ARM: at91: lds: add test SPL binary size and bbs size
Date: Mon, 19 Nov 2018 08:23:01 +0000 [thread overview]
Message-ID: <1542615470-17992-5-git-send-email-eugen.hristev@microchip.com> (raw)
In-Reply-To: <1542615470-17992-1-git-send-email-eugen.hristev@microchip.com>
From: Wenyou Yang <wenyou.yang@atmel.com>
Add the test for the SPL binary size and the bbs section size.
Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
---
arch/arm/mach-at91/arm926ejs/u-boot-spl.lds | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/arch/arm/mach-at91/arm926ejs/u-boot-spl.lds b/arch/arm/mach-at91/arm926ejs/u-boot-spl.lds
index eca78f8..82098dc 100644
--- a/arch/arm/mach-at91/arm926ejs/u-boot-spl.lds
+++ b/arch/arm/mach-at91/arm926ejs/u-boot-spl.lds
@@ -48,3 +48,13 @@ SECTIONS
__bss_end = .;
} >.sdram
}
+
+#if defined(CONFIG_SPL_MAX_SIZE)
+ASSERT(__image_copy_end - __image_copy_start < (CONFIG_SPL_MAX_SIZE), \
+ "SPL image too big");
+#endif
+
+#if defined(CONFIG_SPL_BSS_MAX_SIZE)
+ASSERT(__bss_end - __bss_start < (CONFIG_SPL_BSS_MAX_SIZE), \
+ "SPL image BSS too big");
+#endif
--
2.7.4
next prev parent reply other threads:[~2018-11-19 8:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-19 8:22 [U-Boot] [PATCH 0/4] at91: SPL size check for at91 boards Eugen.Hristev at microchip.com
2018-11-19 8:22 ` [U-Boot] [PATCH 1/4] configs: picosam9g45_defconfig: Remove SPL Eugen.Hristev at microchip.com
2018-11-19 8:22 ` [U-Boot] [PATCH 2/4] configs: corvus_defconfig: " Eugen.Hristev at microchip.com
2018-11-19 8:23 ` [U-Boot] [PATCH 3/4] configs: wb45n_defconfig: " Eugen.Hristev at microchip.com
2018-11-19 10:29 ` Ben Whitten
2018-11-19 14:27 ` Ben Whitten
2018-11-19 8:23 ` Eugen.Hristev at microchip.com [this message]
2018-11-19 14:31 ` [U-Boot] [PATCH 4/4] ARM: at91: lds: add test SPL binary size and bbs size Ben Whitten
2018-11-19 15:13 ` Eugen.Hristev at microchip.com
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=1542615470-17992-5-git-send-email-eugen.hristev@microchip.com \
--to=eugen.hristev@microchip.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