summaryrefslogtreecommitdiffstats
path: root/include/configs/sheevaplug.h
diff options
context:
space:
mode:
authorChris Packham <judge.packham@gmail.com>2018-06-04 19:51:49 +1200
committerStefan Roese <sr@denx.de>2018-06-05 07:29:09 +0200
commit84035fccbe54af1d0513e6288e08a45885ee872c (patch)
tree8d9f3f9a288560bf0bd863f6465de634c8462aa7 /include/configs/sheevaplug.h
parent3789b3dd15e4d522aeda56083e8e5a2ad0e95581 (diff)
downloadu-boot-84035fccbe54af1d0513e6288e08a45885ee872c.tar.gz
u-boot-84035fccbe54af1d0513e6288e08a45885ee872c.tar.xz
u-boot-84035fccbe54af1d0513e6288e08a45885ee872c.zip
ARM: kirkwood: Enforce size limit for sheevaplug
The u-boot binary sits in flash immediately before the environment. Don't allow the binary size to grow into the environment space. Signed-off-by: Chris Packham <judge.packham@gmail.com> Reviewed-by: Stefan Roese <sr@denx.de> Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'include/configs/sheevaplug.h')
-rw-r--r--include/configs/sheevaplug.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/configs/sheevaplug.h b/include/configs/sheevaplug.h
index 23dd5ceb7c..dc6375841e 100644
--- a/include/configs/sheevaplug.h
+++ b/include/configs/sheevaplug.h
@@ -44,6 +44,11 @@
#define CONFIG_ENV_SIZE 0x20000 /* 128k */
#define CONFIG_ENV_ADDR 0x80000
#define CONFIG_ENV_OFFSET 0x80000 /* env starts here */
+/*
+ * Environment is right behind U-Boot in flash. Make sure U-Boot
+ * doesn't grow into the environment area.
+ */
+#define CONFIG_BOARD_SIZE_LIMIT CONFIG_ENV_OFFSET
/*
* Default environment variables