]> code.ossystems Code Review - openembedded-core.git/commit
lib/oe/recipeutils: Add a new function to mimic do_checkpkg
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 14 Dec 2018 17:45:27 +0000 (17:45 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 15 Dec 2018 11:47:59 +0000 (11:47 +0000)
commit92e33277b1b7892bae9cc0801ab379bd1c57c0f0
tree58d104651046f0990abcb719143915fbc084c819
parent6408b4b90833706dd1307f845266dcf9fccdbcaf
lib/oe/recipeutils: Add a new function to mimic do_checkpkg

The code in distrodata.bbclass related to the do_checkpkg task is rather
dated, has holes in it (ignoring some recipes) and has horrible locking
and csv related issues.

We should use modern APIs such as tinfoil to make the calls we need directly
against bitbake, cutting out the middleman and clarifing the code.

This change imports the bits of distrodata.bbclass that are needed by the
automated upgrade helper (AUH) into a standalone function which uses the
tinfoil API. This can then be used by AUH and by the tests in
oeqa/selftest/distrodata as well as by any other standalone script that needs
this functionality. Its likely it can be further improved from here but this is a
good start and appears to function as before, with slightly wider recipe
coverage as some things skipped by distrodata are not skipped here (images,
pieces of gcc, nativesdk only recipes).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/recipeutils.py