]> code.ossystems Code Review - openembedded-core.git/commitdiff
qemuarm.conf: set PREFERRED_VERSION_linux-yocto
authorRobert Yang <liezhi.yang@windriver.com>
Tue, 6 Sep 2016 06:15:05 +0000 (23:15 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 9 Sep 2016 11:00:48 +0000 (12:00 +0100)
The base_version_less_or_equal() will raise errors if
PREFERRED_VERSION_linux-yocto is None. For example, when we build
DISTRO = "nodistro", PREFERRED_VERSION_linux-yocto is not be defined
since it is defined in poky.conf, and then bitbake will
choose the higher version which is 4.8 currently, so set
PREFERRED_VERSION_linux-yocto to 4.8, otherwise, runqemu can't boot it.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/conf/machine/qemuarm.conf

index 3ca4d6e462e428833d69e1c1e6b0f5c658cf5ffa..4c5891ab7cdc343888db787248186ff42401162e 100644 (file)
@@ -15,4 +15,5 @@ QB_SYSTEM_NAME = "qemu-system-arm"
 QB_MACHINE = "-machine versatilepb"
 QB_KERNEL_CMDLINE_APPEND = "console=ttyAMA0,115200 console=tty"
 QB_OPT_APPEND = "-show-cursor -usb -usbdevice tablet"
+PREFERRED_VERSION_linux-yocto ??= "4.8%"
 QB_DTB = "${@base_version_less_or_equal('PREFERRED_VERSION_linux-yocto', '4.7', '', 'zImage-versatile-pb.dtb', d)}"