]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commit
fs/ext2: fix blocks/inodes calculation
authorPeter Korsgaard <jacmet@sunsite.dk>
Mon, 19 Apr 2010 12:24:11 +0000 (14:24 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Mon, 19 Apr 2010 12:33:14 +0000 (14:33 +0200)
commitfb951b93423356a7b648a8e268cd5af57d964f45
tree52cedf70ce02752a76aeb683942097e2139f4668
parentf7f01e18e77dd43d535002783e9a40deedd2d924
fs/ext2: fix blocks/inodes calculation

With the ROOTFS_TARGET conversion, EXT2_OPTS gets evaluated very early
(before TARGET_DIR is populated with files), so the calculated
blocks/inodes numbers are wrong.

Fix it by moving the calculation to a shell script wrapper around
genext2fs, so it only gets executed just before genext2fs runs.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
fs/ext2/ext2.mk
fs/ext2/genext2fs.sh [new file with mode: 0755]