aboutsummaryrefslogtreecommitdiffstats
path: root/android/help.c
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@google.com>2009-05-25 18:01:03 +0200
committerDavid 'Digit' Turner <digit@google.com>2009-05-26 17:23:25 +0200
commit318e4f294c181df33cf2541763904565b29bcccb (patch)
tree35b5085c9e35e91967e2d4a4db80e28ec086e1d3 /android/help.c
parent0d47fe5756b1f243e8d65968cd73c0119363f909 (diff)
downloadexternal_qemu-318e4f294c181df33cf2541763904565b29bcccb.zip
external_qemu-318e4f294c181df33cf2541763904565b29bcccb.tar.gz
external_qemu-318e4f294c181df33cf2541763904565b29bcccb.tar.bz2
This adds the '-prop <name>=<value>' option which is used to set
boot-time system properties from the command line. This is done by implementing a new 'boot-properties' qemud service in the emulator. This is to be used by the 'qemu-props' helper program that will be invoked by /system/etc/init.goldfish.rc to read a list of system properties from the emulator and set them in the emulated system during boot.
Diffstat (limited to 'android/help.c')
-rw-r--r--android/help.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/android/help.c b/android/help.c
index 391b63d..d01ccc9 100644
--- a/android/help.c
+++ b/android/help.c
@@ -5,6 +5,7 @@
#include "android/utils/debug.h"
#include "android/utils/misc.h"
#include "android/skin/keyset.h"
+#include "android/boot-properties.h"
#include "android/android.h"
#include <stdint.h>
#include "audio/audio.h"
@@ -1281,6 +1282,24 @@ help_tcpdump(stralloc_t *out)
);
}
+static void
+help_prop(stralloc_t *out)
+{
+ PRINTF(
+ " use '-prop <name>=<value>' to set a boot-time system property.\n"
+ " <name> must be a property name of at most %d characters, without any\n"
+ " space in it, and <value> must be a string of at most %d characters.\n\n",
+ PROPERTY_MAX_NAME, PROPERTY_MAX_VALUE );
+
+ PRINTF(
+ " the corresponding system property will be set at boot time in the\n"
+ " emulated system. This can be useful for debugging purposes.\n\n"
+
+ " note that you can use several -prop options to define more than one\n"
+ " boot property.\n\n"
+ );
+}
+
#define help_no_skin NULL
#define help_netspeed help_shaper
#define help_netdelay help_shaper
@@ -1307,6 +1326,7 @@ typedef struct {
static const OptionHelp option_help[] = {
#define OPT_FLAG(_name,_descr) { STRINGIFY(_name), NULL, _descr, help_##_name },
#define OPT_PARAM(_name,_template,_descr) { STRINGIFY(_name), _template, _descr, help_##_name },
+#define OPT_LIST OPT_PARAM
#include "android/cmdline-options.h"
{ NULL, NULL, NULL, NULL }
};