From: GiWoong Kim Date: Thu, 10 Apr 2014 03:44:18 +0000 (+0900) Subject: emulator: add kernel parameter X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~417 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F91%2F19291%2F2;p=sdk%2Femulator%2Fqemu.git 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 --- 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");