site  contact  subhomenews

gnupg1 static compile in OE

April 05, 2023 — BarryK

Back around mid-2018, I investigated Flatpaks, and as part of that, used the 'gpg' utility, version 1.4.23, to generate a signed-key-pair in the initrd. Posted about it here:

https://bkhome.org/news/201806/auto-generated-gnupg-signed-key-pair.html

The latest OpenEmbedded/Yocto project, 'oe-qky-kirkstone', was not setup for compiling with musl. In 2018, I had OE setup to compile with musl, so as to create small statically-linked utilities, such as 'busybox' and 'gpg'.
I have now setup 'oe-qky-kirkstone' for musl, see commit:

https://github.com/bkauler/oe-qky-kirkstone/commit/17f71735d0650dc9d63c04904bcfa9cdfc55c49a

And compiled the 'gpg' utility:

https://github.com/bkauler/oe-qky-kirkstone/commit/ad1b1e261990b78e5e2e30efa9046cc28ca52c68

Next up, plan to bring back generation of the signed-key-pair in the initrd, as long as it doesn't slow down bootup noticeably.     

Tags: easy