Op 8 mei 2018, om 18:54 heeft Denys Dmytriyenko denis@denix.org het volgende geschreven:
From: Denys Dmytriyenko denys@ti.com
Adjust to python3 division returning float instead of integer, as in python2. Fixes kernel version 4.10.3 becoming 4.0391082763671875.10.01171875.3
Signed-off-by: Denys Dmytriyenko denys@ti.com
Thanks, added into gerrit: https://review.linaro.org/25219
.../conf/distro/include/external-linaro-toolchain-versions.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/meta-linaro-toolchain/conf/distro/include/external-linaro-toolchain-versions.inc b/meta-linaro-toolchain/conf/distro/include/external-linaro-toolchain-versions.inc index 71fe69b..2a99209 100644 --- a/meta-linaro-toolchain/conf/distro/include/external-linaro-toolchain-versions.inc +++ b/meta-linaro-toolchain/conf/distro/include/external-linaro-toolchain-versions.inc @@ -102,9 +102,9 @@ def elt_get_kernel_version(d): for s in l: if s.find('LINUX_VERSION_CODE') > 0: ver = int(s.split()[2])
maj = ver / 65536
maj = int(ver / 65536) ver = ver % 65536
min = ver / 256
return 'UNKNOWN'min = int(ver / 256) ver = ver % 256 return str(maj)+'.'+str(min)+'.'+str(ver)
-- 2.7.4
OpenEmbedded mailing list OpenEmbedded@lists.linaro.org https://lists.linaro.org/mailman/listinfo/openembedded