]> code.ossystems Code Review - openembedded-core.git/commit
scripts/contrib: Add override conversion script
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 16 Jul 2021 13:53:23 +0000 (14:53 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 29 Jul 2021 23:11:36 +0000 (00:11 +0100)
commite8fc67f6f6baf54ccdf548b947c35dea926842c3
tree7b16015c0f86d013df5244b79a41905ff66cef1c
parent9d002acae720b0a8e96a6734424a142b86880461
scripts/contrib: Add override conversion script

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 <richard.purdie@linuxfoundation.org>
scripts/contrib/convert-overrides.py [new file with mode: 0755]