From: Igor Mitsyanko Date: Wed, 27 Jun 2012 14:33:00 +0000 (+0400) Subject: tizen/build.sh: build both x86 and ARM emulator simultaneously X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~1405^2~87 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e8b45020be2f89f035a5e346d873357a3d555cc9;p=sdk%2Femulator%2Fqemu.git tizen/build.sh: build both x86 and ARM emulator simultaneously This reduces overall build time and makes "make clean" work correctly. Separate targets could be build by invoking build.sh script with a specific argument, for example: $ build.sh arm Also, rename "efence" build configuration to "debug" configuration. Signed-off-by: Igor Mitsyanko Conflicts: tizen/qemu_configure_arm.sh --- diff --git a/tizen/build.sh b/tizen/build.sh index e44d22630f..feb78815a5 100755 --- a/tizen/build.sh +++ b/tizen/build.sh @@ -1,6 +1,8 @@ #!/bin/sh UNAME=`uname` +# Build both x86 and ARM emulators by default +CONFIGURE_SCRIPT="./qemu_configure.sh" case "$UNAME" in Linux) @@ -19,4 +21,22 @@ else NUMCPU=1 fi -./qemu_configure.sh && make -j$NUMCPU && ./qemu_configure_arm.sh && make -j$NUMCPU && make install +if [ ! -z "$1" ] ; then + case "$1" in + x86|i386|i486|i586|i686) + CONFIGURE_SCRIPT="./qemu_configure_x86.sh" + ;; + arm) + CONFIGURE_SCRIPT="./qemu_configure_arm.sh" + ;; + all) + CONFIGURE_SCRIPT="./qemu_configure.sh" + ;; + *) + echo "ERROR: unknown target architecture" + exit 1 + ;; + esac +fi + +$CONFIGURE_SCRIPT && make -j$NUMCPU && make install diff --git a/tizen/build_debug.sh b/tizen/build_debug.sh new file mode 100755 index 0000000000..c41b326525 --- /dev/null +++ b/tizen/build_debug.sh @@ -0,0 +1,42 @@ +#!/bin/sh + +UNAME=`uname` +# Build both x86 and ARM emulators by default +CONFIGURE_SCRIPT="./qemu_configure_debug.sh" + +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 + +if [ ! -z "$1" ] ; then + case "$1" in + x86|i386|i486|i586|i686) + CONFIGURE_SCRIPT="./qemu_configure_x86_debug.sh" + ;; + arm) + CONFIGURE_SCRIPT="./qemu_configure_arm_debug.sh" + ;; + all) + CONFIGURE_SCRIPT="./qemu_configure_debug.sh" + ;; + *) + echo "ERROR: unknown target architecture" + exit 1 + ;; + esac +fi + +$CONFIGURE_SCRIPT && make -j$NUMCPU && make install diff --git a/tizen/build_efence.sh b/tizen/build_efence.sh deleted file mode 100755 index 90a5e4017d..0000000000 --- a/tizen/build_efence.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh - -UNAME=`uname` - -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 - -./qemu_configure_efence.sh && make -j$NUMCPU && ./qemu_configure_arm_efence.sh && make -j$NUMCPU && make install diff --git a/tizen/qemu_configure.sh b/tizen/qemu_configure.sh index 3bf2d038b5..bd95c32c83 100755 --- a/tizen/qemu_configure.sh +++ b/tizen/qemu_configure.sh @@ -1,6 +1,5 @@ #!/bin/sh # OS specific -#--target-list=i386-softmmu,arm-softmmu \ targetos=`uname -s` cd .. @@ -8,7 +7,7 @@ case $targetos in Linux*) echo "checking for os... targetos $targetos" exec ./configure \ - --target-list=i386-softmmu \ + --target-list="i386-softmmu arm-softmmu" \ --disable-werror \ --audio-drv-list=alsa \ --enable-mixemu \ @@ -16,17 +15,13 @@ exec ./configure \ --audio-card-list=ac97 \ --enable-ldst-optimization \ --enable-maru \ + --enable-opengles \ --enable-gl -# --enable-ffmpeg -# --enable-v4l2 \ -# --enable-debug \ -# --enable-profiler \ -# --enable-gles2 --gles2dir=/usr ;; MINGW*) echo "checking for os... targetos $targetos" exec ./configure \ - --target-list=i386-softmmu \ + --target-list="i386-softmmu arm-softmmu" \ --audio-drv-list=winwave \ --enable-mixemu \ --disable-vnc-tls \ @@ -34,9 +29,7 @@ exec ./configure \ --enable-ldst-optimization \ --enable-hax \ --enable-maru \ - --enable-gl $1 -# --enable-ffmpeg -# --disable-vnc-jpeg \ -# --disable-jpeg + --enable-opengles \ + --enable-gl ;; esac diff --git a/tizen/qemu_configure_arm.sh b/tizen/qemu_configure_arm.sh index 742c5a68ee..c8e5779395 100755 --- a/tizen/qemu_configure_arm.sh +++ b/tizen/qemu_configure_arm.sh @@ -1,6 +1,5 @@ #!/bin/sh # OS specific -#--target-list=i386-softmmu,arm-softmmu \ targetos=`uname -s` cd .. @@ -11,33 +10,18 @@ exec ./configure \ --target-list=arm-softmmu \ --disable-werror \ --audio-drv-list=alsa \ - --disable-vnc-tls \ - --audio-card-list=ac97 \ --enable-opengles \ - --enable-ldst-optimization \ - --enable-maru \ - --disable-pie -# --enable-mixemu \ -# --enable-gl -# --enable-ffmpeg -# --enable-v4l2 \ -# --enable-debug \ -# --enable-profiler + --disable-gl \ + --enable-maru ;; MINGW*) echo "checking for os... targetos $targetos" exec ./configure \ --target-list=arm-softmmu \ + --disable-werror \ --audio-drv-list=winwave \ - --enable-mixemu \ - --disable-vnc-tls \ - --audio-card-list=ac97 \ - --enable-hax \ - --enable-ldst-optimization \ + --enable-opengles \ + --disable-gl \ --enable-maru -# --enable-gl -# --enable-ffmpeg -# --disable-vnc-jpeg \ -# --disable-jpeg ;; esac diff --git a/tizen/qemu_configure_arm_debug.sh b/tizen/qemu_configure_arm_debug.sh new file mode 100755 index 0000000000..7968c15ce6 --- /dev/null +++ b/tizen/qemu_configure_arm_debug.sh @@ -0,0 +1,33 @@ +#!/bin/sh +# OS specific +targetos=`uname -s` + +cd .. +case $targetos in +Linux*) +echo "checking for os... targetos $targetos" +exec ./configure \ + --target-list=arm-softmmu \ + --disable-werror \ + --audio-drv-list=alsa \ + --enable-opengles \ + --disable-gl \ + --enable-maru \ + --enable-efence \ + --enable-debug \ + --disable-pie +;; +MINGW*) +echo "checking for os... targetos $targetos" +exec ./configure \ + --target-list=arm-softmmu \ + --disable-werror \ + --audio-drv-list=winwave \ + --enable-opengles \ + --disable-gl \ + --enable-maru \ + --enable-efence \ + --enable-debug \ + --disable-pie +;; +esac diff --git a/tizen/qemu_configure_arm_efence.sh b/tizen/qemu_configure_arm_efence.sh deleted file mode 100755 index 68dc15c9fc..0000000000 --- a/tizen/qemu_configure_arm_efence.sh +++ /dev/null @@ -1,44 +0,0 @@ -#!/bin/sh -# OS specific -#--target-list=i386-softmmu,arm-softmmu \ -targetos=`uname -s` - -cd .. -case $targetos in -Linux*) -echo "checking for os... targetos $targetos" -exec ./configure \ - --target-list=arm-softmmu \ - --disable-werror \ - --audio-drv-list=alsa \ - --disable-vnc-tls \ - --audio-card-list=ac97 \ - --enable-opengles \ - --enable-maru \ - --disable-pie \ - --enable-efence -# --enable-mixemu \ -# --enable-ldst-optimization \ -# --enable-gl -# --enable-ffmpeg -# --enable-v4l2 \ -# --enable-debug \ -# --enable-profiler -;; -MINGW*) -echo "checking for os... targetos $targetos" -exec ./configure \ - --target-list=arm-softmmu \ - --audio-drv-list=winwave \ - --enable-mixemu \ - --disable-vnc-tls \ - --audio-card-list=ac97 \ - --enable-hax \ - --enable-maru -# --enable-ldst-optimization \ -# --enable-gl -# --enable-ffmpeg -# --disable-vnc-jpeg \ -# --disable-jpeg -;; -esac diff --git a/tizen/qemu_configure_debug.sh b/tizen/qemu_configure_debug.sh new file mode 100755 index 0000000000..e4e7e81834 --- /dev/null +++ b/tizen/qemu_configure_debug.sh @@ -0,0 +1,41 @@ +#!/bin/sh +# OS specific +targetos=`uname -s` + +cd .. +case $targetos in +Linux*) +echo "checking for os... targetos $targetos" +exec ./configure \ + --target-list="i386-softmmu arm-softmmu" \ + --disable-werror \ + --audio-drv-list=alsa \ + --enable-mixemu \ + --disable-vnc-tls \ + --audio-card-list=ac97 \ + --enable-ldst-optimization \ + --enable-maru \ + --enable-opengles \ + --enable-gl \ + --enable-efence \ + --enable-debug \ + --disable-pie +;; +MINGW*) +echo "checking for os... targetos $targetos" +exec ./configure \ + --target-list="i386-softmmu arm-softmmu" \ + --audio-drv-list=winwave \ + --enable-mixemu \ + --disable-vnc-tls \ + --audio-card-list=ac97 \ + --enable-ldst-optimization \ + --enable-hax \ + --enable-maru \ + --enable-opengles \ + --enable-gl \ + --enable-efence \ + --enable-debug \ + --disable-pie +;; +esac diff --git a/tizen/qemu_configure_efence.sh b/tizen/qemu_configure_efence.sh deleted file mode 100755 index bc1aab0365..0000000000 --- a/tizen/qemu_configure_efence.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/sh -# OS specific -#--target-list=i386-softmmu,arm-softmmu \ -targetos=`uname -s` - -cd .. -case $targetos in -Linux*) -echo "checking for os... targetos $targetos" -exec ./configure \ - --target-list=i386-softmmu \ - --disable-werror \ - --audio-drv-list=alsa \ - --enable-mixemu \ - --disable-vnc-tls \ - --audio-card-list=ac97 \ - --enable-ldst-optimization \ - --enable-maru \ - --enable-gl \ - --enable-efence -# --enable-ffmpeg -# --enable-v4l2 \ -# --enable-debug \ -# --enable-profiler \ -# --enable-gles2 --gles2dir=/usr -;; -MINGW*) -echo "checking for os... targetos $targetos" -exec ./configure \ - --target-list=i386-softmmu \ - --audio-drv-list=winwave \ - --enable-mixemu \ - --disable-vnc-tls \ - --audio-card-list=ac97 \ - --enable-ldst-optimization \ - --enable-hax \ - --enable-maru \ - --enable-gl $1 -# --enable-ffmpeg -# --disable-vnc-jpeg \ -# --disable-jpeg -;; -esac diff --git a/tizen/qemu_configure_x86.sh b/tizen/qemu_configure_x86.sh new file mode 100755 index 0000000000..47d4b4ed43 --- /dev/null +++ b/tizen/qemu_configure_x86.sh @@ -0,0 +1,33 @@ +#!/bin/sh +# OS specific +targetos=`uname -s` + +cd .. +case $targetos in +Linux*) +echo "checking for os... targetos $targetos" +exec ./configure \ + --target-list=i386-softmmu \ + --disable-werror \ + --audio-drv-list=alsa \ + --enable-mixemu \ + --disable-vnc-tls \ + --audio-card-list=ac97 \ + --enable-ldst-optimization \ + --enable-maru \ + --enable-gl +;; +MINGW*) +echo "checking for os... targetos $targetos" +exec ./configure \ + --target-list=i386-softmmu \ + --audio-drv-list=winwave \ + --enable-mixemu \ + --disable-vnc-tls \ + --audio-card-list=ac97 \ + --enable-ldst-optimization \ + --enable-hax \ + --enable-maru \ + --enable-gl +;; +esac diff --git a/tizen/qemu_configure_x86_debug.sh b/tizen/qemu_configure_x86_debug.sh new file mode 100755 index 0000000000..d0f83471b6 --- /dev/null +++ b/tizen/qemu_configure_x86_debug.sh @@ -0,0 +1,39 @@ +#!/bin/sh +# OS specific +targetos=`uname -s` + +cd .. +case $targetos in +Linux*) +echo "checking for os... targetos $targetos" +exec ./configure \ + --target-list=i386-softmmu \ + --disable-werror \ + --audio-drv-list=alsa \ + --enable-mixemu \ + --disable-vnc-tls \ + --audio-card-list=ac97 \ + --enable-ldst-optimization \ + --enable-maru \ + --enable-gl \ + --enable-efence \ + --enable-debug \ + --disable-pie +;; +MINGW*) +echo "checking for os... targetos $targetos" +exec ./configure \ + --target-list=i386-softmmu \ + --audio-drv-list=winwave \ + --enable-mixemu \ + --disable-vnc-tls \ + --audio-card-list=ac97 \ + --enable-ldst-optimization \ + --enable-hax \ + --enable-maru \ + --enable-gl \ + --enable-efence \ + --enable-debug \ + --disable-pie +;; +esac