Skip to contentSkip to conversation

qemu arm/x86: drop linux-yocto preferred version

PATCH In review Bruce Ashfield 3 participants 5 messages Apr 5, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qemu arm/x86: drop linux-yocto preferred version

We don't make a linux-yocto version available unless it boots on all qemu targets, hence there is no reason to specify a specific version .. the latest is always fine.

Also, the other qemu machines don't have this specification, so this makes x86 and ARM consistent.

---
 meta/conf/machine/include/x86-base.inc | 1 -
 meta/conf/machine/qemuarm.conf         | 1 -
 2 files changed, 2 deletions(-)
meta/conf/machine/include/x86-base.inc +0 -1
index 40d59577fdb5..82e0cf6a5f36 100644
@@ -20,7 +20,6 @@ SERIAL_CONSOLE ?= "115200 ttyS0"
 # kernel-related variables
 #
 PREFERRED_PROVIDER_virtual/kernel ??= "linux-yocto"
-PREFERRED_VERSION_linux-yocto ??= "4.8%"
 
 #
 # XSERVER subcomponents, used to build the XSERVER variable
meta/conf/machine/qemuarm.conf +0 -1
index f9d6dd7e364e..b9b640f974f3 100644
@@ -16,5 +16,4 @@ QB_MACHINE = "-machine versatilepb"
 QB_KERNEL_CMDLINE_APPEND = "console=ttyAMA0,115200 console=tty"
 # Add the 'virtio-rng-pci' device otherwise the guest may run out of entropy
 QB_OPT_APPEND = "-show-cursor -usb -usbdevice tablet -device virtio-rng-pci"
-PREFERRED_VERSION_linux-yocto ??= "4.8%"
 QB_DTB = "${@base_version_less_or_equal('PREFERRED_VERSION_linux-yocto', '4.7', '', 'zImage-versatile-pb.dtb', d)}"
Signature · 1 line
2.5.0
#1 lore raw
Quoted 13 lines · Bruce Ashfield

We don't make a linux-yocto version available unless it boots on all qemu targets, hence there is no reason to specify a specific version .. the latest is always fine.

Also, the other qemu machines don't have this specification, so this makes x86 and ARM consistent.

meta/conf/machine/qemuarm.conf +0 -0
index f9d6dd7e364e..b9b640f974f3 100644
@@ -16,5 +16,4 @@ QB_MACHINE = "-machine versatilepb"
Quoted 5 lines

 QB_KERNEL_CMDLINE_APPEND = "console=ttyAMA0,115200 console=tty"
 # Add the 'virtio-rng-pci' device otherwise the guest may run out of entropy
 QB_OPT_APPEND = "-show-cursor -usb -usbdevice tablet -device virtio-rng-pci" -PREFERRED_VERSION_linux-yocto ??= "4.8%"
 QB_DTB = "${@base_version_less_or_equal('PREFERRED_VERSION_linux-yocto', '4.7', '', 'zImage-versatile-pb.dtb', d)}"

Note the line below the line you're removing here. This is why we need this one...

Cheers,

Richard

#2 lore raw
Quoted 18 lines · Richard Purdie

meta/conf/machine/

Quoted 9 lines · Bruce Ashfield

We don't make a linux-yocto version available unless it boots on all qemu targets, hence there is no reason to specify a specific version .. the latest is always fine.

Also, the other qemu machines don't have this specification, so this makes x86 and ARM consistent.

meta/conf/machine/ renamed from meta/conf/machine/qemuarm.conf +0 -0

qemuarm.conf

meta/conf/machine/qemuarm.conf QB_MACHINE = "-machine versatilepb" · line 17

Quoted 6 lines

index f9d6dd7e364e..b9b640f974f3 100644

meta/conf/machine/qemuarm.conf +0 -0
@@ -16,5 +16,4 @@ QB_MACHINE = "-machine versatilepb"
 QB_KERNEL_CMDLINE_APPEND = "console=ttyAMA0,115200 console=tty"
 # Add the 'virtio-rng-pci' device otherwise the guest may run out of

entropy

Quoted 9 lines

meta/conf/machine/qemuarm.conf QB_MACHINE = "-machine versatilepb" · line 18

Quoted 1 line
meta/conf/machine/qemuarm.conf +0 -0
 QB_OPT_APPEND = "-show-cursor -usb -usbdevice tablet -device

virtio-rng-pci"

meta/conf/machine/qemuarm.conf QB_MACHINE = "-machine versatilepb" · line 19

Quoted 2 lines
meta/conf/machine/qemuarm.conf +0 -1
-PREFERRED_VERSION_linux-yocto ??= "4.8%"
 QB_DTB = "${@base_version_less_or_equal('PREFERRED_VERSION_linux-yocto',

'4.7', '', 'zImage-versatile-pb.dtb', d)}"

Note the line below the line you're removing here. This is why we need
this one...

I had noticed that, but since the newest version is well above that, I figured it
would be ok.

I can spin another patch that leaves it in place for ARM, but drops it for x86.

Bruce

Quoted 10 lines

Cheers,

Richard
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"
#3 lore raw
Quoted 11 lines · Bruce Ashfield
Quoted 9 lines · Richard Purdie

Quoted 3 lines
(quoted diff) +0 -0
@@ -16,5 +16,4 @@ QB_MACHINE = "-machine versatilepb"

 QB_KERNEL_CMDLINE_APPEND = "console=ttyAMA0,115200 console=tty" # Add the 'virtio-rng-pci' device otherwise the guest may run

out of entropy

Quoted 1 line

 QB_OPT_APPEND = "-show-cursor -usb -usbdevice tablet -device

virtio-rng-pci"

Quoted 2 lines

-PREFERRED_VERSION_linux-yocto ??= "4.8%"
 QB_DTB = "${@base_version_less_or_equal('PREFERRED_VERSION_linux

Quoted 7 lines
Quoted 5 lines

-yocto', '4.7', '', 'zImage-versatile-pb.dtb', d)}"

Note the line below the line you're removing here. This is why we need
this one...

I had noticed that, but since the newest version is well above that, I figured it would be ok.

An unset variable returns "None", not sure
what base_version_less_or_equal makes of that...

Quoted 2 lines

I can spin another patch that leaves it in place for ARM, but drops it for x86.

I took Martin's patch moving things to 4.10, quite happy to take a second one removing the x86 version. Removing the arm one too would be nice but I'm not sure we can yet.

Cheers,

Richard

#4 lore raw
Quoted 23 lines · Richard Purdie
Quoted 11 lines · Bruce Ashfield
Quoted 9 lines · Richard Purdie

Review QB_MACHINE = "-machine versatilepb" · line 17

Quoted 4 lines
(quoted diff) +0 -0
@@ -16,5 +16,4 @@ QB_MACHINE = "-machine versatilepb"
 QB_KERNEL_CMDLINE_APPEND = "console=ttyAMA0,115200 console=tty"
 # Add the 'virtio-rng-pci' device otherwise the guest may run

out of entropy

Review QB_MACHINE = "-machine versatilepb" · line 18

Quoted 1 line
(quoted diff) +0 -0
 QB_OPT_APPEND = "-show-cursor -usb -usbdevice tablet -device

virtio-rng-pci"

Quoted 2 lines
(quoted diff) +0 -1
-PREFERRED_VERSION_linux-yocto ??= "4.8%"
 QB_DTB = "${@base_version_less_or_equal('PREFERRED_VERSION_linux
Quoted 7 lines
Quoted 5 lines

-yocto', '4.7', '', 'zImage-versatile-pb.dtb', d)}"

Note the line below the line you're removing here. This is why we need
this one...

I had noticed that, but since the newest version is well above that, I figured it would be ok.

An unset variable returns "None", not sure
what base_version_less_or_equal makes of that...

Quoted 7 lines
Quoted 2 lines

I can spin another patch that leaves it in place for ARM, but drops it for x86.

I took Martin's patch moving things to 4.10, quite happy to take a second one removing the x86 version. Removing the arm one too would be nice but I'm not sure we can yet.

Sounds good. I'll rebase onto those changes and follow up.

Bruce

Quoted 5 lines

Cheers,

Richard

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"