diff mbox series

busybox: enable mkfs.vfat via config fragment

Message ID 20260331223602.2935829-1-ricardo.salveti@oss.qualcomm.com
State New
Headers show
Series busybox: enable mkfs.vfat via config fragment | expand

Commit Message

Ricardo Salveti March 31, 2026, 10:36 p.m. UTC
Enable busybox’s mkfs.vfat (mkdosfs) implementation using a dedicated
mkdosfs.cfg config fragment.

While dosfstools provides mkfs.vfat and is available through
update-alternatives, it is licensed under GPLv3. Busybox also includes a
lightweight mkfs.vfat implementation that is suitable for minimal images
and systems relying primarily on busybox utilities.

Signed-off-by: Ricardo Salveti <ricardo.salveti@oss.qualcomm.com>
---
 meta/recipes-core/busybox/busybox/mkdosfs.cfg | 2 ++
 meta/recipes-core/busybox/busybox_1.37.0.bb   | 1 +
 2 files changed, 3 insertions(+)
 create mode 100644 meta/recipes-core/busybox/busybox/mkdosfs.cfg
diff mbox series

Patch

diff --git a/meta/recipes-core/busybox/busybox/mkdosfs.cfg b/meta/recipes-core/busybox/busybox/mkdosfs.cfg
new file mode 100644
index 0000000000..29307b20fc
--- /dev/null
+++ b/meta/recipes-core/busybox/busybox/mkdosfs.cfg
@@ -0,0 +1,2 @@ 
+CONFIG_MKDOSFS=y
+CONFIG_MKFS_VFAT=y
diff --git a/meta/recipes-core/busybox/busybox_1.37.0.bb b/meta/recipes-core/busybox/busybox_1.37.0.bb
index 2a38372339..fbb0edb0fb 100644
--- a/meta/recipes-core/busybox/busybox_1.37.0.bb
+++ b/meta/recipes-core/busybox/busybox_1.37.0.bb
@@ -27,6 +27,7 @@  SRC_URI = "https://busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \
            file://recognize_connmand.patch \
            file://busybox-cross-menuconfig.patch \
            file://mount-via-label.cfg \
+           file://mkdosfs.cfg \
            file://sha1sum.cfg \
            file://sha256sum.cfg \
            file://getopts.cfg \