[PATCH v2 3/4] package/mtdutils: add ubifs-tools package containing mkfs.ubifs
André Valentin
avalentin at marcant.net
Mon May 17 02:57:10 PDT 2021
Add mkfs.ubifs tool as package. It may used in the sysupgrade process.
Signed-off-by: André Valentin <avalentin at marcant.net>
---
package/utils/mtd-utils/Makefile | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/package/utils/mtd-utils/Makefile b/package/utils/mtd-utils/Makefile
index 5a4b03da96..4d6565aeb5 100644
--- a/package/utils/mtd-utils/Makefile
+++ b/package/utils/mtd-utils/Makefile
@@ -54,6 +54,16 @@ define Package/nand-utils/description
Utilities for NAND devices.
endef
+define Package/ubifs-utils
+ $(call Package/mtd-utils/Default)
+ TITLE:=Utilities for generating ubifs filesystems and images
+ DEPENDS:=+libuuid +zlib
+endef
+
+define Package/ubifs-utils/description
+ Utilities for NAND devices.
+endef
+
MAKE_FLAGS += LDLIBS+="$(LIBGCC_S)"
CONFIGURE_ARGS += \
@@ -80,5 +90,12 @@ define Package/nand-utils/install
$(PKG_INSTALL_DIR)/usr/sbin/{flash_erase,nanddump,nandwrite,nandtest,mtdinfo} $(1)/usr/sbin/
endef
+define Package/ubifs-utils/install
+ $(INSTALL_DIR) $(1)/usr/sbin
+ $(INSTALL_BIN) \
+ $(PKG_INSTALL_DIR)/usr/sbin/mkfs.ubifs $(1)/usr/sbin/
+endef
+
$(eval $(call BuildPackage,ubi-utils))
$(eval $(call BuildPackage,nand-utils))
+$(eval $(call BuildPackage,ubifs-utils))
--
2.20.1
More information about the openwrt-devel
mailing list