blob: 1cf50085d1f18492fa6b316297ecf645de755f85 [file] [log] [blame]
David 'Digit' Turner46be4872009-06-04 16:07:01 +02001#!/bin/sh
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -08002#
3# this script is used to rebuild the Android emulator from sources
4# in the current directory. It also contains logic to speed up the
5# rebuild if it detects that you're using the Android build system
6#
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -08007# here's the list of environment variables you can define before
8# calling this script to control it (besides options):
9#
10#
11
12# first, let's see which system we're running this on
13cd `dirname $0`
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -080014
David 'Digit' Turner46be4872009-06-04 16:07:01 +020015# source common functions definitions
16. android/build/common.sh
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -080017
18# Parse options
19OPTION_TARGETS=""
20OPTION_DEBUG=no
21OPTION_IGNORE_AUDIO=no
22OPTION_NO_PREBUILTS=no
23OPTION_TRY_64=no
24OPTION_HELP=no
David 'Digit' Turnerd68b4872009-07-24 16:33:05 +020025OPTION_DEBUG=no
David 'Digit' Turnerab873b72010-03-08 18:33:50 -080026OPTION_STATIC=no
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -080027
28if [ -z "$CC" ] ; then
29 CC=gcc
30fi
31
32for opt do
33 optarg=`expr "x$opt" : 'x[^=]*=\(.*\)'`
34 case "$opt" in
35 --help|-h|-\?) OPTION_HELP=yes
36 ;;
37 --verbose)
38 if [ "$VERBOSE" = "yes" ] ; then
39 VERBOSE2=yes
40 else
41 VERBOSE=yes
42 fi
43 ;;
David 'Digit' Turnerd68b4872009-07-24 16:33:05 +020044 --debug) OPTION_DEBUG=yes
45 ;;
David 'Digit' Turner46be4872009-06-04 16:07:01 +020046 --install=*) OPTION_TARGETS="$OPTION_TARGETS $optarg";
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -080047 ;;
48 --sdl-config=*) SDL_CONFIG=$optarg
49 ;;
50 --cc=*) CC="$optarg" ; HOSTCC=$CC
51 ;;
52 --no-strip) OPTION_NO_STRIP=yes
53 ;;
54 --debug) OPTION_DEBUG=yes
55 ;;
56 --ignore-audio) OPTION_IGNORE_AUDIO=yes
57 ;;
58 --no-prebuilts) OPTION_NO_PREBUILTS=yes
59 ;;
60 --try-64) OPTION_TRY_64=yes
61 ;;
David 'Digit' Turnerab873b72010-03-08 18:33:50 -080062 --static) OPTION_STATIC=yes
63 ;;
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -080064 *)
65 echo "unknown option '$opt', use --help"
66 exit 1
67 esac
68done
69
70# Print the help message
71#
72if [ "$OPTION_HELP" = "yes" ] ; then
73 cat << EOF
74
75Usage: rebuild.sh [options]
76Options: [defaults in brackets after descriptions]
77EOF
78 echo "Standard options:"
79 echo " --help print this message"
80 echo " --install=FILEPATH copy emulator executable to FILEPATH [$TARGETS]"
81 echo " --cc=PATH specify C compiler [$CC]"
82 echo " --sdl-config=FILE use specific sdl-config script [$SDL_CONFIG]"
83 echo " --no-strip do not strip emulator executable"
84 echo " --debug enable debug (-O0 -g) build"
85 echo " --ignore-audio ignore audio messages (may build sound-less emulator)"
86 echo " --no-prebuilts do not use prebuilt libraries and compiler"
87 echo " --try-64 try to build a 64-bit executable (may crash)"
David 'Digit' Turnerab873b72010-03-08 18:33:50 -080088 echo " --static build a completely static executable"
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -080089 echo " --verbose verbose configuration"
David 'Digit' Turnerd68b4872009-07-24 16:33:05 +020090 echo " --debug build debug version of the emulator"
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -080091 echo ""
92 exit 1
93fi
94
David 'Digit' Turner46be4872009-06-04 16:07:01 +020095# we only support generating 32-bit binaris on 64-bit systems.
96# And we may need to add a -Wa,--32 to CFLAGS to let the assembler
97# generate 32-bit binaries on Linux x86_64.
98#
99if [ "$OPTION_TRY_64" != "yes" ] ; then
100 force_32bit_binaries
101fi
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800102
David 'Digit' Turner46be4872009-06-04 16:07:01 +0200103# Are we running in the Android build system ?
104check_android_build
105
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800106
107# Adjust a few things when we're building within the Android build
108# system:
109# - locate prebuilt directory
110# - locate and use prebuilt libraries
111# - copy the new binary to the correct location
112#
113if [ "$OPTION_NO_PREBUILTS" = "yes" ] ; then
114 IN_ANDROID_BUILD=no
115fi
116
117if [ "$IN_ANDROID_BUILD" = "yes" ] ; then
David 'Digit' Turner46be4872009-06-04 16:07:01 +0200118 locate_android_prebuilt
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800119
120 # use ccache if USE_CCACHE is defined and the corresponding
121 # binary is available.
122 #
123 # note: located in PREBUILT/ccache/ccache in the new tree layout
124 # located in PREBUILT/ccache in the old one
125 #
126 if [ -n "$USE_CCACHE" ] ; then
David 'Digit' Turner46be4872009-06-04 16:07:01 +0200127 CCACHE="$ANDROID_PREBUILT/ccache/ccache$EXE"
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800128 if [ ! -f $CCACHE ] ; then
David 'Digit' Turner46be4872009-06-04 16:07:01 +0200129 CCACHE="$ANDROID_PREBUILT/ccache$EXE"
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800130 fi
131 if [ -f $CCACHE ] ; then
132 CC="$CCACHE $CC"
133 fi
134 log "Prebuilt : CCACHE=$CCACHE"
135 fi
136
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800137 # finally ensure that our new binary is copied to the 'out'
138 # subdirectory as 'emulator'
David 'Digit' Turner46be4872009-06-04 16:07:01 +0200139 HOST_BIN=$(get_android_abs_build_var HOST_OUT_EXECUTABLES)
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800140 if [ -n "$HOST_BIN" ] ; then
David 'Digit' Turner46be4872009-06-04 16:07:01 +0200141 OPTION_TARGETS="$OPTION_TARGETS $HOST_BIN/emulator$EXE"
142 log "Targets : TARGETS=$OPTION_TARGETS"
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800143 fi
David 'Digit' Turnera383d022009-12-03 13:50:00 -0800144
145 # find the Android SDK Tools revision number
146 TOOLS_PROPS=$ANDROID_TOP/sdk/files/tools_source.properties
147 if [ -f $TOOLS_PROPS ] ; then
148 ANDROID_SDK_TOOLS_REVISION=`awk -F= '/Pkg.Revision/ { print $2; }' $TOOLS_PROPS 2> /dev/null`
149 log "Tools : Found tools revision number $ANDROID_SDK_TOOLS_REVISION"
150 else
151 log "Tools : Could not locate $TOOLS_PROPS !?"
152 fi
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800153fi # IN_ANDROID_BUILD = no
154
155
David 'Digit' Turner46be4872009-06-04 16:07:01 +0200156# we can build the emulator with Cygwin, so enable it
157enable_cygwin
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800158
David 'Digit' Turner46be4872009-06-04 16:07:01 +0200159setup_toolchain
The Android Open Source Project92c73112009-03-05 14:34:31 -0800160
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800161###
162### SDL Probe
163###
164
David 'Digit' Turner34d16512010-05-18 17:02:33 -0700165if [ -n "$SDL_CONFIG" ] ; then
David 'Digit' Turner46be4872009-06-04 16:07:01 +0200166
David 'Digit' Turner34d16512010-05-18 17:02:33 -0700167 # check that we can link statically with the library.
168 #
169 SDL_CFLAGS=`$SDL_CONFIG --cflags`
170 SDL_LIBS=`$SDL_CONFIG --static-libs`
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800171
David 'Digit' Turner34d16512010-05-18 17:02:33 -0700172 # quick hack, remove the -D_GNU_SOURCE=1 of some SDL Cflags
173 # since they break recent Mingw releases
174 SDL_CFLAGS=`echo $SDL_CFLAGS | sed -e s/-D_GNU_SOURCE=1//g`
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800175
David 'Digit' Turner34d16512010-05-18 17:02:33 -0700176 log "SDL-probe : SDL_CFLAGS = $SDL_CFLAGS"
177 log "SDL-probe : SDL_LIBS = $SDL_LIBS"
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800178
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800179
David 'Digit' Turner34d16512010-05-18 17:02:33 -0700180 EXTRA_CFLAGS="$SDL_CFLAGS"
181 EXTRA_LDFLAGS="$SDL_LIBS"
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800182
David 'Digit' Turner34d16512010-05-18 17:02:33 -0700183 case "$OS" in
184 freebsd-*)
185 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -lpthread"
186 ;;
187 esac
Alexey Tarasov08823222009-09-01 02:07:51 +1100188
David 'Digit' Turner34d16512010-05-18 17:02:33 -0700189 cat > $TMPC << EOF
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800190#include <SDL.h>
191#undef main
David 'Digit' Turner46be4872009-06-04 16:07:01 +0200192int main( int argc, char** argv ) {
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800193 return SDL_Init (SDL_INIT_VIDEO);
194}
195EOF
David 'Digit' Turner34d16512010-05-18 17:02:33 -0700196 feature_check_link SDL_LINKING
David 'Digit' Turner46be4872009-06-04 16:07:01 +0200197
David 'Digit' Turner34d16512010-05-18 17:02:33 -0700198 if [ $SDL_LINKING != "yes" ] ; then
199 echo "You provided an explicit sdl-config script, but the corresponding library"
200 echo "cannot be statically linked with the Android emulator directly."
201 echo "Error message:"
202 cat $TMPL
203 clean_exit
204 fi
205 log "SDL-probe : static linking ok"
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800206
David 'Digit' Turner34d16512010-05-18 17:02:33 -0700207 # now, let's check that the SDL library has the special functions
208 # we added to our own sources
209 #
210 cat > $TMPC << EOF
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800211#include <SDL.h>
212#undef main
David 'Digit' Turner46be4872009-06-04 16:07:01 +0200213int main( int argc, char** argv ) {
David 'Digit' Turner34d16512010-05-18 17:02:33 -0700214 int x, y;
215 SDL_Rect r;
216 SDL_WM_GetPos(&x, &y);
217 SDL_WM_SetPos(x, y);
218 SDL_WM_GetMonitorDPI(&x, &y);
219 SDL_WM_GetMonitorRect(&r);
220 return SDL_Init (SDL_INIT_VIDEO);
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800221}
222EOF
David 'Digit' Turner34d16512010-05-18 17:02:33 -0700223 feature_check_link SDL_LINKING
David 'Digit' Turner46be4872009-06-04 16:07:01 +0200224
David 'Digit' Turner34d16512010-05-18 17:02:33 -0700225 if [ $SDL_LINKING != "yes" ] ; then
226 echo "You provided an explicit sdl-config script in SDL_CONFIG, but the"
227 echo "corresponding library doesn't have the patches required to link"
228 echo "with the Android emulator. Unsetting SDL_CONFIG will use the"
229 echo "sources bundled with the emulator instead"
230 echo "Error:"
231 cat $TMPL
232 clean_exit
233 fi
234
235 log "SDL-probe : extra features ok"
236 clean_temp
237
238 EXTRA_CFLAGS=
239 EXTRA_LDFLAGS=
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800240fi
241
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800242###
243### Audio subsystems probes
244###
245PROBE_COREAUDIO=no
246PROBE_ALSA=no
247PROBE_OSS=no
248PROBE_ESD=no
249PROBE_WINAUDIO=no
250
251case "$OS" in
252 darwin*) PROBE_COREAUDIO=yes;
253 ;;
254 linux-*) PROBE_ALSA=yes; PROBE_OSS=yes; PROBE_ESD=yes;
255 ;;
Alexey Tarasov08823222009-09-01 02:07:51 +1100256 freebsd-*) PROBE_OSS=yes;
257 ;;
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800258 windows) PROBE_WINAUDIO=yes
259 ;;
260esac
261
262ORG_CFLAGS=$CFLAGS
263ORG_LDFLAGS=$LDFLAGS
264
265if [ "$PROBE_ESD" = yes ] ; then
266 CFLAGS="$ORG_CFLAGS"
267 LDFLAGS="$ORG_LDFLAGS -ldl"
268 cp -f android/config/check-esd.c $TMPC
269 compile && link && $TMPE
270 if [ $? = 0 ] ; then
271 log "AudioProbe : ESD seems to be usable on this system"
272 else
273 if [ "$OPTION_IGNORE_AUDIO" = no ] ; then
274 echo "the EsounD development files do not seem to be installed on this system"
275 echo "Are you missing the libesd-dev package ?"
276 echo "Correct the errors below and try again:"
277 cat $TMPL
David 'Digit' Turner46be4872009-06-04 16:07:01 +0200278 clean_exit
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800279 fi
280 PROBE_ESD=no
281 log "AudioProbe : ESD seems to be UNUSABLE on this system !!"
282 fi
283fi
284
285if [ "$PROBE_ALSA" = yes ] ; then
286 CFLAGS="$ORG_CFLAGS"
287 LDFLAGS="$ORG_CFLAGS -ldl"
288 cp -f android/config/check-alsa.c $TMPC
289 compile && link && $TMPE
290 if [ $? = 0 ] ; then
291 log "AudioProbe : ALSA seems to be usable on this system"
292 else
293 if [ "$OPTION_IGNORE_AUDIO" = no ] ; then
294 echo "the ALSA development files do not seem to be installed on this system"
295 echo "Are you missing the libasound-dev package ?"
296 echo "Correct the erros below and try again"
297 cat $TMPL
David 'Digit' Turner46be4872009-06-04 16:07:01 +0200298 clean_exit
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800299 fi
300 PROBE_ALSA=no
301 log "AudioProbe : ALSA seems to be UNUSABLE on this system !!"
302 fi
303fi
304
305CFLAGS=$ORG_CFLAGS
306LDFLAGS=$ORG_LDFLAGS
307
308# create the objs directory that is going to contain all generated files
309# including the configuration ones
310#
311mkdir -p objs
312
313###
314### Compiler probe
315###
316
317####
318#### Host system probe
319####
320
321# because the previous version could be read-only
322rm -f $TMPC
323
324# check host endianess
325#
326HOST_BIGENDIAN=no
327cat > $TMPC << EOF
328#include <inttypes.h>
329int main(int argc, char ** argv){
330 volatile uint32_t i=0x01234567;
331 return (*((uint8_t*)(&i))) == 0x67;
332}
333EOF
David 'Digit' Turner46be4872009-06-04 16:07:01 +0200334feature_run_exec HOST_BIGENDIAN
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800335
336# check size of host long bits
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800337cat > $TMPC << EOF
338int main(void) {
339 return sizeof(void*)*8;
340}
341EOF
David 'Digit' Turner46be4872009-06-04 16:07:01 +0200342feature_run_exec HOST_LONGBITS
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800343
344# check whether we have <byteswap.h>
345#
David 'Digit' Turner46be4872009-06-04 16:07:01 +0200346feature_check_header HAVE_BYTESWAP_H "<byteswap.h>"
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800347
348# Build the config.make file
349#
David 'Digit' Turner46be4872009-06-04 16:07:01 +0200350
351create_config_mk
David 'Digit' Turner34d16512010-05-18 17:02:33 -0700352add_android_config_mk
David 'Digit' Turner46be4872009-06-04 16:07:01 +0200353
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800354PWD=`pwd`
David 'Digit' Turner46be4872009-06-04 16:07:01 +0200355echo "TARGET_ARCH := arm" >> $config_mk
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800356echo "SRC_PATH := $PWD" >> $config_mk
David 'Digit' Turner34d16512010-05-18 17:02:33 -0700357if [ -n "$SDL_CONFIG" ] ; then
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800358echo "SDL_CONFIG := $SDL_CONFIG" >> $config_mk
David 'Digit' Turner34d16512010-05-18 17:02:33 -0700359fi
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800360echo "CONFIG_COREAUDIO := $PROBE_COREAUDIO" >> $config_mk
361echo "CONFIG_WINAUDIO := $PROBE_WINAUDIO" >> $config_mk
362echo "CONFIG_ESD := $PROBE_ESD" >> $config_mk
363echo "CONFIG_ALSA := $PROBE_ALSA" >> $config_mk
364echo "CONFIG_OSS := $PROBE_OSS" >> $config_mk
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800365echo "BUILD_STANDALONE_EMULATOR := true" >> $config_mk
David 'Digit' Turnerd68b4872009-07-24 16:33:05 +0200366if [ $OPTION_DEBUG = yes ] ; then
367 echo "BUILD_DEBUG_EMULATOR := true" >> $config_mk
368fi
David 'Digit' Turnerab873b72010-03-08 18:33:50 -0800369if [ $OPTION_STATIC = yes ] ; then
370 echo "CONFIG_STATIC_EXECUTABLE := true" >> $config_mk
371fi
372
David 'Digit' Turnera383d022009-12-03 13:50:00 -0800373if [ -n "$ANDROID_SDK_TOOLS_REVISION" ] ; then
374 echo "ANDROID_SDK_TOOLS_REVISION := $ANDROID_SDK_TOOLS_REVISION" >> $config_mk
375fi
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800376
377# Build the config-host.h file
378#
379config_h=objs/config-host.h
380echo "/* This file was autogenerated by '$PROGNAME' */" > $config_h
381echo "#define CONFIG_QEMU_SHAREDIR \"/usr/local/share/qemu\"" >> $config_h
382echo "#define HOST_LONG_BITS $HOST_LONGBITS" >> $config_h
383if [ "$HAVE_BYTESWAP_H" = "yes" ] ; then
384 echo "#define HAVE_BYTESWAP_H 1" >> $config_h
385fi
386echo "#define CONFIG_GDBSTUB 1" >> $config_h
387echo "#define CONFIG_SLIRP 1" >> $config_h
388echo "#define CONFIG_SKINS 1" >> $config_h
David 'Digit' Turner46be4872009-06-04 16:07:01 +0200389echo "#define CONFIG_TRACE 1" >> $config_h
David 'Digit' Turnerfd3b1a02010-05-10 23:47:54 -0700390
391# only Linux has fdatasync()
392case "$OS" in
393 linux-*)
394 echo "#define CONFIG_FDATASYNC 1" >> $config_h
395 ;;
396esac
397
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800398# the -nand-limits options can only work on non-windows systems
399if [ "$OS" != "windows" ] ; then
400 echo "#define CONFIG_NAND_LIMITS 1" >> $config_h
401fi
David 'Digit' Turner5d8f37a2009-09-14 14:32:27 -0700402echo "#define QEMU_VERSION \"0.10.50\"" >> $config_h
403echo "#define QEMU_PKGVERSION \"Android\"" >> $config_h
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800404case "$CPU" in
David 'Digit' Turner46be4872009-06-04 16:07:01 +0200405 x86) CONFIG_CPU=I386
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800406 ;;
David 'Digit' Turner46be4872009-06-04 16:07:01 +0200407 ppc) CONFIG_CPU=PPC
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800408 ;;
David 'Digit' Turner46be4872009-06-04 16:07:01 +0200409 x86_64) CONFIG_CPU=X86_64
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800410 ;;
David 'Digit' Turner46be4872009-06-04 16:07:01 +0200411 *) CONFIG_CPU=$CPU
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800412 ;;
413esac
David 'Digit' Turner46be4872009-06-04 16:07:01 +0200414echo "#define HOST_$CONFIG_CPU 1" >> $config_h
415BSD=0
416case "$OS" in
417 linux-*) CONFIG_OS=LINUX
418 ;;
419 darwin-*) CONFIG_OS=DARWIN
420 BSD=1
421 ;;
Alexey Tarasov08823222009-09-01 02:07:51 +1100422 freebsd-*) CONFIG_OS=FREEBSD
423 BSD=1
424 ;;
David 'Digit' Turner46be4872009-06-04 16:07:01 +0200425 windows*) CONFIG_OS=WIN32
426 ;;
427 *) CONFIG_OS=$OS
428esac
David 'Digit' Turner5d8f37a2009-09-14 14:32:27 -0700429
David 'Digit' Turnerab873b72010-03-08 18:33:50 -0800430if [ "$OPTION_STATIC" = "yes" ] ; then
431 echo "CONFIG_STATIC_EXECUTABLE := true" >> $config_mk
432 echo "#define CONFIG_STATIC_EXECUTABLE 1" >> $config_h
433fi
434
David 'Digit' Turner5d8f37a2009-09-14 14:32:27 -0700435case $OS in
436 linux-*|darwin-*)
David 'Digit' Turner3d66dc72010-01-27 18:18:41 -0800437 echo "#define CONFIG_IOVEC 1" >> $config_h
David 'Digit' Turner5d8f37a2009-09-14 14:32:27 -0700438 ;;
439esac
440
David 'Digit' Turner46be4872009-06-04 16:07:01 +0200441echo "#define CONFIG_$CONFIG_OS 1" >> $config_h
442if [ $BSD = 1 ] ; then
David 'Digit' Turner2c538c82010-05-10 16:48:20 -0700443 echo "#define CONFIG_BSD 1" >> $config_h
David 'Digit' Turner46be4872009-06-04 16:07:01 +0200444 echo "#define O_LARGEFILE 0" >> $config_h
445 echo "#define MAP_ANONYMOUS MAP_ANON" >> $config_h
446fi
David 'Digit' Turner5d8f37a2009-09-14 14:32:27 -0700447
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800448log "Generate : $config_h"
449
450echo "Ready to go. Type 'make' to build emulator"