Recently Darren sent a patch to fix the calculation of FAT filesystem overhead in image size: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=1cabda965d0ec7c76f2fe57ce751154b9fc5e500 Actually meta/classes/boot-directdisk.bbclass has the same issue since it uses mkdosfs, too. So we need to fix boot-directdisk.bbclass, too. To avoid duplicating the code (e.g., the the fatfs overhead calculations), we'd better create a new file msdosfs.bbclass that holds the common code so that bootimg.bbclass and boot-directdisk.bbclass can share that.
commit c78c1f9c92a2c2b38699a732ad893b669ccefcda Author: Jason Wessel <jason.wessel@windriver.com> Date: Sat Sep 14 00:08:57 2013 +0000 bootimage.bbclass: Move fat image creation into a function