emulator: add kernel parameter 91/19291/2
authorGiWoong Kim <giwoong.kim@samsung.com>
Thu, 10 Apr 2014 03:44:18 +0000 (12:44 +0900)
committerGiWoong Kim <giwoong.kim@samsung.com>
Thu, 10 Apr 2014 05:07:36 +0000 (14:07 +0900)
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>
tizen/src/emulator.c

index af0f097764c9948881df36632446717a3f6bc318..0bd636caa3e7865cf155e984ab7ed9ee036ccfd5 100644 (file)
@@ -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");