Hi f2fs-tools maintainers, This patch adds a section to mkfs/Makefile.am to build a library "libf2fs_fmt". This library is compiled from the same sources of mkfs.f2fs and is required by libf2fs_utils and fastboot from the Android Open Source Project (check <https://android.googlesource.com/platform/external/f2fs-tools/+/master/Android.mk>). I am from Debian's Android Tools Maintainer team and I believe this patch can reduce the changes to the upstream source when we are packaging Android SDK. This patch is also available at <https://github.com/seamlik/f2fs-tools/compare/libf2fs_fmt>. Thank you!
diff --git a/mkfs/Makefile.am b/mkfs/Makefile.am index 7343f23..8969a04 100644 --- a/mkfs/Makefile.am +++ b/mkfs/Makefile.am @@ -5,3 +5,9 @@ AM_CFLAGS = -Wall -DWITH_BLKDISCARD sbin_PROGRAMS = mkfs.f2fs mkfs_f2fs_SOURCES = f2fs_format_main.c f2fs_format.c f2fs_format_utils.c f2fs_format_utils.h $(top_srcdir)/include/f2fs_fs.h mkfs_f2fs_LDADD = ${libuuid_LIBS} $(top_builddir)/lib/libf2fs.la + +lib_LTLIBRARIES = libf2fs_format.la +libf2fs_format_la_SOURCES = f2fs_format_main.c f2fs_format.c f2fs_format_utils.c +libf2fs_format_la_CFLAGS = -DWITH_BLKDISCARD +libf2fs_format_la_CPPFLAGS = -I$(top_srcdir)/include +libf2fs_format_la_LDFLAGS = -luuid -L$(top_srcdir)/lib -lf2fs -- /* * 殷啟聰 | Kai-Chung Yan * 一生只向真理與妻子低頭 * Full-time student of National Taichung University of Education * LinkedIn: <https://linkedin.com/in/seamlik> * Blog: <seamlik.logdown.com> */ ------------------------------------------------------------------------------ _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel