~mcf/oasis

0fd795873fae5853a0b14d713273b0602e1aedad — Michael Forney a month ago 72d5338
e2fsprogs: Build tune2fs
2 files changed, 24 insertions(+), 1 deletions(-)

M pkg/e2fsprogs/.gitignore
M pkg/e2fsprogs/gen.lua
M pkg/e2fsprogs/.gitignore => pkg/e2fsprogs/.gitignore +1 -0
@@ 1,1 1,2 @@
/tools.ninja
/journal.ninja

M pkg/e2fsprogs/gen.lua => pkg/e2fsprogs/gen.lua +23 -1
@@ 211,9 211,11 @@ build('awk', '$outdir/default_profile.c', {'$srcdir/misc/mke2fs.conf.in', '|', '
	expr='-f $srcdir/misc/profile-to-c.awk',
})

cc('misc/util.c')

exe('bin/mke2fs', [[
	misc/(
		mke2fs.c util.c mk_hugefiles.c
		mke2fs.c util.c.o mk_hugefiles.c
		create_inode.c
	)
	$outdir/default_profile.c


@@ 224,6 226,26 @@ exe('bin/mke2fs', [[
file('bin/mke2fs', '755', '$outdir/bin/mke2fs')
substman{'misc/mke2fs.8.in'}

sub('journal.ninja', function()
	cflags{
		'-I $srcdir/e2fsck',
		'-D DEBUGFS',
	}
	set('outdir', '$outdir/misc')
	lib('libjournal.a', [[
		debugfs/journal.c
		e2fsck/(revoke.c recovery.c)
	]])
end)
exe('bin/tune2fs', [[
	misc/(tune2fs.c util.c.o libjournal.a)
	libsupport.a libext2fs.a libe2p.a libcomm_err.a
	$builddir/pkg/util-linux/libblkid.a.d
	$builddir/pkg/util-linux/libuuid.a.d
]])
file('bin/tune2fs', '755', '$outdir/bin/tune2fs')
substman{'misc/tune2fs.8.in'}

exe('bin/e4crypt', [[
	misc/e4crypt.c
	libext2fs.a