From: syeon.hwang Date: Fri, 12 Oct 2012 02:37:34 +0000 (+0900) Subject: build: remove auto-configuration part in build.sh and add i386 target to emulator_con... X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~1405^2~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7965cff25b5944b69a218ff245f56b62436d838d;p=sdk%2Femulator%2Fqemu.git build: remove auto-configuration part in build.sh and add i386 target to emulator_configure.sh --- diff --git a/tizen/build.sh b/tizen/build.sh index 08e930e1c8..ba945b5cef 100755 --- a/tizen/build.sh +++ b/tizen/build.sh @@ -1,219 +1,4 @@ #!/bin/sh -# Build both x86 and ARM emulators by default - -UNAME=`uname` -CONFIGURE_SCRIPT="./emulator_configure.sh" -CONFIGURE_APPEND="" -EMUL_TARGET_LIST="" -VIRTIOGL_EN="" -OPENGLES_EN="" -YAGL_EN="" -YAGL_STATS_EN="" - -usage() { - echo "usage: build.sh [options] [target]" - echo "" - echo "target" - echo " emulator target, one of: [x86|i386|i486|i586|i686|arm|all]. Defaults to \"all\"" - echo "" - echo "options:" - echo "-d, --debug" - echo " build debug configuration" - echo "-dgl, --debug-gles" - echo " build with openGLES passthrough device debug messages enable" - echo "-vgl|--virtio-gl" - echo " enable virtio GL support" - echo "-gles|--opengles" - echo " enable openGLES passthrough device" - echo "-yagl|--yagl-device" - echo " enable YaGL passthrough device" - echo "-ys|--yagl-stats" - echo " enable YaGL stats" - echo "-e|--extra" - echo " extra options for QEMU configure" - echo "-u|-h|--help|--usage" - echo " display this help message and exit" -} - -virtgl_enable() { - case "$1" in - 0|no|disable) - VIRTIOGL_EN="no" - ;; - 1|yes|enable) - VIRTIOGL_EN="yes" - ;; - *) - usage - exit 1 - ;; - esac -} - -opengles_enable() { - case "$1" in - 0|no|disable) - OPENGLES_EN="no" - ;; - 1|yes|enable) - OPENGLES_EN="yes" - ;; - *) - usage - exit 1 - ;; - esac -} - -yagl_enable() { - case "$1" in - 0|no|disable) - YAGL_EN="no" - ;; - 1|yes|enable) - YAGL_EN="yes" - ;; - *) - usage - exit 1 - ;; - esac -} - -yagl_stats_enable() { - case "$1" in - 0|no|disable) - YAGL_STATS_EN="no" - ;; - 1|yes|enable) - YAGL_STATS_EN="yes" - ;; - *) - usage - exit 1 - ;; - esac -} - -set_target() { - if [ ! -z "$EMUL_TARGET_LIST" ] ; then - usage - exit 1 - fi - - case "$1" in - x86|i386|i486|i586|i686) - EMUL_TARGET_LIST="i386-softmmu" - if [ -z "$VIRTIOGL_EN" ] ; then - virtgl_enable yes - fi - ;; - arm) - EMUL_TARGET_LIST="arm-softmmu" - if [ -z "$YAGL_EN" ] && [ -z "$OPENGLES_EN" ] ; then - yagl_enable yes - fi - ;; - all) - EMUL_TARGET_LIST="i386-softmmu,arm-softmmu" - if [ -z "$VIRTIOGL_EN" ] ; then - virtgl_enable yes - fi - if [ -z "$YAGL_EN" ] && [ -z "$OPENGLES_EN" ] ; then - yagl_enable yes - fi - ;; - esac -} - -while [ "$#" -gt "0" ] -do - case $1 in - x86|i386|i486|i586|i686|arm|all) - set_target $1 - ;; - -d|--debug) - CONFIGURE_APPEND="$CONFIGURE_APPEND --enable-debug" - ;; - -dgl|--debug-gles) - CONFIGURE_APPEND="$CONFIGURE_APPEND --enable-debug-gles" - ;; - -e|--extra) - shift - CONFIGURE_APPEND="$CONFIGURE_APPEND $1" - ;; - -vgl|--virtio-gl) - virtgl_enable 1 - ;; - -gles|--opengles) - opengles_enable 1 - ;; - -yagl|--yagl-device) - yagl_enable 1 - ;; - -ys|--yagl-stats) - yagl_stats_enable 1 - ;; - -u|-h|--help|--usage) - usage - exit 0 - ;; - *) - echo "Syntax Error" - usage - exit 1 - ;; - esac - shift -done - -if [ -z "$EMUL_TARGET_LIST" ] ; then - set_target all -fi - -case "$UNAME" in -Linux) - NUMCPU=`grep -c 'cpu cores' /proc/cpuinfo` - ;; -MINGW*) - NUMCPU=`echo $NUMBER_OF_PROCESSORS` - ;; -esac - -echo "Number of CPUs $NUMCPU" - -if [ "x$NUMCPU" != "x" ] ; then - NUMCPU=$(( NUMCPU + 1 )) -else - NUMCPU=1 -fi - -CONFIGURE_APPEND="--target-list=$EMUL_TARGET_LIST $CONFIGURE_APPEND" - -if test "$VIRTIOGL_EN" = "yes" ; then - CONFIGURE_APPEND="$CONFIGURE_APPEND --enable-gl" -else - CONFIGURE_APPEND="$CONFIGURE_APPEND --disable-gl" -fi - -if test "$OPENGLES_EN" = "yes" ; then - CONFIGURE_APPEND="$CONFIGURE_APPEND --enable-opengles" -else - CONFIGURE_APPEND="$CONFIGURE_APPEND --disable-opengles" -fi - -if test "$YAGL_EN" = "yes" ; then - CONFIGURE_APPEND="$CONFIGURE_APPEND --enable-yagl" -else - CONFIGURE_APPEND="$CONFIGURE_APPEND --disable-yagl" -fi - -if test "$YAGL_STATS_EN" = "yes" ; then - CONFIGURE_APPEND="$CONFIGURE_APPEND --enable-yagl-stats" -else - CONFIGURE_APPEND="$CONFIGURE_APPEND --disable-yagl-stats" -fi - -echo $CONFIGURE_SCRIPT $CONFIGURE_APPEND -$CONFIGURE_SCRIPT "$CONFIGURE_APPEND" && make -j$NUMCPU && make install +./emulator_configure.sh +make -j12 diff --git a/tizen/emulator_configure.sh b/tizen/emulator_configure.sh index 9654efd7b4..6c60fbb3ab 100755 --- a/tizen/emulator_configure.sh +++ b/tizen/emulator_configure.sh @@ -26,6 +26,7 @@ cd .. echo "" echo "##### QEMU configure for emulator" exec ./configure \ + --target-list=i386-softmmu \ --disable-werror \ --audio-drv-list=alsa \ --audio-card-list=ac97 \ @@ -46,6 +47,7 @@ cd .. echo "" echo "##### QEMU configure for emulator" exec ./configure \ + --target-list=i386-softmmu \ --audio-drv-list=winwave \ --audio-card-list=ac97 \ --enable-hax \ @@ -65,6 +67,7 @@ cd .. echo "" echo "##### QEMU configure for emulator" ./configure \ + --target-list=i386-softmmu \ --audio-drv-list=coreaudio \ --enable-mixemu \ --audio-card-list=ac97 \