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