[PATCH] new version of libsysfs patch

Here's the patch applying the latest libsysfs.
	- adds the latest libsysfs code to udev
		* new code includes dlist implementation, a generic linked list
			implementation. Needed our own because LGPL
		* rearranged structures
		* provided more functions for accessing directory and attributes
	- gets rid of ->directory->path references in namedev.c
	- replaces sysfs_get_value_from_attributes with sysfs_get_classdev_attr
This commit is contained in:
dsteklof@us.ibm.com
2005-04-26 21:01:42 -07:00
committed by Greg KH
parent 3370fb2152
commit fe3fe3b29f
12 changed files with 2606 additions and 545 deletions
+6 -3
View File
@@ -1,15 +1,15 @@
# Makefile for libsysfs.a
# Copyright (c) International Business Machines Corp., 2003
H_INCLUDE=../include
H_INCLUDE=.
LIB_INCLUDE=.
OBJS=sysfs_bus.o sysfs_class.o sysfs_device.o sysfs_dir.o sysfs_driver.o \
sysfs_utils.o
sysfs_utils.o dlist.o
# Install directory
# Options
CFLAGS=-O2 -Wall -ansi -g
CFLAGS=-O2 -Wall -g
# sysfs library
LIBSYSFS=libsysfs.a
@@ -38,5 +38,8 @@ sysfs_driver.o: sysfs_driver.c
sysfs_utils.o: sysfs_utils.c
$(CC) -I$(H_INCLUDE) -I$(LIB_INCLUDE) $(CFLAGS) -c sysfs_utils.c
dlist.o: dlist.c
$(CC) -I$(H_INCLUDE) -I$(LIB_INCLUDE) $(CFLAGS) -c dlist.c
clean:
$(RM) *.o *~ core $(LIBSYSFS)