Skip to content
Snippets Groups Projects
Commit ec02c6dd authored by Felix Fietkau's avatar Felix Fietkau
Browse files

add a package for the udev vol_id utility (thx, fish)

SVN-Revision: 10697
parent 54d981bc
No related branches found
No related tags found
No related merge requests found
...@@ -37,6 +37,11 @@ $(call Package/udev) ...@@ -37,6 +37,11 @@ $(call Package/udev)
TITLE:=Small utility to request kernel devices events for coldplug TITLE:=Small utility to request kernel devices events for coldplug
endef endef
define Package/udev-vol-id
$(call Package/udev)
TITLE:=Small utility to read volume ids
endef
define Build/Compile define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \ $(MAKE) -C $(PKG_BUILD_DIR) \
CROSS_COMPILE="$(TARGET_CROSS)" \ CROSS_COMPILE="$(TARGET_CROSS)" \
...@@ -44,6 +49,7 @@ define Build/Compile ...@@ -44,6 +49,7 @@ define Build/Compile
OPTFLAGS="$(TARGET_CFLAGS)" \ OPTFLAGS="$(TARGET_CFLAGS)" \
DESTDIR="$(PKG_INSTALL_DIR)" \ DESTDIR="$(PKG_INSTALL_DIR)" \
INSTALL="install -c" \ INSTALL="install -c" \
EXTRAS="extras/volume_id" \
all install all install
endef endef
...@@ -66,6 +72,13 @@ define Package/udevtrigger/install ...@@ -66,6 +72,13 @@ define Package/udevtrigger/install
$(INSTALL_DIR) $(1)/sbin $(INSTALL_DIR) $(1)/sbin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/udevtrigger $(1)/sbin/ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/udevtrigger $(1)/sbin/
endef endef
define Package/udev-vol-id/install
$(INSTALL_DIR) $(1)/sbin
$(INSTALL_DIR) $(1)/lib
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/lib/libvolume_id.so* $(1)/lib/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/lib/udev/vol_id $(1)/sbin/
endef
$(eval $(call BuildPackage,udev)) $(eval $(call BuildPackage,udev))
$(eval $(call BuildPackage,udevtrigger)) $(eval $(call BuildPackage,udevtrigger))
$(eval $(call BuildPackage,udev-vol-id))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment