提交 60cfe87b 编写于 作者: S Stefan Roese 提交者: Wolfgang Denk

UBI: Add compile-time check for correct malloc area configuration

UBI is quite memory greedy and requires at least approx. 512k of malloc
area. This patch adds a compile-time check, so that boards will not
build with less memory reserved for this area (CONFIG_SYS_MALLOC_LEN).
Signed-off-by: NStefan Roese <sr@denx.de>
上级 7ce6031a
......@@ -46,6 +46,10 @@
#include <ubi_uboot.h>
#include "ubi.h"
#if (CONFIG_SYS_MALLOC_LEN < (512 << 10))
#error Malloc area too small for UBI, increase CONFIG_SYS_MALLOC_LEN to >= 512k
#endif
/* Maximum length of the 'mtd=' parameter */
#define MTD_PARAM_LEN_MAX 64
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册