]> git.dujemihanovic.xyz Git - u-boot.git/commit
cli: allow users to determine history buffer allocation method
authorHanyuan Zhao <hanyuan-z@qq.com>
Tue, 5 Mar 2024 07:37:35 +0000 (15:37 +0800)
committerTom Rini <trini@konsulko.com>
Wed, 13 Mar 2024 16:40:43 +0000 (12:40 -0400)
commit421359ac52bfc80946929c4ffeacf6a68273e758
tree7107a561bfccef84411b2d04500ae457d03d27f0
parent44951340309d0dca73c05fc61406a1e839d1da93
cli: allow users to determine history buffer allocation method

This commit allows users to choose the appropriate memory
allocation method between static allocated and dynamically
calloc. The previous static-array way will not obviously
contribute to the final binary size since it is uninitialized,
and might have better performance than the dynamical one.
Now we provide the users with both the two options.

Signed-off-by: Hanyuan Zhao <hanyuan-z@qq.com>
cmd/Kconfig
common/cli_readline.c