summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiWoong Kim <giwoong.kim@samsung.com>2014-04-10 12:44:18 +0900
committerGiWoong Kim <giwoong.kim@samsung.com>2014-04-10 14:07:36 +0900
commit86339a472350367e4790a862e649c20d421a4aaf (patch)
treebc3e137eb8367ea4be71ddadebb6a7dbebae8498
parenta5c4d0e488745998a7624e6aa0e1d2905d994357 (diff)
downloadqemu-86339a472350367e4790a862e649c20d421a4aaf.tar.gz
qemu-86339a472350367e4790a862e649c20d421a4aaf.tar.bz2
qemu-86339a472350367e4790a862e649c20d421a4aaf.zip
emulator: add kernel parameter
In some cases, guest needs VM resolution value. (e.g. touchscreen driver, model-config.xml) In order to read that values from host easily, I added resolution parameters for kernel. Change-Id: I615ec909e517e2628cc727ec77d7d86a18d0c8c8 Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
-rw-r--r--tizen/src/emulator.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/tizen/src/emulator.c b/tizen/src/emulator.c
index af0f097764..0bd636caa3 100644
--- a/tizen/src/emulator.c
+++ b/tizen/src/emulator.c
@@ -383,8 +383,9 @@ static void prepare_basic_features(void)
gchar * const tmp_str = g_strdup_printf(" sdb_port=%d,"
" http_proxy=%s https_proxy=%s ftp_proxy=%s socks_proxy=%s"
- " dns1=%s", get_emul_vm_base_port(),
- http_proxy, https_proxy, ftp_proxy, socks_proxy, dns);
+ " dns1=%s vm_resolution=%dx%d", get_emul_vm_base_port(),
+ http_proxy, https_proxy, ftp_proxy, socks_proxy, dns,
+ get_emul_resolution_width(), get_emul_resolution_height());
g_strlcat(maru_kernel_cmdline, tmp_str, LEN_MARU_KERNEL_CMDLINE);
@@ -459,7 +460,7 @@ static void prepare_host_webcam(void)
g_free(tmp_str);
}
-const gchar * prepare_maru_devices(const gchar *kernel_cmdline)
+const gchar *prepare_maru_devices(const gchar *kernel_cmdline)
{
INFO("Prepare maru specified kernel command line\n");