[U-Boot] [PATCH v3 4/7] malloc_f: add ARCH_MALLOC_F_LEN to specify SoC-default malloc_f_len

Masahiro YAMADA
2015-02-20T17:11:56Z

2015-02-20 14:24 GMT+09:00 Masahiro Yamada <yamada.m@jp.panasonic.com>:
> Now the default value of CONFIG_SYS_MALLOC_F_LEN can be overridden
> by SoC Kconfig file, but we still have to add the same conditional
> "if SYS_MALLOC_F" to every default. Otherwise, a broken .config
> file could be generated. It is too painful.
>
> This commit intends to solve it by introducing SoC-default
> ARCH_MALLOC_F_LEN. This works as follows:
>
> - If ARCH_MALLOC_F_LEN is defined, it overrides the default of
> SYS_MALLOC_F_LEN. If you have the SoC-optimized value,
> you might wish to do this.
>
> - If ARCH_MALLOC_F_LEN is not defined, SYS_MALLOC_F_LEN is default
> to 0x400. This is the global default and it should work well
> enough in most cases.
>
> - You can still change SYS_MALLOC_F_LEN per board, although you do
> not probably have to do so. Per-board default should be saved
> into each defconfig.
>
> Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
> ---

Sorry, this patch does not work at all.
I was completely misunderstanding.

I take it back.

--
Best Regards
Masahiro Yamada