Sascha Hauer
87feda4eb1
environment variables: use linux list
...
This switches environment variables to use linux list. This is easier
to read. An additional plus is that the environment variables no longer
need an initcall, so malloc is the only requirement for them.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-30 10:24:12 +01:00
Sascha Hauer
77322aa896
Treewide: remove address of the Free Software Foundation
...
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>
2012-09-17 10:57:41 +02:00
Jean-Christophe PLAGNIOL-VILLARD
8bc0b0a008
complete: add missing EXPORT_SYMBOL for {command, device, empty, command}_var_complete
...
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-07-25 09:50:00 +02:00
Sascha Hauer
c77dd2a81b
Merge branch 'for-next/menu'
2012-07-02 11:02:59 +02:00
Sascha Hauer
4d5a9be0dc
complete: fix parameter complete with multiple '.'
...
When a device parameter has dots in its name, we have to use strchr instead
of strrchr, because the devicename ends at the first dot, not at the last one.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-06-30 20:23:26 +02:00
Steffen Trumtrar
f2bfcf98a1
common: fix typo cammand_var_complete
...
Change function name to command_var_complete in all calls and its declaration.
Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-06-30 12:47:04 +02:00
Jean-Christophe PLAGNIOL-VILLARD
7e88b6c7f1
complete: fix duplicate env eval list
...
this can be reproductable by this sequence
barebox:/ <TAB>
. ? [ addpart
bootm cat cd clear
cp cpuinfo crc32 delpart
devinfo dhcp echo edit
erase ethact exit export
false getopt go help
host loadb loadenv loady
login ls md md5sum
memcmp memcpy meminfo memset
menu mkdir mount mtest
mw nfs passwd ping
printenv protect pwd readline
reset rm rmdir saveenv
sedit sh sha1sum sha256sum
sleep source test tftp
time timeout true umount
uncompress unprotect version net.nameserver=
net.domainname= cs0.baudrate= cs0.active= cs1.active=
cs1.ip= cs1.port=
barebox:/ $<TAB>
$net.nameserver $net.domainname $cs0.baudrate
$cs0.active $cs1.active $cs1.ip
$cs1.port $net.nameserver $net.domainname
$cs0.baudrate $cs0.active $cs1.active
$cs1.ip $cs1.port
barebox:/ $
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-05-03 20:11:51 +02:00
Jean-Christophe PLAGNIOL-VILLARD
9492976bc8
complete: add executable file support
...
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2012-04-30 20:37:40 +08:00
Jean-Christophe PLAGNIOL-VILLARD
c43a087718
complete: add go and sleep support
...
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2012-04-30 20:37:40 +08:00
Jean-Christophe PLAGNIOL-VILLARD
8e6f45f54f
complete: add empty complete support
...
for cpuinfo, clear, dhcp, false, login, lsmod, meminfo, passwd, pwd, reginfo,
reset, true, usb, version
for mach-imx and mach-mxs: dump_clocks
for u_serial: mycdev
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2012-04-30 20:37:40 +08:00
Jean-Christophe PLAGNIOL-VILLARD
1fa17ad5d4
complete: add device name complete support for devinfo
...
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2012-04-30 20:37:34 +08:00
Jean-Christophe PLAGNIOL-VILLARD
9dfb0030ee
complete: add generic command complete framework
...
introduce generic command specific complete callback
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2012-04-30 20:29:50 +08:00
Jean-Christophe PLAGNIOL-VILLARD
c3d60e6df3
complete: add var and device param complete support
...
with $xx or xx= or if device $xx.yy or xx.yy=
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2012-04-30 20:22:24 +08:00
Alexander Aring
56d0d5012f
auto-completion: add auto-completion for path files
...
Add auto-completion for path files.
Signed-off-by: Alexander Aring <a.aring@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-12-21 12:38:14 +01:00
Sascha Hauer
922bb41a47
remove typedef cmd_tbl_t and replace it with struct command
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-02-01 17:25:32 +01:00
Sascha Hauer
73d57b1d35
list: remove duplicated list.h
...
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>
2009-11-03 09:48:53 +01:00
Sascha Hauer
f5a9246875
use newly introduced stringlist functions for tab completion
2008-03-11 21:40:40 +01:00
Sascha Hauer
df31bb46be
implement TAB completion
2008-03-01 21:08:14 +01:00