From: Mikhail Zhilkin Date: Sat, 6 Jun 2026 11:59:51 +0000 (+0300) Subject: uboot-airoha: add custom title support X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=77ed809ce390ce2759e747e29accccfc01c7571d;p=thirdparty%2Fopenwrt.git uboot-airoha: add custom title support The patch was copied from mediatek target. Signed-off-by: Mikhail Zhilkin Link: https://github.com/openwrt/openwrt/pull/23569 Signed-off-by: Hauke Mehrtens --- diff --git a/package/boot/uboot-airoha/patches/200-cmd-bootmenu-custom-title.patch b/package/boot/uboot-airoha/patches/200-cmd-bootmenu-custom-title.patch new file mode 100644 index 00000000000..3a66aa298a2 --- /dev/null +++ b/package/boot/uboot-airoha/patches/200-cmd-bootmenu-custom-title.patch @@ -0,0 +1,33 @@ +--- a/cmd/bootmenu.c ++++ b/cmd/bootmenu.c +@@ -482,7 +482,11 @@ static void menu_display_statusline(stru + printf(ANSI_CURSOR_POSITION, 1, 1); + puts(ANSI_CLEAR_LINE); + printf(ANSI_CURSOR_POSITION, 2, 3); +- puts("*** U-Boot Boot Menu ***"); ++ if (menu->mtitle) ++ puts(menu->mtitle); ++ else ++ puts(" *** U-Boot Boot Menu ***"); ++ + puts(ANSI_CLEAR_LINE_TO_END); + printf(ANSI_CURSOR_POSITION, 3, 1); + puts(ANSI_CLEAR_LINE); +@@ -573,6 +577,7 @@ static enum bootmenu_ret bootmenu_show(i + return BOOTMENU_RET_FAIL; + } + ++ bootmenu->mtitle = env_get("bootmenu_title"); + for (iter = bootmenu->first; iter; iter = iter->next) { + if (menu_item_add(menu, iter->key, iter) != 1) + goto cleanup; +--- a/include/menu.h ++++ b/include/menu.h +@@ -43,6 +43,7 @@ struct bootmenu_data { + int last_active; /* last active menu entry */ + int count; /* total count of menu entries */ + struct bootmenu_entry *first; /* first menu entry */ ++ char *mtitle; /* custom menu title */ + }; + + /** enum bootmenu_key - keys that can be returned by the bootmenu */