On 7/28/21 4:15 PM, Richard Purdie 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
>
> diff --git a/scripts/contrib/convert-overrides.py 
> b/scripts/contrib/convert-overrides.py


Tested-by: Michael Opdenacker <[email protected]>
Working fine on documentation sources, though I'll exclude the changes
to migration guides from past versions.
Thanks!

-- 
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#154210): 
https://lists.openembedded.org/g/openembedded-core/message/154210
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