]> code.ossystems Code Review - openembedded-core.git/commit
runqemu: also accept -image suffix for rootfs parameter
authorPatrick Ohly <patrick.ohly@intel.com>
Tue, 10 Jan 2017 11:11:21 +0000 (12:11 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 28 Feb 2017 11:26:32 +0000 (11:26 +0000)
commitca0fad3ad9d75d4198388b2a3133326267fc58db
tree6207c114253927d5786b26ed49086e08d9e53e2c
parent3f11e4cbb36fc65ff92296065e5f0a508b210ac7
runqemu: also accept -image suffix for rootfs parameter

The magic detection of the rootfs parameter only worked for image
recipes which embedd the "image" string in the middle, as in
"core-image-minimal".

Sometimes it is more natural to call an image "something-image". To
get such an image detected by runqemu, "-image" at the end of a
parameter must also cause that parameter to be treated as the rootfs
parameter.

Inside the image directory, "something-image" has an -<arch> suffix
and thus no change is needed for those usages of
re.search('-image-'). However, while at it also enhance those string
searches a bit (no need for re; any()+map() a bit closer to the
intended logic).

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
scripts/runqemu