summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2010-08-02 17:54:03 +0100
committerJoshua Lock <josh@linux.intel.com>2010-08-02 17:54:20 +0100
commitfa8c028fd005b87ad2e64c5b93221412355d94a6 (patch)
tree97f09c65778ed912ac6f119b5c9bbb81d5a26bf1 /scripts
parentd9b1d4312cf1f981c5201b027b18594e9ad5a861 (diff)
downloadopenembedded-core-fa8c028fd005b87ad2e64c5b93221412355d94a6.tar.gz
openembedded-core-fa8c028fd005b87ad2e64c5b93221412355d94a6.tar.bz2
openembedded-core-fa8c028fd005b87ad2e64c5b93221412355d94a6.zip
scripts: add qemux86-64 support to the qemu scripts
Signed-off-by: Joshua Lock <josh@linux.intel.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/poky-qemu-internal35
-rwxr-xr-xscripts/runqemu27
2 files changed, 53 insertions, 9 deletions
diff --git a/scripts/poky-qemu-internal b/scripts/poky-qemu-internal
index 6c49ddeaf9..62c64727c0 100755
--- a/scripts/poky-qemu-internal
+++ b/scripts/poky-qemu-internal
@@ -35,6 +35,9 @@ if [ -z "$QEMU_MEMORY" ]; then
"qemux86")
QEMU_MEMORY="128M"
;;
+ "qemux86-64")
+ QEMU_MEMORY="128M"
+ ;;
"qemumips")
QEMU_MEMORY="128M"
;;
@@ -68,6 +71,7 @@ case "$MACHINE" in
"qemuarmv6") ;;
"qemuarmv7") ;;
"qemux86") ;;
+ "qemux86-64") ;;
"akita") ;;
"spitz") ;;
"nokia800") ;;
@@ -136,6 +140,26 @@ if [ "$MACHINE" = "qemux86" ]; then
fi
fi
+if [ "$MACHINE" = "qemux86-64" ]; then
+ QEMU=qemu-system-x86_64
+ QEMU_UI_OPTIONS="$QEMU_UI_OPTIONS -vga vmware -enable-gl"
+ if [ "$TYPE" = "ext3" ]; then
+ KERNCMDLINE="vga=0 root=/dev/hda mem=$QEMU_MEMORY $KERNEL_NETWORK_CMD"
+ QEMUOPTIONS="$QEMU_NETWORK_CMD -hda $HDIMAGE $QEMU_UI_OPTIONS"
+ fi
+ if [ "$TYPE" = "nfs" ]; then
+ if [ "x$HDIMAGE" = "x" ]; then
+ HDIMAGE=/srv/nfs/qemux86-64
+ fi
+ if [ ! -d "$HDIMAGE" ]; then
+ echo "Error: NFS mount point $HDIMAGE doesn't exist."
+ return
+ fi
+ KERNCMDLINE="root=/dev/nfs nfsroot=192.168.7.1:$HDIMAGE rw $KERNEL_NETWORK_CMD mem=$QEMU_MEMORY"
+ QEMUOPTIONS="$QEMU_NETWORK_CMD $QEMU_UI_OPTIONS"
+ fi
+fi
+
if [ "$MACHINE" = "spitz" ]; then
QEMU=qemu-system-arm
if [ "$TYPE" = "ext3" ]; then
@@ -231,14 +255,19 @@ if [ "x$QEMUOPTIONS" = "x" ]; then
return
fi
-SDKDIR="/usr/local/poky/eabi-glibc"
+SDKDIR="/opt/poky/sysroots"
if [ "$MACHINE" = "qemuarm" -o "$MACHINE" = "spitz" -o "$MACHINE" = "borzoi" -o "$MACHINE" = "akita" -o "$MACHINE" = "nokia800" ]; then
- SDKPATH="$SDKDIR/arm/arm-poky-linux-gnueabi/bin:$SDKDIR/arm/bin"
+ SDKPATH="$SDKDIR/arm-poky-linux-gnueabi/bin"
fi
if [ "$MACHINE" = "qemux86" ]; then
- SDKPATH="$SDKDIR/i586/i586-poky-linux/bin:$SDKDIR/i586/bin"
+ SDKPATH="$SDKDIR/i586-poky-linux/bin"
fi
+
+if [ "$MACHINE" = "qemux86-64" ]; then
+ SDKPATH="$SDKDIR/x86_64-poky-linux/bin"
+fi
+
PATH=$CROSSPATH:$SDKPATH:$PATH
QEMUBIN=`which $QEMU`
diff --git a/scripts/runqemu b/scripts/runqemu
index c45b2a1c86..53ef5a5efb 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -85,7 +85,7 @@ if [ "$MACHINE" = "qemuarm" -o "$MACHINE" = "spitz" -o "$MACHINE" = "borzoi" -o
if [ "x$ZIMAGE" = "x" ]; then
ZIMAGE=$TMPDIR/deploy/images/zImage-$MACHINE.bin
fi
- CROSSPATH=$TMPDIR/sysroots/$BUILD_SYS/arm-poky-linux-gnueabi/bin
+ CROSSPATH=$TMPDIR/sysroots/$BUILD_SYS/bin
fi
function findimage {
@@ -182,22 +182,37 @@ if [ "$MACHINE" = "qemux86" ]; then
CROSSPATH=$TMPDIR/sysroots/$BUILD_SYS/usr
fi
+if [ "$MACHINE" = "qemux86-64" ]; then
+ if [ "x$ZIMAGE" = "x" ]; then
+ ZIMAGE=$TMPDIR/deploy/images/bzImage-$MACHINE.bin
+ fi
+ if [ "$TYPE" = "ext3" ]; then
+ if [ "x$HDIMAGE" = "x" ]; then
+ T=$TMPDIR/deploy/images
+ findimage $T qemux86-64 ext3 "moblin-image-sdk moblin-image-netbook poky-image-sdk poky-image-sato poky-image-minimal"
+ fi
+ fi
+ CROSSPATH=$TMPDIR/sysroots/$BUILD_SYS/usr
+fi
+
if [ "$MACHINE" = "qemuarm" -o "$MACHINE" = "spitz" -o "$MACHINE" = "borzoi" -o "$MACHINE" = "akita" -o "$MACHINE" = "nokia800" ]; then
TARGET_SYS="arm-poky-linux"
elif [ "$MACHINE" = "qemux86" ]; then
TARGET_SYS="i586-poky-linux"
+elif [ "$MACHINE" = "qemux86-64" ]; then
+ TARGET_SYS="x86_64-poky-linux"
elif [ "$MACHINE" = "qemumips" ]; then
TARGET_SYS="mips-poky-linux"
fi
-if [ ! -e $CROSSPATH/$TARGET_SYS/bin/cc ]; then
- ln -s $CROSSPATH/bin/$TARGET_SYS-gcc $CROSSPATH/$TARGET_SYS/bin/cc
+if [ ! -e $CROSSPATH/bin/cc ]; then
+ ln -s $CROSSPATH/bin/$TARGET_SYS-gcc $CROSSPATH/bin/cc
fi
-if [ ! -e $CROSSPATH/$TARGET_SYS/bin/gcc ]; then
- ln -s $CROSSPATH/bin/$TARGET_SYS-gcc $CROSSPATH/$TARGET_SYS/bin/gcc
+if [ ! -e $CROSSPATH/bin/gcc ]; then
+ ln -s $CROSSPATH/bin/$TARGET_SYS-gcc $CROSSPATH/bin/gcc
fi
-CROSSPATH=$TMPDIR/sysroots/$BUILD_SYS/usr/bin:$CROSSPATH:$TMPDIR/cross/bin
+CROSSPATH=$TMPDIR/sysroots/$BUILD_SYS/usr/bin:$CROSSPATH
. $INTERNAL_SCRIPT