developer | e303c2e | 2022-02-09 11:35:09 +0800 | [diff] [blame] | 1 | --- a/package/system/fstools/Makefile |
| 2 | +++ b/package/system/fstools/Makefile |
| 3 | @@ -36,10 +36,16 @@ CMAKE_OPTIONS += $(if $(CONFIG_FSTOOLS_UBIFS_EXTROOT),-DCMAKE_UBIFS_EXTROOT=y) |
| 4 | CMAKE_OPTIONS += $(if $(CONFIG_FSTOOLS_OVL_MOUNT_FULL_ACCESS_TIME),-DCMAKE_OVL_MOUNT_FULL_ACCESS_TIME=y) |
| 5 | CMAKE_OPTIONS += $(if $(CONFIG_FSTOOLS_OVL_MOUNT_COMPRESS_ZLIB),-DCMAKE_OVL_MOUNT_COMPRESS_ZLIB=y) |
| 6 | |
| 7 | +define Package/libfstools-bootparam |
| 8 | + SECTION:=libs |
| 9 | + CATEGORY:=Libraries |
| 10 | + TITLE:=Boot parameter library for OpenWrt filesystem tools |
| 11 | +endef |
| 12 | + |
| 13 | define Package/fstools |
| 14 | SECTION:=base |
| 15 | CATEGORY:=Base system |
| 16 | - DEPENDS:=+ubox +USE_GLIBC:librt +NAND_SUPPORT:ubi-utils |
| 17 | + DEPENDS:=+ubox +USE_GLIBC:librt +NAND_SUPPORT:ubi-utils +libfstools-bootparam |
| 18 | TITLE:=OpenWrt filesystem tools |
| 19 | MENU:=1 |
| 20 | endef |
| 21 | @@ -79,7 +85,7 @@ define Package/block-mount |
| 22 | SECTION:=base |
| 23 | CATEGORY:=Base system |
| 24 | TITLE:=Block device mounting and checking |
| 25 | - DEPENDS:=+ubox +libubox +libuci +libblobmsg-json +libjson-c |
| 26 | + DEPENDS:=+ubox +libubox +libuci +libblobmsg-json +libjson-c +libfstools-bootparam |
| 27 | endef |
| 28 | |
| 29 | define Package/blockd |
| 30 | @@ -89,6 +95,12 @@ define Package/blockd |
| 31 | DEPENDS:=+block-mount +fstools +libubus +kmod-fs-autofs4 +libblobmsg-json +libjson-c |
| 32 | endef |
| 33 | |
| 34 | +define Package/libfstools-bootparam/install |
| 35 | + $(INSTALL_DIR) $(1)/lib |
| 36 | + |
| 37 | + $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libfstools-bootparam.so $(1)/lib/ |
| 38 | +endef |
| 39 | + |
| 40 | define Package/fstools/install |
| 41 | $(INSTALL_DIR) $(1)/sbin $(1)/lib |
| 42 | |
| 43 | @@ -132,6 +144,7 @@ define Build/InstallDev |
| 44 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/libubi-utils.a $(1)/usr/lib/ |
| 45 | endef |
| 46 | |
| 47 | +$(eval $(call BuildPackage,libfstools-bootparam)) |
| 48 | $(eval $(call BuildPackage,fstools)) |
| 49 | $(eval $(call BuildPackage,snapshot-tool)) |
| 50 | $(eval $(call BuildPackage,block-mount)) |