summaryrefslogtreecommitdiffstats
path: root/src/config/branding.h
diff options
context:
space:
mode:
authorMichael Brown2015-02-11 14:49:02 +0100
committerMichael Brown2015-02-11 15:11:28 +0100
commit92f3bd901e359649cab05c7cb566d333e1f46f19 (patch)
tree38e243f1d11f203913756da7a74f5a5fd884ec0f /src/config/branding.h
parent[build] Allow error message URI to be customised via config/branding.h (diff)
downloadipxe-92f3bd901e359649cab05c7cb566d333e1f46f19.tar.gz
ipxe-92f3bd901e359649cab05c7cb566d333e1f46f19.tar.xz
ipxe-92f3bd901e359649cab05c7cb566d333e1f46f19.zip
[build] Allow command help text URI to be customised via config/branding.h
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/config/branding.h')
-rw-r--r--src/config/branding.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/config/branding.h b/src/config/branding.h
index 4bd7e3cc..43f7592d 100644
--- a/src/config/branding.h
+++ b/src/config/branding.h
@@ -73,6 +73,50 @@ FILE_LICENCE ( GPL2_OR_LATER );
*/
#define PRODUCT_ERROR_URI "http://ipxe.org/%08x"
+/*
+ * Command help messages
+ *
+ * iPXE command help messages include a URI constructed from the
+ * command name, such as
+ *
+ * "See http://ipxe.org/cmd/vcreate for further information"
+ *
+ * The iPXE web site includes documentation for the commands provided
+ * by the iPXE shell, including:
+ *
+ * - details of the command syntax (e.g. "vcreate --tag <tag>
+ * [--priority <priority>] <trunk interface>").
+ *
+ * - example usages of the command (e.g. "vcreate --tag 123 net0")
+ *
+ * - a formal description of the command (e.g. "Create a VLAN network
+ * interface on an existing trunk network interface. The new network
+ * interface will be named by appending a hyphen and the VLAN tag
+ * value to the trunk network interface name.")
+ *
+ * - details of the possible exit statuses from the command.
+ *
+ * - links to documentation for related commands (e.g. "vdestroy")
+ *
+ * - links to documentation for relevant build options (e.g. "VLAN_CMD").
+ *
+ * - general hints and tips on using the command.
+ *
+ * If you want to provide your own documentation for all of the
+ * commands provided by the iPXE shell, rather than using the existing
+ * support infrastructure provided by http://ipxe.org, then you may
+ * define a custom URI to be included within command help messages.
+ *
+ * Note that the custom URI is a printf() format string which must
+ * include a format specifier for the command name.
+ *
+ * [ Please also note that the existing documentation is licensed
+ * under Creative Commons terms which require attribution to the
+ * iPXE project and prohibit the alteration or removal of any
+ * references to "iPXE". ]
+ */
+#define PRODUCT_COMMAND_URI "http://ipxe.org/cmd/%s"
+
#include <config/local/branding.h>
#endif /* CONFIG_BRANDING_H */