mirror of
https://git.yoctoproject.org/poky
synced 2026-04-21 21:32:12 +02:00
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]. (From OE-Core rev: 17d616adffc3514b6778acc6ab5d6da34a7366b5) Signed-off-by: Scott Garman <scott.a.garman@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
d2737ebd7f
commit
641f582f53
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user