diff mbox series

[v6,3/8] x86: Set a board-size limit for chromebook_link

Message ID 20240627082949.357089-4-sjg@chromium.org
State Accepted
Delegated to: Tom Rini
Headers show
Series Bug-fixes for a few boards (reduced series) | expand

Commit Message

Simon Glass June 27, 2024, 8:29 a.m. UTC
Set a size limit for this board so that we get a build error if it grows
too much.

Note that the limit is approximately, since it does not include the FDT,
microcode and fdtmap, which can change in size. However this board is
fairly stable, so overflowing this limit will likely result in the image
not fitting in the ROM space available for U-Boot.

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

(no changes since v4)

Changes in v4:
- Add new patch to set a board-size limit for chromebook_link

 configs/chromebook_link_defconfig | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/configs/chromebook_link_defconfig b/configs/chromebook_link_defconfig
index a9f91dd9b26..1a72fd178a8 100644
--- a/configs/chromebook_link_defconfig
+++ b/configs/chromebook_link_defconfig
@@ -15,6 +15,8 @@  CONFIG_DEBUG_UART=y
 CONFIG_HAVE_MRC=y
 CONFIG_SMP=y
 CONFIG_HAVE_VGA_BIOS=y
+CONFIG_HAS_BOARD_SIZE_LIMIT=y
+CONFIG_BOARD_SIZE_LIMIT=630000
 CONFIG_FIT=y
 CONFIG_BOOTSTAGE=y
 CONFIG_BOOTSTAGE_REPORT=y