diff options
author | Chris Packham <judge.packham@gmail.com> | 2018-06-04 10:51:50 +0300 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2018-06-05 08:29:09 +0300 |
commit | d4899b0f5ddf39de47bd952ca8484a14f03d00fe (patch) | |
tree | cb82bc7a1307a72506e66124f1a65ec6307aec47 /include/configs/guruplug.h | |
parent | 84035fccbe54af1d0513e6288e08a45885ee872c (diff) | |
download | u-boot-d4899b0f5ddf39de47bd952ca8484a14f03d00fe.tar.xz |
ARM: kirkwood: Enforce size limit for guruplug
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/guruplug.h')
-rw-r--r-- | include/configs/guruplug.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/configs/guruplug.h b/include/configs/guruplug.h index 9e7ca60f11..04b7e944a4 100644 --- a/include/configs/guruplug.h +++ b/include/configs/guruplug.h @@ -39,6 +39,11 @@ */ #define CONFIG_ENV_SIZE 0x20000 /* 128k */ #define CONFIG_ENV_OFFSET 0xE0000 /* 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 |