summaryrefslogtreecommitdiffstats
path: root/package/udev/udev.mk
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2009-02-13 19:57:59 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2009-02-13 19:57:59 +0000
commit7892b23ae7891834f14b7cf478852b2b529bb3cb (patch)
tree155bc6aade8d3da7f8e810a3eface66c21ac9f5a /package/udev/udev.mk
parent8acde59f795d155b4648b1abfeb7830371a10b2a (diff)
downloadbuildroot-novena-7892b23ae7891834f14b7cf478852b2b529bb3cb.tar.gz
buildroot-novena-7892b23ae7891834f14b7cf478852b2b529bb3cb.zip
udev: options for path_id and firmware.sh
Patch by Mike Crowe.
Diffstat (limited to 'package/udev/udev.mk')
-rw-r--r--package/udev/udev.mk56
1 files changed, 56 insertions, 0 deletions
diff --git a/package/udev/udev.mk b/package/udev/udev.mk
index 434ade234..c4c5e36cf 100644
--- a/package/udev/udev.mk
+++ b/package/udev/udev.mk
@@ -154,6 +154,54 @@ UDEV_CLEAN_DEPS+=udev-scsi_id-clean
UDEV_DIRCLEAN_DEPS+=udev-scsi_id-dirclean
endif
+#####################################################################
+ifeq ($(BR2_PACKAGE_UDEV_PATH_ID),y)
+.PHONY: udev-path_id udev-path_id-clean udev-path_id-dirclean
+
+$(TARGET_DIR)/lib/udev/path_id: $(STAGING_DIR)/usr/lib/libvolume_id.so.$(UDEV_VOLUME_ID_VERSION)
+ $(MAKE) CROSS_COMPILE=$(TARGET_CROSS) \
+ CFLAGS="$(BR2_UDEV_CFLAGS)" \
+ USE_LOG=false USE_SELINUX=false \
+ udevdir=$(UDEV_ROOT) EXTRAS="extras/path_id" -C $(UDEV_DIR)
+ $(INSTALL) -m 0755 -D $(UDEV_DIR)/extras/path_id/path_id $@
+
+udev-path_id: udev $(TARGET_DIR)/lib/udev/path_id
+
+udev-path_id-clean:
+ rm -f $(TARGET_DIR)/lib/udev/path_id
+ rmdir --ignore-fail-on-non-empty $(TARGET_DIR)/lib/udev
+
+udev-path_id-dirclean:
+ -$(MAKE) EXTRAS="extras/path_id" -C $(UDEV_DIR) clean
+
+UDEV_CLEAN_DEPS+=udev-path_id-clean
+UDEV_DIRCLEAN_DEPS+=udev-path_id-dirclean
+endif
+
+#####################################################################
+ifeq ($(BR2_PACKAGE_UDEV_FIRMWARE_SH),y)
+.PHONY: udev-firmware_sh udev-firmware_sh-clean udev-firmware_sh-dirclean
+
+$(TARGET_DIR)/lib/udev/firmware.sh: $(STAGING_DIR)/usr/lib/libvolume_id.so.$(UDEV_VOLUME_ID_VERSION)
+ $(MAKE) CROSS_COMPILE=$(TARGET_CROSS) \
+ CFLAGS="$(BR2_UDEV_CFLAGS)" \
+ USE_LOG=false USE_SELINUX=false \
+ udevdir=$(UDEV_ROOT) EXTRAS="extras/firmware" -C $(UDEV_DIR)
+ $(INSTALL) -m 0755 -D $(UDEV_DIR)/extras/firmware/firmware.sh $@
+
+udev-firmware_sh: udev $(TARGET_DIR)/lib/udev/firmware.sh
+
+udev-firmware_sh-clean:
+ rm -f $(TARGET_DIR)/lib/udev/firmware.sh
+ rmdir --ignore-fail-on-non-empty $(TARGET_DIR)/lib/udev
+
+udev-firmware_sh-dirclean:
+ -$(MAKE) EXTRAS="extras/firmware" -C $(UDEV_DIR) clean
+
+UDEV_CLEAN_DEPS+=udev-firmware_sh-clean
+UDEV_DIRCLEAN_DEPS+=udev-firmware_sh-dirclean
+endif
+
#############################################################
#
# Toplevel Makefile options
@@ -170,3 +218,11 @@ endif
ifeq ($(BR2_PACKAGE_UDEV_SCSI_ID),y)
TARGETS+=udev-scsi_id
endif
+
+ifeq ($(BR2_PACKAGE_UDEV_PATH_ID),y)
+TARGETS+=udev-path_id
+endif
+
+ifeq ($(BR2_PACKAGE_UDEV_FIRMWARE_SH),y)
+TARGETS+=udev-firmware_sh
+endif