summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
Diffstat (limited to 'commands')
-rw-r--r--commands/of_node.c2
-rw-r--r--commands/of_property.c2
-rw-r--r--commands/oftree.c2
3 files changed, 6 insertions, 0 deletions
diff --git a/commands/of_node.c b/commands/of_node.c
index 901da88735..4962e52429 100644
--- a/commands/of_node.c
+++ b/commands/of_node.c
@@ -21,6 +21,7 @@
#include <environment.h>
#include <fdt.h>
#include <of.h>
+#include <complete.h>
#include <command.h>
#include <fs.h>
#include <malloc.h>
@@ -104,5 +105,6 @@ BAREBOX_CMD_START(of_node)
BAREBOX_CMD_DESC("create/delete nodes in the device tree")
BAREBOX_CMD_OPTS("[-cd] NODE NAME")
BAREBOX_CMD_GROUP(CMD_GRP_MISC)
+ BAREBOX_CMD_COMPLETE(devicetree_complete)
BAREBOX_CMD_HELP(cmd_of_node_help)
BAREBOX_CMD_END
diff --git a/commands/of_property.c b/commands/of_property.c
index f9f35b2e34..e0154fc394 100644
--- a/commands/of_property.c
+++ b/commands/of_property.c
@@ -24,6 +24,7 @@
#include <command.h>
#include <fs.h>
#include <malloc.h>
+#include <complete.h>
#include <linux/ctype.h>
#include <asm/byteorder.h>
#include <errno.h>
@@ -317,5 +318,6 @@ BAREBOX_CMD_START(of_property)
BAREBOX_CMD_DESC("handle device tree properties")
BAREBOX_CMD_OPTS("[-sd] NODE [PROPERTY] [VALUES]")
BAREBOX_CMD_GROUP(CMD_GRP_MISC)
+ BAREBOX_CMD_COMPLETE(devicetree_complete)
BAREBOX_CMD_HELP(cmd_of_property_help)
BAREBOX_CMD_END
diff --git a/commands/oftree.c b/commands/oftree.c
index 3253cf16a8..16648d62f3 100644
--- a/commands/oftree.c
+++ b/commands/oftree.c
@@ -37,6 +37,7 @@
#include <getopt.h>
#include <init.h>
#include <fcntl.h>
+#include <complete.h>
static int do_oftree(int argc, char *argv[])
{
@@ -207,4 +208,5 @@ BAREBOX_CMD_START(oftree)
BAREBOX_CMD_OPTS("[-lpfdn] [DTB]")
BAREBOX_CMD_GROUP(CMD_GRP_MISC)
BAREBOX_CMD_HELP(cmd_oftree_help)
+ BAREBOX_CMD_COMPLETE(devicetree_file_complete)
BAREBOX_CMD_END