Permalink
Browse files

Add script to start ICS emulator

  • Loading branch information...
1 parent 035968e commit 24d8604fc801f5a38df84aca1a51e7c96d9c01e4 @michaelwu michaelwu committed Apr 10, 2012
Showing with 23 additions and 0 deletions.
  1. +23 −0 emu-ics.sh
View
@@ -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.