Created
July 25, 2012 22:08
-
-
Save Martin1982/3179009 to your computer and use it in GitHub Desktop.
A boot file for the Boot 2 Gecko emulator with loads of logging
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
B2G_HOME=$PWD | |
. load-config.sh | |
DEVICE=${DEVICE:-generic} | |
TOOLS_PATH=$B2G_HOME/out/host/`uname -s | tr "[[:upper:]]" "[[:lower:]]"`-x86/bin | |
DBG_CMD="" | |
if [ x"$DBG" != x"" ]; then | |
DBG_CMD="gdb -args" | |
fi | |
TAIL_ARGS="" | |
if [ x"$GDBSERVER" != x"" ]; then | |
TAIL_ARGS="$TAIL_ARGS -s -S" | |
fi | |
if [ "$DEVICE" = "generic_x86" ]; then | |
EMULATOR=$TOOLS_PATH/emulator-x86 | |
KERNEL=$B2G_HOME/prebuilts/qemu-kernel/x86/kernel-qemu | |
else | |
EMULATOR=$TOOLS_PATH/emulator | |
KERNEL=$B2G_HOME/prebuilts/qemu-kernel/arm/kernel-qemu-armv7 | |
TAIL_ARGS="$TAIL_ARGS -cpu cortex-a8" | |
fi | |
export DYLD_LIBRARY_PATH="$B2G_HOME/out/host/darwin-x86/lib" | |
export PATH=$PATH:$TOOLS_PATH | |
${DBG_CMD} $EMULATOR \ | |
-kernel $KERNEL \ | |
-sysdir $B2G_HOME/out/target/product/$DEVICE/ \ | |
-data $B2G_HOME/out/target/product/$DEVICE/userdata.img \ | |
-memory 512 \ | |
-partition-size 512 \ | |
-skindir $B2G_HOME/development/tools/emulator/skins \ | |
-skin HVGA \ | |
-show-kernel \ | |
-logcat on \ | |
-verbose \ | |
-gpu on \ | |
-qemu $TAIL_ARGS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment