site  contact  subhomenews

btrfs-progs compiled statically in OE

March 14, 2024 — BarryK

OpenEmbedded calls the package "btrfs-tools". I have compiled it linked statically with musl. Recipe:

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

It required that 'util-linux' had to be recompiled, to build libblkid.a and libuuid.a:

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

I know that the btrfs-progs git site has it available as a static binary; however, mine is smaller, and I want to use it in the initrd which is not compressed.   

Tags: oe