11 echo "usage: build.sh [options] [target]"
14 echo " emulator target, one of: [x86|i386|i486|i586|i686|arm|all]. Defaults to \"all\""
18 echo " build debug configuration"
19 echo "-vgl|--virtio-gl"
20 echo " enable virtio GL support"
21 echo "-yagl|--yagl-device"
22 echo " enable YaGL passthrough device"
23 echo "-ys|--yagl-stats"
24 echo " enable YaGL stats"
25 echo "-vigs|--vigs-device"
26 echo " enable VIGS device"
28 echo " extra options for QEMU configure"
29 echo "-u|-h|--help|--usage"
30 echo " display this help message and exit"
94 if [ ! -z "$EMUL_TARGET_LIST" ] ; then
100 x86|i386|i486|i586|i686)
101 EMUL_TARGET_LIST="i386-softmmu"
102 if [ -z "$VIRTIOGL_EN" ] ; then
105 if [ -z "$YAGL_EN" ] ; then
108 if [ -z "$VIGS_EN" ] ; then
113 EMUL_TARGET_LIST="arm-softmmu"
114 if [ -z "$YAGL_EN" ] && [ "$targetos" != "Darwin" ] ; then
117 if [ -z "$VIGS_EN" ] && [ "$targetos" != "Darwin" ] ; then
122 # EMUL_TARGET_LIST="i386-softmmu,arm-softmmu"
123 EMUL_TARGET_LIST="i386-softmmu"
124 if [ -z "$VIRTIOGL_EN" ] ; then
127 if [ -z "$YAGL_EN" ] ; then
130 if [ -z "$VIGS_EN" ] ; then
140 echo "##### checking for os... targetos $targetos"
144 while [ "$#" -gt "0" ]
147 x86|i386|i486|i586|i686|arm|all)
151 CONFIGURE_APPEND="$CONFIGURE_APPEND --enable-debug"
155 CONFIGURE_APPEND="$CONFIGURE_APPEND $1"
169 -u|-h|--help|--usage)
182 if [ -z "$EMUL_TARGET_LIST" ] ; then
186 CONFIGURE_APPEND="--target-list=$EMUL_TARGET_LIST $CONFIGURE_APPEND"
188 if test "$VIRTIOGL_EN" = "yes" ; then
189 CONFIGURE_APPEND="$CONFIGURE_APPEND --enable-gl"
191 CONFIGURE_APPEND="$CONFIGURE_APPEND --disable-gl"
194 if test "$YAGL_EN" = "yes" ; then
195 CONFIGURE_APPEND="$CONFIGURE_APPEND --enable-yagl"
197 CONFIGURE_APPEND="$CONFIGURE_APPEND --disable-yagl"
200 if test "$YAGL_STATS_EN" = "yes" ; then
201 CONFIGURE_APPEND="$CONFIGURE_APPEND --enable-yagl-stats"
203 CONFIGURE_APPEND="$CONFIGURE_APPEND --disable-yagl-stats"
206 if test "$VIGS_EN" = "yes" ; then
207 CONFIGURE_APPEND="$CONFIGURE_APPEND --enable-vigs"
209 CONFIGURE_APPEND="$CONFIGURE_APPEND --disable-vigs"
216 echo "##### QEMU configuring for emulator"
217 echo "##### QEMU configure append:" $CONFIGURE_APPEND
218 export PKG_CONFIG_PATH=${HOME}/tizen-sdk-dev/distrib/lib/pkgconfig:${PKG_CONFIG_PATH}
221 --audio-drv-list=alsa \
232 echo "##### QEMU configuring for emulator"
233 echo "##### QEMU configure append:" $CONFIGURE_APPEND
234 # We add CFLAGS '-fno-omit-frame-pointer'.
235 # A GCC might have a bug related with omitting frame pointer. It generates weird instructions.
237 --extra-cflags=-fno-omit-frame-pointer \
238 --extra-ldflags=-Wl,--large-address-aware \
240 --audio-drv-list=winwave \
249 echo "##### QEMU configuring for emulator"
250 echo "##### QEMU configure append:" $CONFIGURE_APPEND
252 --extra-cflags=-mmacosx-version-min=10.4 \
253 --audio-drv-list=coreaudio \