mkfs.xfs is able to populate a filesystem from a directory since upstream commit [1], included since v6.17. With this option, it is now possible to create XFS rootfs in Buildroot. This commit adds this new feature. [1] https://git.kernel.org/pub/scm/fs/xfs/xfsprogs-dev.git/commit/?id=8a4ea72724930cfe262ccda03028264e1a81b145 Signed-off-by: Julien Olivain <ju.o@free.fr> Signed-off-by: Romain Naour <romain.naour@smile.fr>