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

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Mon Jun 15 15:04:46 CEST 2009


> > +#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.


More information about the U-Boot mailing list