Rename "maru_common.h" to "emulator_common.h".
Remove unnecessary headers.
Remove "guest_debug.h".
Change-Id: I98b4fcf5c3205e4a537685a168f761a749dbd34b
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
check_hax:
@echo "build check hax"
ifdef CONFIG_WIN32
- $(CC) -o check-hax.exe util/check_hax.c
+ $(CC) -o util/check-hax.exe util/check_hax.c
endif
ifdef CONFIG_DARWIN
- $(CC) -mmacosx-version-min=10.4 -o check-hax util/check_hax.c
+ $(CC) -mmacosx-version-min=10.4 -o util/check-hax util/check_hax.c
endif
check_cam:
@echo "build check cam"
ifdef CONFIG_LINUX
- $(CC) -o check-cam util/check_cam.c -lv4l2 -lv4lconvert
+ $(CC) -o util/check-cam util/check_cam.c -lv4l2 -lv4lconvert
endif
ifdef CONFIG_WIN32
- $(CC) -o check-cam.exe util/check_cam.c -I. -lole32 -loleaut32 -luuid -lstrmiids
+ $(CC) -o util/check-cam.exe util/check_cam.c -I. -lole32 -loleaut32 -luuid -lstrmiids
endif
ifdef CONFIG_DARWIN
- $(CC) -o check-cam util/check_cam.c
+ $(CC) -o util/check-cam util/check_cam.c
endif
skin_client:
clean: qemu_clean
ifndef CONFIG_LINUX
- rm -f check-hax$(EXECUTABLE_EXTENSION) check-cam$(EXECUTABLE_EXTENSION)
+ rm -f util/check-hax$(EXECUTABLE_EXTENSION) util/check-cam$(EXECUTABLE_EXTENSION)
else
- rm -f check-cam
+ rm -f util/check-cam
endif
distclean: clean qemu_distclean
# check capabilities of OpenGL and Webcam
cp -pP ../../i386-softmmu/check-gl$(EXECUTABLE_EXTENSION) $(EMUL_DIR)/bin
- cp -pP check-cam$(EXECUTABLE_EXTENSION) $(EMUL_DIR)/bin
+ cp -pP util/check-cam$(EXECUTABLE_EXTENSION) $(EMUL_DIR)/bin
# Enable HW Virtualization on Linux
ifdef CONFIG_LINUX
# check HW Virtualization on Windows and MAC OS X.
ifndef CONFIG_LINUX
- cp -pP check-hax$(EXECUTABLE_EXTENSION) $(EMUL_DIR)/bin
+ cp -pP util/check-hax$(EXECUTABLE_EXTENSION) $(EMUL_DIR)/bin
endif
# give a title name for sdb terminal.
ifdef CONFIG_DARWIN
- cp -pP sdbscript $(EMUL_DIR)/bin
+ cp -pP scripts/sdbscript $(EMUL_DIR)/bin
endif
# use shared memory for display framebuffer
# check capabilities of OpenGL and Webcam
cp -pP ../../i386-softmmu/check-gl$(EXECUTABLE_EXTENSION) $(DIBS_COMMON_DIR)/bin
- cp -pP check-cam$(EXECUTABLE_EXTENSION) $(DIBS_COMMON_DIR)/bin
+ cp -pP util/check-cam$(EXECUTABLE_EXTENSION) $(DIBS_COMMON_DIR)/bin
# Enable HW Virtualization on Linux
# check HW Virtualization on Windows and MAC OS X.
ifndef CONFIG_LINUX
- cp -pP check-hax$(EXECUTABLE_EXTENSION) $(DIBS_COMMON_DIR)/bin
+ cp -pP util/check-hax$(EXECUTABLE_EXTENSION) $(DIBS_COMMON_DIR)/bin
endif
# give a title name for sdb terminal.
ifdef CONFIG_DARWIN
- cp -pP sdbscript $(DIBS_COMMON_DIR)/bin
+ cp -pP scripts/sdbscript $(DIBS_COMMON_DIR)/bin
endif
# use shared memory for display framebuffer
#include "emulator.h"
-#include "maru_common.h"
+#include "emulator_common.h"
#include "maru_display.h"
#include "debug_ch.h"
*
*/
-#include "maru_common.h"
#include "emul_state.h"
#include "skin/maruskin_server.h"
#include "debug_ch.h"
#define __EMUL_STATE_H__
-#include "maru_common.h"
#include "display/maru_finger.h"
enum {
#ifndef __EMULATOR_H__
#define __EMULATOR_H__
-#include "maru_common.h"
+#include "emulator_common.h"
#include "qapi/qmp/qlist.h"
#include "qemu/option.h"
#include "sysemu/sysemu.h"
void start_skin(void);
const gchar * get_log_path(void);
-int maru_device_check(QemuOpts *opts);
void emulator_add_exit_notifier(Notifier *notify);
--- /dev/null
+/*
+ * Emulator
+ *
+ * Copyright (C) 2011, 2012 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact:
+ * SeokYeon Hwang <syeon.hwang@samsung.com>
+ * MunKyu Im <munkyu.im@samsung.com>
+ * GiWoong Kim <giwoong.kim@samsung.com>
+ * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
+ * HyunJun Son
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
+
+/**
+ * @file emulator_common.h
+ * @brief - header file that covers maru common features
+ */
+
+#ifndef __EMULATOR_COMMON_H__
+#define __EMULATOR_COMMON_H__
+
+#include <stddef.h>
+#include <stdint.h>
+#include <stdbool.h>
+#include <stdlib.h>
+#include <glib.h>
+#include <glib/gstdio.h>
+#include <glib/gprintf.h>
+
+#include "config-host.h"
+
+#if !defined(PATH_MAX)
+#if defined(MAX_PATH)
+#define PATH_MAX MAX_PATH
+#else
+#define PATH_MAX 256
+#endif
+#endif
+
+#define JAVA_MAX_COMMAND_LENGTH 1024
+
+#define JAR_SKINFILE "emulator-skin.jar"
+#define JAVA_LIBRARY_PATH "-Djava.library.path"
+
+#ifndef CONFIG_DARWIN
+#define JAVA_EXEOPTION "-jar"
+#else
+#define JAVA_EXEOPTION "-XstartOnFirstThread -jar" // Must start the Java window on the first thread on Mac
+#endif
+#define JAVA_SIMPLEMODE_OPTION "simple.msg"
+
+#ifdef CONFIG_WIN32
+#define MY_KEY_WOW64_64KEY 0x0100
+#else
+#define JAVA_EXEFILE_PATH "java"
+#endif
+
+#endif /* __EMULATOR_COMMON_H__ */
#include "build_info.h"
#include "emulator.h"
#include "emul_state.h"
-#include "guest_debug.h"
#include "hw/virtio/maru_virtio_touchscreen.h"
#include "util/check_gl.h"
#include "util/maru_err_table.h"
#include <string.h>
#include "qemu/queue.h"
-#include "maru_common.h"
#include "emulator_options.h"
#include "emulator.h"
#ifndef __EMULATOR_OPTIONS_H__
#define __EMULATOR_OPTIONS_H__
+#include "emulator_common.h"
+
void set_variable(const char * const arg1, const char * const arg2, bool override);
char *get_variable(const char * const name);
void reset_variables(void);
+++ /dev/null
-/*
- * Emulator
- *
- * Copyright (C) 2011, 2012 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- * SeokYeon Hwang <syeon.hwang@samsung.com>
- * MunKyu Im <munkyu.im@samsung.com>
- * GiWoong Kim <giwoong.kim@samsung.com>
- * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
- * HyunJun Son
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA 02110-1301, USA.
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-/**
- * @file guest_debug.h
- * @brief - header of file these are config structures and defines in emulator
- */
-
-#ifndef __GUEST_DEBUG_H__
-#define __GUEST_DEBUG_H__
-
-#include "exec/memory.h"
-
-char *get_logpath(void);
-MemoryRegion *get_ram_memory(void);
-
-#endif /* __GUEST_DEBUG_H__ */
* add some TIZEN-speciaized device...
*/
-#include <glib.h>
-
-#include "hw/hw.h"
-#include "hw/i386/pc.h"
-#include "hw/i386/apic.h"
-#include "hw/pci/pci.h"
-#include "hw/pci/pci_ids.h"
-#include "hw/usb.h"
-#include "net/net.h"
#include "hw/boards.h"
-#include "hw/ide.h"
-#include "sysemu/kvm.h"
-#include "hw/kvm/clock.h"
-#include "sysemu/sysemu.h"
-#include "hw/sysbus.h"
-#include "hw/cpu/icc_bus.h"
-#include "sysemu/arch_init.h"
-#include "sysemu/blockdev.h"
-#include "hw/i2c/smbus.h"
-#include "hw/xen/xen.h"
-#include "exec/memory.h"
-#include "exec/address-spaces.h"
-#include "hw/acpi/acpi.h"
-#include "cpu.h"
-#ifdef CONFIG_XEN
-# include <xen/hvm/hvm_info_table.h>
-#endif
+#include "hw/i386/pc.h"
-#include "maru_common.h"
-#include "guest_debug.h"
+#include "emulator_common.h"
#include "maru_pm.h"
#define MAX_IDE_BUS 2
+++ /dev/null
-/*
- * Emulator
- *
- * Copyright (C) 2011, 2012 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- * SeokYeon Hwang <syeon.hwang@samsung.com>
- * MunKyu Im <munkyu.im@samsung.com>
- * GiWoong Kim <giwoong.kim@samsung.com>
- * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
- * HyunJun Son
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA 02110-1301, USA.
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-/**
- * @file maru_common.h
- * @brief - header file that covers maru common features
- */
-
-#ifndef __MARU_COMMON_H__
-#define __MARU_COMMON_H__
-
-#include <stddef.h>
-#include <stdint.h>
-#include <stdbool.h>
-#include <stdlib.h>
-#include <glib.h>
-#include <glib/gstdio.h>
-#include <glib/gprintf.h>
-
-#include "config-host.h"
-
-#if !defined(PATH_MAX)
-#if defined(MAX_PATH)
-#define PATH_MAX MAX_PATH
-#else
-#define PATH_MAX 256
-#endif
-#endif
-
-#define JAVA_MAX_COMMAND_LENGTH 1024
-
-#define JAR_SKINFILE "emulator-skin.jar"
-#define JAVA_LIBRARY_PATH "-Djava.library.path"
-
-#ifndef CONFIG_DARWIN
-#define JAVA_EXEOPTION "-jar"
-#else
-#define JAVA_EXEOPTION "-XstartOnFirstThread -jar" // Must start the Java window on the first thread on Mac
-#endif
-#define JAVA_SIMPLEMODE_OPTION "simple.msg"
-
-#ifdef CONFIG_WIN32
-#define MY_KEY_WOW64_64KEY 0x0100
-#else
-#define JAVA_EXEFILE_PATH "java"
-#endif
-
-
-// W/A for preserve larger continuous heap for RAM.
-extern void *preallocated_ptr;
-
-#endif /* __MARU_COMMON_H__ */
-#import <Cocoa/Cocoa.h>
+#import <Cocoa/Cocoa.h>
#import "ns_event.h"
// ns event loop for receive the events from cocoa framework
void ns_event_loop(int* keepRunning)
{
- NSDate* distantFuture;
+ NSDate* distantFuture;
NSRunLoop* theRunLoop = [NSRunLoop currentRunLoop];
do {
distantFuture = [NSDate dateWithTimeIntervalSinceNow:0.5];
}
- while (*keepRunning && [theRunLoop runMode:NSDefaultRunLoopMode beforeDate:distantFuture]);
+ while (*keepRunning && [theRunLoop runMode:NSDefaultRunLoopMode beforeDate:distantFuture]);
// return [[NSRunLoop currentRunLoop] runUntilDate: [NSDate dateWithTimeIntervalSinceNow: 1]];
}
--- /dev/null
+#!/bin/sh
+if [ "$1" == "" ];
+then
+ echo "There is no emulator name for an argument. \nusage: sdbscript emulator-261xx"
+ exit -1
+else
+ TITLE=$1
+ osascript > /dev/null << END
+ tell application "Terminal"
+ activate
+ do script "`pwd`/../../sdb -s $TITLE shell"
+ set custom title of first window to "$TITLE"
+ end tell
+END
+fi
+++ /dev/null
-#!/bin/sh
-if [ "$1" == "" ];
-then
- echo "There is no emulator name for an argument. \nusage: sdbscript emulator-261xx"
- exit -1
-else
- TITLE=$1
- osascript > /dev/null << END
- tell application "Terminal"
- activate
- do script "`pwd`/../../sdb -s $TITLE shell"
- set custom title of first window to "$TITLE"
- end tell
-END
-fi
#include "qemu-common.h"
-#include "maru_common.h"
#include "maruskin_client.h"
#include "maruskin_server.h"
#include "emulator.h"
#include "sysemu/sysemu.h"
#include "hw/sysbus.h"
-#include "maru_common.h"
#include "maruskin_operation.h"
#include "hw/pci/maru_brightness.h"
#include "hw/virtio/maru_virtio_hwkey.h"
#include <pthread.h>
#include "emulator.h"
-#include "maru_common.h"
#include "maruskin_server.h"
#include "maruskin_operation.h"
#include "display/maru_display.h"
#include "sysemu/blockdev.h"
#include "qemu/event_notifier.h"
-#include "maru_common.h"
#include "emulator.h"
#include "maru_device_hotplug.h"
*/
#include "qemu-common.h"
-#include "maru_common.h"
+#include "emulator_common.h"
#include "maru_err_table.h"
#include "debug_ch.h"
*/
#include <png.h>
-#include "maru_common.h"
#include "osutil.h"
#include "emulator.h"
+#include "emul_state.h"
#include "debug_ch.h"
#include "maru_err_table.h"
#include "sdb.h"
#define __OSUTIL_H__
#include "qemu-common.h"
-#include "maru_common.h"
-#include "emul_state.h"
+#include "emulator_common.h"
#define HTTP_PROTOCOL "http="
#define HTTP_PREFIX "http://"
#include "block/nbd.h"
#include "emulator.h"
+#include "emulator_common.h"
#include "debug_ch.h"
#include "emul_state.h"
#ifndef SDB_SERVER_H_
#define SDB_SERVER_H_
-#include "maru_common.h"
-
#include <errno.h>
#ifdef _WIN32
#endif
#ifdef CONFIG_MARU
-#include "../../tizen/src/maru_common.h"
+#include "../../tizen/src/emulator_common.h"
#endif
int qemu_get_thread_id(void)
#include "qom/object_interfaces.h"
#ifdef CONFIG_MARU
-#include "tizen/src/maru_common.h"
#include "tizen/src/emulator.h"
#include "tizen/src/util/maru_err_table.h"
#include "tizen/src/emul_state.h"