On Wed, 2021-07-28 at 15:15 +0100, Richard Purdie via lists.openembedded.org 
wrote:
> This adds a script I've developed to migrate metadata to use the new override
> syntax. It is a bit rough but since its for a single use with validation, it
> doesn't need to be perfect. It is run simply as:
> 
> scripts/contrib/convert-overrides.py <directory>
> 
> It is setup and has been tested to work with OE-Core, Bitbake, yocto-docs,
> meta-yocto, meta-gplv2 and meta-mingw. For OE-Core, it converts around 10,100
> lines with about 34 manual fixes needed.
> 
> For other layers it would need updating for override names and exclusions for
> functions/variable names with "append", "prepend" or "remove" in them.
> 
> Signed-off-by: Richard Purdie <[email protected]>
> ---
>  scripts/contrib/convert-overrides.py | 146 +++++++++++++++++++++++++++
>  1 file changed, 146 insertions(+)
>  create mode 100755 scripts/contrib/convert-overrides.py

Since people are starting to use this, it is easier if it is in OE-Core and
we can then make changes as normal to it with patches.

I've therefore merged an updated version which has taken some of the review
feedback on board and improved it, along with feedback from some real world
use.

Cheers,

Richard



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#154255): 
https://lists.openembedded.org/g/openembedded-core/message/154255
Mute This Topic: https://lists.openembedded.org/mt/84506028/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to