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.
diff --git a/android/cmdline-options.h b/android/cmdline-options.h
index 5291177..0689e83 100644
--- a/android/cmdline-options.h
+++ b/android/cmdline-options.h
@@ -5,6 +5,9 @@
#ifndef OPT_PARAM
#error OPT_PARAM is not defined
#endif
+#ifndef OPT_LIST
+#error OPT_LIST is not defined
+#endif
#ifndef OPT_FLAG
#error OPT_FLAG is not defined
#endif
@@ -128,6 +131,8 @@
OPT_PARAM( bootchart, "<timeout>", "enable bootcharting")
+OPT_LIST( prop, "<name>=<value>", "set system property on boot")
+
#ifdef CONFIG_NAND_LIMITS
OPT_PARAM( nand_limits, "<nlimits>", "enforce NAND/Flash read/write thresholds" )
#endif
@@ -137,3 +142,4 @@
#undef CFG_PARAM
#undef OPT_FLAG
#undef OPT_PARAM
+#undef OPT_LIST