Changeset 4068
- Timestamp:
- 02/15/08 13:38:50 (5 years ago)
- File:
-
- 1 edited
-
trunk/src/target/u-boot/patches/boot-menu.patch (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/target/u-boot/patches/boot-menu.patch
r3484 r4068 25 25 --- /dev/null 26 26 +++ u-boot/board/neo1973/common/bootmenu.c 27 @@ -0,0 +1,1 22@@27 @@ -0,0 +1,113 @@ 28 28 +/* 29 29 + * bootmenu.c - Boot menu … … 96 96 + 97 97 + 98 +static void factory_reset(void *user)99 +{100 + default_env();101 + run_command("dynpart", 0);102 + run_command("bootd", 0);103 +}104 +105 +106 98 +static int seconds(void *user) 107 99 +{ … … 145 137 + bootmenu_add("Boot", NULL, "bootd"); 146 138 + bootmenu_init(&bootmenu_setup); 147 + bootmenu_add("Factory reset", factory_reset, NULL);148 139 + bootmenu(); 149 140 +} … … 362 353 COBJS-y += circbuf.o 363 354 COBJS-y += cmd_autoscript.o 364 COBJS- y+= cmd_bdinfo.o355 COBJS-$(CONFIG_CMD_BDI) += cmd_bdinfo.o 365 356 Index: u-boot/common/bootmenu.c 366 357 ===================================================================
Note: See TracChangeset
for help on using the changeset viewer.
