From f2f3cff6cfcd46a0dae0e0f90e27fc246c6edc32 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Eric=20B=C3=A9nard?= Date: Mon, 3 May 2010 23:13:47 +0200 Subject: [PATCH] module-base.bbclass: keep PR if MACHINE_KERNEL_PR is not set MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Eric Bénard Acked-by: Phil Blundell --- classes/module-base.bbclass | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/classes/module-base.bbclass b/classes/module-base.bbclass index bc53e1bad5..9aaaa4e8e3 100644 --- a/classes/module-base.bbclass +++ b/classes/module-base.bbclass @@ -7,7 +7,12 @@ export CROSS_COMPILE = "${TARGET_PREFIX}" # A machine.conf or local.conf can increase MACHINE_KERNEL_PR to force # rebuilds for kernel and external modules -PR = "${MACHINE_KERNEL_PR}" +python __anonymous () { + machine_kernel_pr = bb.data.getVar('MACHINE_KERNEL_PR', d, True) + + if machine_kernel_pr: + bb.data.setVar('PR', machine_kernel_pr, d) +} export KERNEL_VERSION = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-abiversion')}" export KERNEL_SOURCE = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-source')}" -- 2.39.5