Changeset 4068


Ignore:
Timestamp:
02/15/08 13:38:50 (5 years ago)
Author:
werner
Message:

We don't need to hard-code the "factory reset" option. Just having it in
the environment will work as well. (Unless the environment is too badly
messed up.)

board/neo1973/common/bootmenu.c (factory_reset, neo1973_bootmenu): removed

hard-coded "factory reset" default

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/target/u-boot/patches/boot-menu.patch

    r3484 r4068  
    2525--- /dev/null 
    2626+++ u-boot/board/neo1973/common/bootmenu.c 
    27 @@ -0,0 +1,122 @@ 
     27@@ -0,0 +1,113 @@ 
    2828+/* 
    2929+ * bootmenu.c - Boot menu 
     
    9696+ 
    9797+ 
    98 +static void factory_reset(void *user) 
    99 +{ 
    100 +       default_env(); 
    101 +       run_command("dynpart", 0); 
    102 +       run_command("bootd", 0); 
    103 +} 
    104 + 
    105 + 
    10698+static int seconds(void *user) 
    10799+{ 
     
    145137+       bootmenu_add("Boot", NULL, "bootd"); 
    146138+       bootmenu_init(&bootmenu_setup); 
    147 +       bootmenu_add("Factory reset", factory_reset, NULL); 
    148139+       bootmenu(); 
    149140+} 
     
    362353 COBJS-y += circbuf.o 
    363354 COBJS-y += cmd_autoscript.o 
    364  COBJS-y += cmd_bdinfo.o 
     355 COBJS-$(CONFIG_CMD_BDI) += cmd_bdinfo.o 
    365356Index: u-boot/common/bootmenu.c 
    366357=================================================================== 
Note: See TracChangeset for help on using the changeset viewer.