define Package/fstools
SECTION:=base
CATEGORY:=Base system
- DEPENDS:=+ubox +USE_EGLIBC:librt
+ DEPENDS:=+ubox +USE_EGLIBC:librt +NAND_SUPPORT:ubi-utils
TITLE:=OpenWrt filesystem tools
endef
-define Package/ubi-flash
- SECTION:=base
- CATEGORY:=Base system
- TITLE:=OpenWrt ubi flashing tool
-endef
-
define Package/block-mount
SECTION:=base
CATEGORY:=Base system
ln -s /sbin/jffs2reset $(1)/sbin/jffs2mark
endef
-define Package/ubi-flash/install
- $(INSTALL_DIR) $(1)/sbin $(1)/lib
-
- $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ubi $(1)/sbin/
-endef
-
define Package/block-mount/install
$(INSTALL_DIR) $(1)/sbin $(1)/lib $(1)/usr/sbin $(1)/etc/hotplug.d/block $(1)/etc/init.d/ $(1)/etc/uci-defaults/
endef
$(eval $(call BuildPackage,fstools))
-$(eval $(call BuildPackage,ubi-flash))
$(eval $(call BuildPackage,block-mount))