2 # Copyright (C) 2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
17 PKG_SOURCE_URL
:=https
://git.kernel.org
/pub
/scm
/linux
/kernel
/git
/jaegeuk
/f2fs-tools.git
/snapshot
/
18 PKG_HASH
:=d4dbecf55560c548bf0758c9f641d1beec1e960b38cbbc19951195d5144d39ae
24 PKG_MAINTAINER
:=Felix Fietkau
<nbd@nbd.name
>
26 include $(INCLUDE_DIR
)/package.mk
28 define Package
/f2fs-tools
/Default
33 URL
:=http
://git.kernel.org
/cgit
/linux
/kernel
/git
/jaegeuk
/f2fs-tools.git
37 $(Package
/f2fs-tools
/Default
)
38 TITLE
:=Utility for creating a Flash-Friendly File System
(F2FS
)
42 $(Package
/f2fs-tools
/Default
)
43 TITLE
:=Utility for checking
/repairing a Flash-Friendly File System
(F2FS
)
46 define Package
/f2fs-tools
47 $(Package
/f2fs-tools
/Default
)
48 TITLE
:=Tools for Flash-Friendly File System
(F2FS
)
49 DEPENDS
+= +mkf2fs
+f2fsck
52 define Package
/libf2fs
55 TITLE
:=Library for Flash-Friendly File System
(F2FS
) tools
62 define Package
/libf2fs
/install
63 $(INSTALL_DIR
) $(1)/usr
/lib
65 $(PKG_INSTALL_DIR
)/usr
/lib
/libf2fs.so
* $(1)/usr
/lib
/
68 define Package
/mkf2fs
/install
69 $(INSTALL_DIR
) $(1)/usr
/sbin
70 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/mkfs.f2fs
$(1)/usr
/sbin
73 define Package
/f2fsck
/install
74 $(INSTALL_DIR
) $(1)/usr
/sbin
76 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/fsck.f2fs
$(1)/usr
/sbin
77 ln
-s
/usr
/sbin
/fsck.f2fs
$(1)/usr
/sbin
/defrag.f2fs
78 ln
-s
/usr
/sbin
/fsck.f2fs
$(1)/usr
/sbin
/dump.f2fs
79 ln
-s
/usr
/sbin
/fsck.f2fs
$(1)/usr
/sbin
/sload.f2fs
80 ln
-s
/usr
/sbin
/fsck.f2fs
$(1)/usr
/sbin
/resize.f2fs
83 define Package
/f2fs-tools
/install
84 $(INSTALL_DIR
) $(1)/usr
/sbin
85 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/f2fstat
$(1)/usr
/sbin
86 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/fibmap.f2fs
$(1)/usr
/sbin
87 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/parse.f2fs
$(1)/usr
/sbin
90 $(eval
$(call BuildPackage
,libf2fs
))
91 $(eval
$(call BuildPackage
,mkf2fs
))
92 $(eval
$(call BuildPackage
,f2fsck
))
93 $(eval
$(call BuildPackage
,f2fs-tools
))