Skip to contentSkip to conversation

runqemu fix for yocto-bsp kernels

PATCH Applied Scott Garman 2 participants 3 messages Aug 17, 2012 – Aug 20, 2012

lore
Share & tools
lore
#0 lore raw

cover runqemu fix for yocto-bsp kernels

The yocto-bsp tool generates kernels with additional strings within the filename, e.g. zImage-myqemuarm.bin. Loosen the MACHINE detection regex to work with these filenames.

Fixes [YOCTO #2890].

Scott

The following changes since commit bb74035190c7794fcebaa7f6ba247672a4c34cde:

libsamplerate: depends on libsdnfile (2012-08-17 18:04:12 +0100)

are available in the git repository at:

git://git.yoctoproject.org/poky-contrib sgarman/runqemu-yocto-bsp-oe
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=runqemu-yocto-bsp

Scott Garman (1):
runqemu: work with yocto-bsp created kernel filenames

 scripts/runqemu |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 runqemu: work with yocto-bsp created kernel filenames

The yocto-bsp tool generates kernels with additional strings within the filename, e.g. zImage-myqemuarm.bin. Loosen the MACHINE detection regex to work with these filenames.

Fixes [YOCTO #2890].

---
 scripts/runqemu |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/runqemu +1 -1
index 7e4bcc4..90998ae 100755
@@ -229,7 +229,7 @@ if [ "$FSTYPE" = "nfs" -a -z "$ROOTFS" ]; then
 fi
 
 if [ -z "$MACHINE" ]; then
-    MACHINE=`basename $KERNEL | sed 's/.*-\(qemux86-64\|qemux86\|qemuarm\|qemumips64\|qemumips\|qemuppc\|qemush4\).*/\1/'`
+    MACHINE=`basename $KERNEL | sed 's/.*\(qemux86-64\|qemux86\|qemuarm\|qemumips64\|qemumips\|qemuppc\|qemush4\).*/\1/'`
     if [ -z "$MACHINE" ]; then
         error "Unable to set MACHINE from kernel filename [$KERNEL]"
     fi
Signature · 1 line
1.7.9.5
Applied
#2 lore raw
In reply to Scott Garman
Quoted 14 lines · Scott Garman

The yocto-bsp tool generates kernels with additional strings within the filename, e.g. zImage-myqemuarm.bin. Loosen the MACHINE detection regex to work with these filenames.

Fixes [YOCTO #2890].

Scott

The following changes since commit bb74035190c7794fcebaa7f6ba247672a4c34cde:

   libsamplerate: depends on libsdnfile (2012-08-17 18:04:12 +0100)

are available in the git repository at:

Quoted 9 lines

git://git.yoctoproject.org/poky-contrib sgarman/runqemu-yocto-bsp-oe
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=runqemu-yocto-bsp

Scott Garman (1):
runqemu: work with yocto-bsp created kernel filenames

  scripts/runqemu |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

Merged into OE-Core

Thanks
Sau!