Abandoned this patch.
 
The new patch is:
https://lists.openembedded.org/g/openembedded-devel/message/127603