[U-Boot] [RFC/PATCH 1/2] Add menu Framework

Jean-Christophe PLAGNIOL-VILLARD
2009-06-15T13:04:46Z

> > +#if defined(CONFIG_CMD_MENU_MANAGEMENT)
> > + if (!strncmp(argv[0], "a", 1))
> > + return do_menu_add(cmdtp, flag, argc, argv);
> > + if (!strncmp(argv[0], "e", 1))
> > + return do_menu_entry(cmdtp, flag, argc, argv);
> > +#endif
> > + if (!strncmp(argv[0], "l", 1))
> > + return do_menu_list(cmdtp, flag, argc, argv);
> > + if (!strncmp(argv[0], "s", 1))
> > + return do_menu_show(cmdtp, flag, argc, argv);
> > + else
> > + cmd_usage(cmdtp);
>
> Please use the existing command parser for such subcommands.
ok which one?

Best Regards,
J.