diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2016-02-13 11:02:09 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-02-15 16:28:44 +0000 |
commit | c7f0578b78b938893a41d3cfa44907e620414ee3 (patch) | |
tree | 7a01fe10cfc649cfc5221ee802a658f0e8b4a37c /scripts | |
parent | 2c3a009b2059099731f2855a72f4bdf50a8f59be (diff) | |
download | poky-c7f0578b78b938893a41d3cfa44907e620414ee3.tar.gz |
runqemu: don't set KERNEL for wic images
Wic images should be boot as is, without pointing qemu to the kernel
binary. Current code doesn't use kernel, but sets KERNEL variable and
shows kernel path in the console output. This can confuse users.
Changed runqemu and runqemu-internal code to avoid setting KERNEL
variable and show kernel path.
(From OE-Core rev: 474caa7ed5ff05caa5d49d270b283882fa616ed1)
(From OE-Core rev: 35e776e00cce25f2c9c45500612fb66022ec4739)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/runqemu | 2 | ||||
-rwxr-xr-x | scripts/runqemu-internal | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/runqemu b/scripts/runqemu index 4bb3bb61ec..083090165b 100755 --- a/scripts/runqemu +++ b/scripts/runqemu | |||
@@ -454,7 +454,7 @@ if [ -e "$ROOTFS" -a -z "$FSTYPE" ]; then | |||
454 | fi | 454 | fi |
455 | fi | 455 | fi |
456 | 456 | ||
457 | if [ -z "$KERNEL" -a "x$FSTYPE" != "xvmdk" -a "x$FSTYPE" != "xhddimg" -a "x$FSTYPE" != "xhdddirect" ]; then | 457 | if [ -z "$KERNEL" -a "x$FSTYPE" != "xvmdk" -a "x$FSTYPE" != "xhddimg" -a "x$FSTYPE" != "xhdddirect" -a "x$FSTYPE" != "xwic" ]; then |
458 | setup_path_vars 1 | 458 | setup_path_vars 1 |
459 | eval kernel_file=\$${machine2}_DEFAULT_KERNEL | 459 | eval kernel_file=\$${machine2}_DEFAULT_KERNEL |
460 | KERNEL=$DEPLOY_DIR_IMAGE/$kernel_file | 460 | KERNEL=$DEPLOY_DIR_IMAGE/$kernel_file |
diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal index 2926024e3f..ad854d108d 100755 --- a/scripts/runqemu-internal +++ b/scripts/runqemu-internal | |||
@@ -301,7 +301,7 @@ case "$MACHINE" in | |||
301 | ;; | 301 | ;; |
302 | esac | 302 | esac |
303 | 303 | ||
304 | if [ ! -f "$KERNEL" -a "x$FSTYPE" != "xvmdk" -a "x$FSTYPE" != "xhddimg" -a "x$FSTYPE" != "xhdddirect" ]; then | 304 | if [ ! -f "$KERNEL" -a "x$FSTYPE" != "xvmdk" -a "x$FSTYPE" != "xhddimg" -a "x$FSTYPE" != "xhdddirect" -a "x$FSTYPE" != "xwic" ]; then |
305 | echo "Error: Kernel image file $KERNEL doesn't exist" | 305 | echo "Error: Kernel image file $KERNEL doesn't exist" |
306 | cleanup | 306 | cleanup |
307 | return 1 | 307 | return 1 |