blob: 35cc41d1953f45d8e19fa6aace5a7819bd2ee992 [file] [log] [blame]
developere303c2e2022-02-09 11:35:09 +08001--- a/package/system/fstools/Makefile
2+++ b/package/system/fstools/Makefile
developer95c3d952022-08-10 18:33:28 +08003@@ -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)
developere303c2e2022-02-09 11:35:09 +08009 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
developer95c3d952022-08-10 18:33:28 +080026@@ -79,7 +86,7 @@ define Package/block-mount
developere303c2e2022-02-09 11:35:09 +080027 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
developer95c3d952022-08-10 18:33:28 +080035@@ -89,6 +96,12 @@ define Package/blockd
developere303c2e2022-02-09 11:35:09 +080036 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
developer95c3d952022-08-10 18:33:28 +080048@@ -132,6 +145,7 @@ define Build/InstallDev
developere303c2e2022-02-09 11:35:09 +080049 $(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))