From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick Mansfield Date: Thu, 14 Oct 2004 20:43:13 +0000 Subject: [udev PATCH] pass SYSFS setting down for extras builds Message-Id: <20041014204313.GA12296@beaverton.ibm.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Modify SYSFS to specify the full path, and pass it down for the extras builds. Change the scsi_id Makefile so it will work with and without udev. === Makefile 1.191 vs edited ==--- 1.191/Makefile Wed Oct 13 17:43:35 2004 +++ edited/Makefile Thu Oct 14 13:33:24 2004 @@ -183,6 +183,7 @@ echo $$target ; \ $(MAKE) prefix=$(prefix) \ LD="$(LD)" \ + SYSFS="$(SYSFS)" \ KERNEL_DIR="$(KERNEL_DIR)" \ -C $$target $@ ; \ done ; \ @@ -198,13 +199,13 @@ TDB = tdb/tdb.o \ tdb/spinlock.o -SYSFS = libsysfs/sysfs_bus.o \ - libsysfs/sysfs_class.o \ - libsysfs/sysfs_device.o \ - libsysfs/sysfs_dir.o \ - libsysfs/sysfs_driver.o \ - libsysfs/sysfs_utils.o \ - libsysfs/dlist.o +SYSFS = $(PWD)/libsysfs/sysfs_bus.o \ + $(PWD)/libsysfs/sysfs_class.o \ + $(PWD)/libsysfs/sysfs_device.o \ + $(PWD)/libsysfs/sysfs_dir.o \ + $(PWD)/libsysfs/sysfs_driver.o \ + $(PWD)/libsysfs/sysfs_utils.o \ + $(PWD)/libsysfs/dlist.o OBJS = udev_lib.o \ udev_config.o \ === extras/scsi_id/Makefile 1.8 vs edited ==--- 1.8/extras/scsi_id/Makefile Wed Oct 13 16:38:08 2004 +++ edited/extras/scsi_id/Makefile Thu Oct 14 13:34:38 2004 @@ -31,14 +31,8 @@ override CFLAGS+=-Wall -fno-builtin PROG=scsi_id +SYSFS=-lsysfs -SYSFS = ../../libsysfs/sysfs_bus.o \ - ../../libsysfs/sysfs_class.o \ - ../../libsysfs/sysfs_device.o \ - ../../libsysfs/sysfs_dir.o \ - ../../libsysfs/sysfs_driver.o \ - ../../libsysfs/sysfs_utils.o \ - ../../libsysfs/dlist.o # # Built static and stripped when built with udev. # ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel