]> git.dujemihanovic.xyz Git - u-boot.git/commit
menu: add support to check if menu needs to be reprinted
authorWeijie Gao <weijie.gao@mediatek.com>
Tue, 29 Oct 2024 09:47:16 +0000 (17:47 +0800)
committerTom Rini <trini@konsulko.com>
Mon, 4 Nov 2024 22:41:38 +0000 (16:41 -0600)
commitccdd7948e22f21d2add8f51c4918a2c576dc5e91
treea7b72bad51f44e7bbd2d58f96f44d63660d9f30e
parentddac69885efaffc68a71c1a159dc2b3ff4b9fda3
menu: add support to check if menu needs to be reprinted

This patch adds a new callback named need_reprint for menu.
The need_reprint will be called before printing the menu. If the
callback exists and returns FALSE, menu printing will be canceled.

This is very useful if the menu was not changed. It can save time
for serial-based menu to handle more input data.

Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
Reviewed-by: Daniel Golle <daniel@makrotopia.org>
Tested-by: Daniel Golle <daniel@makrotopia.org>
boot/pxe_utils.c
cmd/bootmenu.c
cmd/eficonfig.c
common/menu.c
include/menu.h