From 86339a472350367e4790a862e649c20d421a4aaf Mon Sep 17 00:00:00 2001 From: GiWoong Kim Date: Thu, 10 Apr 2014 12:44:18 +0900 Subject: 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 --- tizen/src/emulator.c | 7 ++++--- 1 file 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"); -- cgit v1.2.3