[oe] [RFC][PATCH] module-base.bbclass: keep PR if MACHINE_KERNEL_PR is not set

Phil Blundell philb at gnu.org
Fri May 14 16:25:25 UTC 2010


On Fri, 2010-05-14 at 17:10 +0200, Eric Bénard wrote:
> -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)
> +}

Looks reasonable to me.  It seems a little bit sad to have this code
duplicated in both kernel.bbclass and module-base.bbclass but I guess
that is not a very big deal.

p.






More information about the Openembedded-devel mailing list