The macro used to be 256K back in 2011, and was bumped to 512K in 2014.
Now 11 years later, the image is about to grow beyond it.

As this limit seems to be arbitrary anyway, just double it again to 1M.

If a smaller size is indeed needed, it should be enforced over
BAREBOX_MAX_IMAGE_SIZE instead. For QEMU and testing in CI, 1M is fine
though and we need not bother with keeping generic_defconfig small.

Signed-off-by: Ahmad Fatoum <[email protected]>
---
 arch/openrisc/include/asm/config.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/arch/openrisc/include/asm/config.h 
b/arch/openrisc/include/asm/config.h
index 85d777db8f63..d50d696e24fb 100644
--- a/arch/openrisc/include/asm/config.h
+++ b/arch/openrisc/include/asm/config.h
@@ -2,6 +2,8 @@
 #ifndef _OPENRISC_ASM_CONFIG_H_
 #define _OPENRISC_ASM_CONFIG_H_
 
+#include <linux/sizes.h>
+
 #define CFG_SYS_CLK_FREQ               50000000
 
 #define OPENRISC_TIMER_FREQ            CFG_SYS_CLK_FREQ
@@ -9,7 +11,6 @@
 #define OPENRISC_SOPC_MEMORY_BASE      0x00000000
 #define OPENRISC_SOPC_MEMORY_SIZE      0x02000000
 
-/* We reserve 512K for barebox */
-#define BAREBOX_RESERVED_SIZE          0x80000
+#define BAREBOX_RESERVED_SIZE          SZ_1M
 
 #endif
-- 
2.47.3


Reply via email to