diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2012-03-23 08:43:00 +0100 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2012-03-26 15:05:46 +0200 |
commit | 5d07b1429e302463c951eeee962c2a3941789126 (patch) | |
tree | f739fa673f23a34091d68e989b5e08a3977e02d8 /meta-oe | |
parent | 1fd050dc8dd275f5cfbf61c4ba75a552c381ffb2 (diff) | |
download | meta-openembedded-5d07b1429e302463c951eeee962c2a3941789126.tar.gz |
kernel.bbclass: use better number for KERNEL_PRIORITY
* there is no upgrade from 2.6.X to 3.X.Y
last part of PV is used as kernel priority for u-a, but X is usually higher then Y in 3.x.x
so use all 3 parts in one bigger number
* and make it weak assignment if this scheme doesn't work for some
recipe
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe')
-rw-r--r-- | meta-oe/classes/kernel.bbclass | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta-oe/classes/kernel.bbclass b/meta-oe/classes/kernel.bbclass index 41a741f9a..02d0ca547 100644 --- a/meta-oe/classes/kernel.bbclass +++ b/meta-oe/classes/kernel.bbclass | |||
@@ -36,7 +36,9 @@ PACKAGES_DYNAMIC += "kernel-firmware-*" | |||
36 | export OS = "${TARGET_OS}" | 36 | export OS = "${TARGET_OS}" |
37 | export CROSS_COMPILE = "${TARGET_PREFIX}" | 37 | export CROSS_COMPILE = "${TARGET_PREFIX}" |
38 | 38 | ||
39 | KERNEL_PRIORITY = "${@d.getVar('PV',1).split('-')[0].split('.')[-1]}" | 39 | KERNEL_PRIORITY ?= "${@int(d.getVar('PV',1).split('-')[0].split('+')[0].split('.')[0]) * 10000 + \ |
40 | int(d.getVar('PV',1).split('-')[0].split('+')[0].split('.')[1]) * 100 + \ | ||
41 | int(d.getVar('PV',1).split('-')[0].split('+')[0].split('.')[-1])}" | ||
40 | 42 | ||
41 | KERNEL_RELEASE ?= "${KERNEL_VERSION}" | 43 | KERNEL_RELEASE ?= "${KERNEL_VERSION}" |
42 | 44 | ||