Skip to content
Commit 35bf4f39 authored by Peter Korsgaard's avatar Peter Korsgaard
Browse files

qemu: correct kernel headers check when major numbers differ



commit f7add51c (qemu: add host/target Linux version check) added a
version check between the host kernel version and the version of kernel
headers used by the toolchain, but the logic would fail unless BOTH major
and minor versions were >=, which isn't true for E.G. host kernel = 3.2 and
toolchain 2.6.x.

Instead calculate a single version number (as major << 8 + minor) and
compare that.

Signed-off-by: default avatarPeter Korsgaard <peter@korsgaard.com>
parent 1fe41593
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment