Skip to content

Commit

Permalink
Add script to start ICS emulator
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwu committed Apr 10, 2012
1 parent 035968e commit 24d8604
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions emu-ics.sh
@@ -0,0 +1,23 @@
#!/bin/sh
B2G_HOME=$(pwd)

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

export PATH=$PATH:$B2G_HOME/glue/gonk-ics/out/host/linux-x86/bin
${DBG_CMD} $B2G_HOME/glue/gonk-ics/out/host/linux-x86/bin/emulator \
-kernel $B2G_HOME/glue/gonk-ics/prebuilts/qemu-kernel/arm/kernel-qemu-armv7 \
-sysdir $B2G_HOME/glue/gonk-ics/out/target/product/generic/ \
-data $B2G_HOME/glue/gonk-ics/out/target/product/generic/userdata.img \
-memory 512 \
-partition-size 512 \
-skindir $B2G_HOME/glue/gonk-ics/development/tools/emulator/skins \
-skin WVGA854 \
-verbose \
-qemu -cpu 'cortex-a8' $TAIL_ARGS

0 comments on commit 24d8604

Please sign in to comment.