[OE-core] [PATCH 6/9] sstate_lockedsig.bbclass: add event handler to dump lockedsigs at recipe building time

Hongxu Jia hongxu.jia at windriver.com
Thu Sep 18 05:28:04 UTC 2014


Hi Richard,

Is this patch not acceptable, it is not merged to master or master-next.

//Hongxu

On 09/17/2014 04:08 PM, Hongxu Jia wrote:
> While the class in use, it adds a event handler at 'bb.event.BuildCompleted',
> so after the build completed, it will dump the lockedsigs files.
>
> Use SIGGEN_LOCKEDSIGS_CONFIG variable controls where to dump the lockedsigs file,
> the default is placed into ${SSTATE_DIR}/locked-sigs.inc.
>
> Signed-off-by: Hongxu Jia <hongxu.jia at windriver.com>
> ---
>   meta/classes/sstate_lockedsig.bbclass | 12 ++++++++++++
>   1 file changed, 12 insertions(+)
>   create mode 100644 meta/classes/sstate_lockedsig.bbclass
>
> diff --git a/meta/classes/sstate_lockedsig.bbclass b/meta/classes/sstate_lockedsig.bbclass
> new file mode 100644
> index 0000000..ea88260
> --- /dev/null
> +++ b/meta/classes/sstate_lockedsig.bbclass
> @@ -0,0 +1,12 @@
> +SIGGEN_LOCKEDSIGS_CONFIG ?= "${SSTATE_DIR}/locked-sigs.inc"
> +addhandler sstate_dump_lockedsig
> +sstate_dump_lockedsig[eventmask] = "bb.event.BuildCompleted"
> +python sstate_dump_lockedsig() {
> +    d = e.data
> +    if e.getFailures():
> +        return
> +
> +    if hasattr(bb.parse.siggen, "dump_lockedsigs"):
> +        lockedsigs = d.getVar('SIGGEN_LOCKEDSIGS_CONFIG', True)
> +        bb.parse.siggen.dump_lockedsigs(lockedsigs)
> +}




More information about the Openembedded-core mailing list