[submodule "roms/edk2"]
path = roms/edk2
url = https://git.qemu.org/git/edk2.git
+[submodule "slirp"]
+ path = slirp
+ url = https://git.qemu.org/git/libslirp.git
[submodule "roms/opensbi"]
path = roms/opensbi
url = https://git.qemu.org/git/opensbi.git
QEMU_CFLAGS="-Wall -Wundef -Wwrite-strings -Wmissing-prototypes $QEMU_CFLAGS"
QEMU_CFLAGS="-Wstrict-prototypes -Wredundant-decls $QEMU_CFLAGS"
QEMU_CFLAGS="-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE $QEMU_CFLAGS"
-QEMU_INCLUDES="-iquote . -iquote \$(SRC_PATH) -iquote \$(SRC_PATH)/accel/tcg -iquote \$(SRC_PATH)/include"
+QEMU_INCLUDES="-iquote . -iquote \$(SRC_PATH) -iquote \$(SRC_PATH)/accel/tcg -iquote \$(SRC_PATH)/include -isystem $PWD"
QEMU_INCLUDES="$QEMU_INCLUDES -iquote \$(SRC_PATH)/disas/libvixl"
if test "$debug_info" = "yes"; then
CFLAGS="-g $CFLAGS"
linux="yes"
linux_user="yes"
kvm="yes"
- QEMU_INCLUDES="-isystem \$(SRC_PATH)/linux-headers -isystem $PWD/linux-headers -isystem $PWD $QEMU_INCLUDES"
+ QEMU_INCLUDES="-isystem \$(SRC_PATH)/linux-headers -isystem $PWD/linux-headers $QEMU_INCLUDES"
supported_os="yes"
libudev="yes"
;;
*
*/
-#include <windows.h>
+#include "yagl_types.h"
#include <wingdi.h>
#include <GL/gl.h>
#include <GL/wglext.h>
-#include <glib.h>
#include "yagl_egl_driver.h"
#include "yagl_dyn_lib.h"
#include "yagl_log.h"
#ifndef _QEMU_YAGL_LOG_H
#define _QEMU_YAGL_LOG_H
-#ifdef _WIN32
-#include <windows.h>
-#endif
-
#include "yagl_types.h"
//#define YAGL_LOG_DISABLE
install_common()
{
TIZEN_VERSIONS="6.5 6.0 5.0 4.0 3.0 2.4 2.3.2"
+ QEMU_VERSION=`cat ${SRCDIR}/package/pkginfo.manifest | grep Version | awk -F: '{print $2}' | xargs`
for VER in ${TIZEN_VERSIONS} ; do
# emulator
# Now it is not necessary. Uncomment the line below if necessary.
#sed -i'' -e "s/tizen-x.x/tizen-$VER/g" "$TARTGET_INSTALL_FILE"
fi
+
+ echo "Removing old builds: " $VER-emulator-qemu-x86_${QEMU_VERSION}_${TARGET_OS}.zip
+ rm -f ${SRCDIR}/$VER-emulator-qemu-x86_${QEMU_VERSION}_${TARGET_OS}.zip
+ rm -f ${SRCDIR}/$VER-emulator-common-x86_${QEMU_VERSION}_${TARGET_OS}.zip
+
done
}
# mingw-x doesn't have zlib, so we use our own.
export EXTRA_CFLAGS=-I${ROOTDIR}/include
export EXTRA_LDFLAGS=-L${ROOTDIR}/lib
+
+ echo "check SRCDIR:" $SRCDIR
+ cd $SRCDIR
else
# for linux target
PYTHON_DIR=`env | grep PATH | grep Python`
if [ "$PYTHON_DIR" = "" ]
then
- echo "Make sure that you have installed Python 2.x version"
+ echo "Make sure that you have installed Python 3.x version"
echo "and then set installed Python/bin path into PATH system variable on your PC!"
exit 1
fi
--- /dev/null
+#!/bin/bash -xe
+#!/bin/sh -xe
+
+# test
+test()
+{
+ TIZEN_PLATFORM_VER="6.5"
+ QEMU_VERSION="5.0.1.2"
+ BUILD_TARGET="ubuntu-64"
+ # emulator
+ EMULATOR_COMMON_DIR=./package/$TIZEN_PLATFORM_VER-emulator-qemu-common.package.${TARGET_OS}/data/platforms/tizen-$TIZEN_PLATFORM_VER/common
+ # we have nothing for common now
+ EMULATOR_X86_DIR=./package/$TIZEN_PLATFORM_VER-emulator-qemu-x86.package.${TARGET_OS}/data/platforms/tizen-$TIZEN_PLATFORM_VER/common
+ mkdir -p ./tizen_test_binaries/
+
+ UNZIP_PATH=`which unzip`
+ if $UNZIP_PATH==""
+ then
+ echo "Install unzip utility"
+ echo "sudo apt install unzip"
+ exit
+ fi
+
+ $UNZIP_PATH $TIZEN_PLATFORM_VER-emulator-qemu-x86_${QEMU_VERSION}_${BUILD_TARGET}.zip -d ./tizen_test_binaries/
+ # Save orignal emulator.
+ cp -pPR $HOME/tizen-studio/platforms/tizen-$TIZEN_PLATFORM_VER/common/emulator $HOME/tizen-studio/platforms/tizen-$TIZEN_PLATFORM_VER/common/emulator_ORGINAL
+
+ cp -pPR ./tizen_test_binaries/data/platforms/tizen-$TIZEN_PLATFORM_VER/common/emulator $HOME/tizen-studio/platforms/tizen-$TIZEN_PLATFORM_VER/common/
+
+ # kill existing emulator manager
+ #pkill -f emulator-manager
+
+ BASH_BIN=`which bash`
+ # Launch Tizen Emulator
+ echo "Launch Tizen Emulator.."
+ $BASH_BIN $HOME/tizen-studio/tools/emulator/bin/emulator-manager
+}
+
+
+test
+
+echo "cleaning up.."
+rm -rf $HOME/tizen-studio/platforms/tizen-$TIZEN_PLATFORM_VER/common/emulator
+mv $HOME/tizen-studio/platforms/tizen-$TIZEN_PLATFORM_VER/common/emulator_ORGINAL $HOME/tizen-studio/platforms/tizen-$TIZEN_PLATFORM_VER/common/emulator
+rm -rf $HOME/tizen-studio/platforms/tizen-$TIZEN_PLATFORM_VER/common/emulator_ORGINAL
+rm -rf ./tizen_test_binaries/
+echo "test success"
--enable-qt
--disable-libav
--enable-libpng
- --enable-virtfs
+ --disable-virtfs
--disable-bzip2
--disable-curl
--disable-lzo
--disable-spice
--disable-curses
--disable-xen
+ --disable-tpm
+ --disable-sdl
--disable-sheepdog
--enable-debug
--enable-debug-info
--extra-ldflags=-static-libstdc++
--audio-drv-list=dsound
--winver=0x0600
- --enable-sdl
--enable-hax"
# append platform specific options
echo "##### QEMU configure append:" $CONFIGURE_APPEND
echo "\nConfigure directory:" ${PWD}
exec ../configure $CONFIGURE_APPEND
-
maru_device_init();
}
-#define HAX_HW_COMPAT_2_6 \
- {\
- .driver = "virtio-pci",\
- .property = "disable-modern",\
- .value = "on",\
- },
-
static void maru_x86_machine_options(MachineClass *m)
{
m->family = "pc_piix";
m->no_cdrom = 1;
m->no_sdcard = 1;
m->default_boot_order = "c";
-#ifdef CONFIG_HAX
- SET_MACHINE_COMPAT(m, HAX_HW_COMPAT_2_6);
-#endif
+#ifdef CONFIG_HAX
+ compat_props_add(m->compat_props, hw_compat_2_6, hw_compat_2_6_len);
+#endif //CONFIG_HAX
}
DEFINE_PC_MACHINE(maru, "maru-x86-machine", maru_x86_board_init,
*
*/
-#include <QtOpenGL>
-#include <QOpenGLShaderProgram>
-#include "displayglwidget.h"
-#include "input/multitouchtracker.h"
-
extern "C" {
#define QObject qemu_QObject
#define QList qemu_QList
//declare _Static_assert as there is none for cpp file in qemu
-#define _Static_assert(x , msg) Q_ASSERT_X(x , "tizen/ui/displayglwidget.o", msg)
+#define _Static_assert(x , msg) //Q_ASSERT_X(x , "tizen/ui/displayglwidget.o", msg)
#include "qemu/osdep.h"
#include "qemu/thread.h"
#undef QObject
#undef QList
+}
+#include <QtOpenGL>
+#include <QOpenGLShaderProgram>
+#include "displayglwidget.h"
+#include "input/multitouchtracker.h"
+
+extern "C" {
extern uint32_t brightness_level;
extern bool display_off;
extern uint8_t brightness_tbl[];
*
*/
-
+extern "C" {
+#define QObject qemu_QObject
+#define QList qemu_QList
+#include "qemu/osdep.h"
+#include "emul_state.h"
+#include "emulator_options.h"
+#undef QObject
+#undef QList
+}
#include <QApplication>
#include <QOpenGLContext>
DECLARE_DEBUG_CHANNEL(qt5_ui);
extern "C" {
-#include "qemu/osdep.h"
-#include "emul_state.h"
-#include "emulator_options.h"
bool is_display_off(void);
}