2016-09-06 11:12:17 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2014 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=f2fs-tools
|
2017-03-15 16:14:55 +00:00
|
|
|
PKG_VERSION:=1.8.0
|
2017-05-10 09:04:26 +00:00
|
|
|
PKG_RELEASE:=2
|
2016-09-06 11:12:17 +00:00
|
|
|
|
|
|
|
PKG_LICENSE:=GPLv2
|
|
|
|
|
2017-05-10 09:04:26 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2017-03-15 16:14:55 +00:00
|
|
|
PKG_SOURCE_URL:=https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git/snapshot/
|
2017-05-10 09:04:26 +00:00
|
|
|
PKG_HASH:=d4dbecf55560c548bf0758c9f641d1beec1e960b38cbbc19951195d5144d39ae
|
2016-09-06 11:12:17 +00:00
|
|
|
|
|
|
|
PKG_FIXUP:=autoreconf
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
|
|
|
PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/f2fs-tools/Default
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
SUBMENU:=Filesystem
|
|
|
|
DEPENDS:=+libf2fs
|
|
|
|
URL:=http://git.kernel.org/cgit/linux/kernel/git/jaegeuk/f2fs-tools.git
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/mkf2fs
|
|
|
|
$(Package/f2fs-tools/Default)
|
|
|
|
TITLE:=Utility for creating a Flash-Friendly File System (F2FS)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/f2fsck
|
|
|
|
$(Package/f2fs-tools/Default)
|
|
|
|
TITLE:=Utility for checking/repairing a Flash-Friendly File System (F2FS)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/f2fs-tools
|
|
|
|
$(Package/f2fs-tools/Default)
|
|
|
|
TITLE:=Tools for Flash-Friendly File System (F2FS)
|
|
|
|
DEPENDS += +mkf2fs +f2fsck
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libf2fs
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=Library for Flash-Friendly File System (F2FS) tools
|
|
|
|
DEPENDS:=+libuuid
|
|
|
|
endef
|
|
|
|
|
2017-03-15 16:14:55 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--without-selinux
|
|
|
|
|
2017-08-24 06:23:32 +00:00
|
|
|
CONFIGURE_VARS += \
|
|
|
|
ac_cv_file__git=no
|
|
|
|
|
2016-09-06 11:12:17 +00:00
|
|
|
define Package/libf2fs/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/libf2fs.so* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/mkf2fs/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/mkfs.f2fs $(1)/usr/sbin
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/f2fsck/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/fsck.f2fs $(1)/usr/sbin
|
|
|
|
ln -s /usr/sbin/fsck.f2fs $(1)/usr/sbin/defrag.f2fs
|
|
|
|
ln -s /usr/sbin/fsck.f2fs $(1)/usr/sbin/dump.f2fs
|
|
|
|
ln -s /usr/sbin/fsck.f2fs $(1)/usr/sbin/sload.f2fs
|
|
|
|
ln -s /usr/sbin/fsck.f2fs $(1)/usr/sbin/resize.f2fs
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/f2fs-tools/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/f2fstat $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/fibmap.f2fs $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/parse.f2fs $(1)/usr/sbin
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libf2fs))
|
|
|
|
$(eval $(call BuildPackage,mkf2fs))
|
|
|
|
$(eval $(call BuildPackage,f2fsck))
|
|
|
|
$(eval $(call BuildPackage,f2fs-tools))
|