summaryrefslogtreecommitdiffstats
path: root/include/command.h
Commit message (Collapse)AuthorAgeFilesLines
* Treewide: remove address of the Free Software FoundationSascha Hauer2012-09-171-4/+0
| | | | | | | The FSF address has changed in the past. Instead of updating it each time the address changes, just drop it completely treewide. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* complete: add generic command complete frameworkJean-Christophe PLAGNIOL-VILLARD2012-04-301-0/+8
| | | | | | introduce generic command specific complete callback Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* commands: remove struct command pointer from commandsSascha Hauer2012-02-271-1/+1
| | | | | | This is unused in all commands and thus can be removed. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* commands: really print BAREBOX_CMD_HELP_TEXTWolfram Sang2011-12-191-1/+1
| | | | | Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* doc: add macros to unify command help with doxygenRobert Schwebel2010-11-011-0/+9
| | | | | | | | | Currently we have duplicated all the information that appears online in 'help <command>' and in the doxygen documentation. This patch adds some infrastructure to specify help texts only once and re-use them for the integrated help as well as for the manual. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* doc: avoid that doxygen parses magic in command.hRobert Schwebel2010-10-221-0/+4
| | | | | | | | | | | | | Don't let doxygen parse the command magic, which leads to these warnings: command.h:93: Warning: explicit link request to 'define' could not be resolved command.h:98: Warning: expected <tr> tag but found TK_LNKWORD token instead! command.h:98: Warning: Found unknown command `\t' command.h:101: Warning: explicit link request to 'define' could not be resolved command.h:103: Warning: explicit link request to 'define' could not be resolved Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* command.h: sparse fixesSascha Hauer2010-10-211-3/+4
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* import __stringify from linuxJean-Christophe PLAGNIOL-VILLARD2010-09-291-4/+1
| | | | | | | update the current code Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* remove typedef cmd_tbl_t and replace it with struct commandSascha Hauer2010-02-011-12/+8
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* remove obsolete commentSascha Hauer2010-01-251-5/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* rename U-Boot-v2 project to bareboxSascha Hauer2009-12-151-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | This has been done with the following script: find -path ./.git -prune -o -type f -print0 | xargs -0 -r sed -i \ -e 's/u2boot/barebox/g' \ -e 's/U2Boot/barebox/g' \ -e 's/U-boot V2/barebox/g' \ -e 's/u-boot v2/barebox/g' \ -e 's/U-Boot V2/barebox/g' \ -e 's/U-Boot-v2/barebox/g' \ -e 's/U_BOOT/BAREBOX/g' \ -e 's/UBOOT/BAREBOX/g' \ -e 's/uboot/barebox/g' \ -e 's/u-boot/barebox/g' \ -e 's/u_boot/barebox/g' \ -e 's/U-Boot/barebox/g' \ -e 's/U-boot/barebox/g' \ -e 's/U-BOOT/barebox/g' find -path ./.git -prune -o \( -name "*u-boot*" -o -name "*uboot*" -o -name "*u_boot*" \) -print0 | \ xargs -0 -r rename 's/u[-_]?boot/barebox/' It needs some manual fixup following in the next patch Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* list: remove duplicated list.hSascha Hauer2009-11-031-1/+1
| | | | | | | | We accidently have two list implementations in the tree: include/list.h and include/linux/list.h. This patch moves the latter (newer one) to include/linux/list.h. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* commands: remove maxargsSascha Hauer2009-10-191-1/+0
| | | | | | | No need to check for maximum argument counts. The commands are safe to be called with more arguments, so lets safe some bytes. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* commands: add defines for command errors/successSascha Hauer2009-10-191-0/+4
| | | | | | | | This allows us to return COMMAND_ERROR_USAGE for a failed command which will then print the usage, a very common case for commands. Signed-off-by: Sascha Hauer <sha@pengutronix.de>
* remove unused typedefSascha Hauer2009-10-191-10/+0
| | | | Signed-off-by: Sascha Hauer <sha@pengutronix.de>
* consolidate command calling in execute_commandSascha Hauer2009-10-191-0/+1
| | | | Signed-off-by: Sascha Hauer <sha@pengutronix.de>
* Subject: [PATCH] [general] Fixed constant strings in data section issueSascha Hauer2008-04-041-4/+4
| | | | | | | | For practical reasons I changed all string literals assumed to be constant to reside in .rodata subsection at end of .text section. Signed-off-by: Carsten Schlote <schlote@vahanus.net> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* remove traces of old tab completionSascha Hauer2008-03-011-9/+0
|
* Collect all commands in a linked list. This makes it easier to handleSascha Hauer2007-10-111-0/+9
| | | | dynamically registered commands.
* Add register_command() to register a command in runtime. ThisSascha Hauer2007-10-011-0/+2
| | | | | is only needed when modules are enabled, so the change is inside "#ifdef CONFIG_MODULE"
* remove u-boot command paramter flagSascha Hauer2007-09-241-9/+3
|
* svn_rev_477Sascha Hauer2007-07-051-1/+7
| | | | add alignment fix (hack?) for x86_64
* svn_rev_462Sascha Hauer2007-07-051-1/+5
| | | | | | | - Add help texts for many commands. - Let the linker sort the command table. - Add support for multiple argmuments in several commands (mkdir, rmdir, rm, cat)
* svn_rev_420Sascha Hauer2007-07-051-10/+12
| | | | | | | | | | | - do more POSIX: - use DIR instead of struct dirent - use (struct dirent)->d_name instead of (struct dirent)->name - switch to a new layout for U_BOOT_CMD: - use C99 initializers to be able to add more fields to the command struct - add aliases for commands (needed mainly for help -> ? and test -> [ - This is not done for all commands yet, but the compiler will tell you ;)
* svn_rev_216Sascha Hauer2007-07-051-3/+3
| | | | CFG_LONGHELP -> CONFIG_LONGHELP
* * Patches by Pantelis Antoniou, 30 Mar 2004:wdenk2004-04-151-0/+9
| | | | | | | | | | - add auto-complete support to the U-Boot CLI - add support for NETTA and NETPHONE boards; fix NETVIA board * Patch by Yuli Barcohen, 28 Mar 2004: - Add support for MPC8272 family including MPC8247/8248/8271/8272 - Add support for MPC8272ADS evaluation board (another flavour of MPC8260ADS) - Change configuration method for MPC8260ADS family
* Patch by Kenneth Johansson, 30 Jun 2003:wdenk2003-07-011-6/+4
| | | | get rid of MK_CMD_ENTRY macro; update doc/README.command
* * Code cleanup:wdenk2003-06-271-9/+19
| | | | | | | | | - remove trailing white space, trailing empty lines, C++ comments, etc. - split cmd_boot.c (separate cmd_bdinfo.c and cmd_load.c) * Patches by Kenneth Johansson, 25 Jun 2003: - major rework of command structure (work done mostly by Michal Cendrowski and Joakim Kristiansen)
* Initial revisionwdenk2002-08-271-0/+90