summaryrefslogtreecommitdiff
path: root/package/udev/udev.mk
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2007-05-07 04:02:31 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2007-05-07 04:02:31 +0000
commit458aa926964a6cdc06fb238229f6ebce9d585765 (patch)
tree7e058bfade762a9674554281754e874b354e6357 /package/udev/udev.mk
parent69564bb566cbd849d002161aa799eadecd9bbc6e (diff)
Add ability to build 'scsi_id' utility for udev.
Diffstat (limited to 'package/udev/udev.mk')
-rw-r--r--package/udev/udev.mk30
1 files changed, 28 insertions, 2 deletions
diff --git a/package/udev/udev.mk b/package/udev/udev.mk
index 4b469ee9d..d33d6b401 100644
--- a/package/udev/udev.mk
+++ b/package/udev/udev.mk
@@ -84,13 +84,35 @@ udev-volume_id-dirclean:
-$(MAKE) EXTRAS="extras/volume_id" -C $(UDEV_DIR) clean
endif
-udev-clean:
+ifeq ($(strip $(BR2_PACKAGE_UDEV_SCSI_ID)),y)
+$(TARGET_DIR)/lib/udev/scsi_id: $(STAGING_DIR)/usr/lib/libvolume_id.so.0.72.0
+ $(MAKE) CROSS_COMPILE=$(TARGET_CROSS) \
+ USE_LOG=false USE_SELINUX=false \
+ udevdir=$(UDEV_ROOT) EXTRAS="extras/scsi_id" -C $(UDEV_DIR)
+ $(INSTALL) -m 0755 -D $(UDEV_DIR)/extras/scsi_id/scsi_id $(TARGET_DIR)/lib/udev/scsi_id
+ $(STRIP) --strip-unneeded $(TARGET_DIR)/lib/udev/scsi_id
+ $(MAKE) CROSS_COMPILE=$(TARGET_CROSS) \
+ USE_LOG=false USE_SELINUX=false \
+ udevdir=$(UDEV_ROOT) EXTRAS="extras/usb_id" -C $(UDEV_DIR)
+ $(INSTALL) -m 0755 -D $(UDEV_DIR)/extras/usb_id/usb_id $(TARGET_DIR)/lib/udev/usb_id
+ $(STRIP) --strip-unneeded $(TARGET_DIR)/lib/udev/usb_id
+
+udev-scsi_id: udev $(TARGET_DIR)/lib/udev/scsi_id
+
+udev-scsi_id-clean:
+ rm -f $(TARGET_DIR)/lib/udev/scsi_id
+
+udev-scsi_id-dirclean:
+ -$(MAKE) EXTRAS="extras/scsi_id" -C $(UDEV_DIR) clean
+endif
+
+udev-clean: udev-volume_id-clean udev-scsi_id-clean
rm -f $(TARGET_DIR)/etc/init.d/S10udev $(TARGET_DIR)/sbin/udev*
rm -f $(TARGET_DIR)/usr/sbin/udevmonitor $(TARGET_DIR)/usr/bin/udev*
rmdir $(TARGET_DIR)/sys
-$(MAKE) -C $(UDEV_DIR) clean
-udev-dirclean:
+udev-dirclean: udev-volume_id-dirclean udev-scsi_id-dirclean
rm -rf $(UDEV_DIR)
#############################################################
@@ -105,3 +127,7 @@ endif
ifeq ($(strip $(BR2_PACKAGE_UDEV_VOLUME_ID)),y)
TARGETS+=udev-volume_id
endif
+
+ifeq ($(strip $(BR2_PACKAGE_UDEV_SCSI_ID)),y)
+TARGETS+=udev-scsi_id
+endif