mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-28 07:21:32 +03:00
libudev: move to top-level directory
This commit is contained in:
parent
15a45c89e5
commit
48a9b173e8
@ -1,6 +1,7 @@
|
||||
include $(top_srcdir)/Makefile.am.inc
|
||||
|
||||
SUBDIRS = \
|
||||
libudev \
|
||||
udev \
|
||||
rules \
|
||||
extras
|
||||
|
@ -1,8 +1,8 @@
|
||||
AM_CPPFLAGS = \
|
||||
-include $(top_builddir)/config.h \
|
||||
-I$(top_builddir)/libudev \
|
||||
-DSYSCONFDIR=\""$(sysconfdir)"\" \
|
||||
-DUDEV_PREFIX=\""$(udev_prefix)"\" \
|
||||
-D_LIBUDEV_COMPILATION
|
||||
-DUDEV_PREFIX=\""$(udev_prefix)"\"
|
||||
|
||||
AM_CFLAGS =
|
||||
|
||||
|
@ -70,9 +70,9 @@ fi
|
||||
AC_CONFIG_HEADERS(config.h)
|
||||
AC_CONFIG_FILES([
|
||||
Makefile
|
||||
libudev/Makefile
|
||||
libudev/libudev.pc
|
||||
udev/Makefile
|
||||
udev/lib/Makefile
|
||||
udev/lib/libudev.pc
|
||||
rules/Makefile
|
||||
extras/Makefile
|
||||
extras/ata_id/Makefile
|
||||
|
@ -6,10 +6,10 @@ udevhome_PROGRAMS = \
|
||||
|
||||
ata_id_SOURCES = \
|
||||
ata_id.c \
|
||||
../../udev/lib/libudev.h \
|
||||
../../udev/lib/libudev.c \
|
||||
../../udev/lib/libudev-list.c \
|
||||
../../udev/lib/libudev-util.c
|
||||
../../udev/udev.h \
|
||||
../../libudev/libudev.c \
|
||||
../../libudev/libudev-list.c \
|
||||
../../libudev/libudev-util.c
|
||||
|
||||
dist_man_MANS = \
|
||||
ata_id.8
|
||||
|
@ -10,10 +10,10 @@ dist_udevrules_DATA = \
|
||||
|
||||
cdrom_id_SOURCES = \
|
||||
cdrom_id.c \
|
||||
../../udev/lib/libudev.h \
|
||||
../../udev/lib/libudev.c \
|
||||
../../udev/lib/libudev-list.c \
|
||||
../../udev/lib/libudev-util.c
|
||||
../../libudev/libudev.h \
|
||||
../../libudev/libudev.c \
|
||||
../../libudev/libudev-list.c \
|
||||
../../libudev/libudev-util.c
|
||||
|
||||
dist_man_MANS = \
|
||||
cdrom_id.8
|
||||
|
@ -6,7 +6,7 @@ udevhome_PROGRAMS = \
|
||||
|
||||
collect_SOURCES = \
|
||||
collect.c \
|
||||
../../udev/lib/libudev-private.h \
|
||||
../../udev/lib/libudev.c \
|
||||
../../udev/lib/libudev-util.c \
|
||||
../../udev/lib/libudev-list.c
|
||||
../../libudev/libudev-private.h \
|
||||
../../libudev/libudev.c \
|
||||
../../libudev/libudev-util.c \
|
||||
../../libudev/libudev-list.c
|
||||
|
@ -31,8 +31,8 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include "../../udev/lib/libudev.h"
|
||||
#include "../../udev/lib/libudev-private.h"
|
||||
#include "libudev.h"
|
||||
#include "libudev-private.h"
|
||||
|
||||
#define TMPFILE UDEV_PREFIX "/dev/.udev/collect"
|
||||
#define BUFSIZE 16
|
||||
|
@ -10,10 +10,10 @@ dist_udevrules_DATA = \
|
||||
|
||||
edd_id_SOURCES = \
|
||||
edd_id.c \
|
||||
../../udev/lib/libudev.h \
|
||||
../../udev/lib/libudev.c \
|
||||
../../udev/lib/libudev-list.c \
|
||||
../../udev/lib/libudev-util.c
|
||||
../../libudev/libudev.h \
|
||||
../../libudev/libudev.c \
|
||||
../../libudev/libudev-list.c \
|
||||
../../libudev/libudev-util.c
|
||||
|
||||
dist_man_MANS = \
|
||||
edd_id.8
|
||||
|
@ -6,12 +6,12 @@ udevhome_PROGRAMS = \
|
||||
|
||||
create_floppy_devices_SOURCES = \
|
||||
create_floppy_devices.c \
|
||||
../../udev/lib/libudev.h \
|
||||
../../udev/lib/libudev.c \
|
||||
../../udev/lib/libudev-list.c \
|
||||
../../udev/lib/libudev-util.c \
|
||||
../../udev/lib/libudev-device.c \
|
||||
../../udev/lib/libudev-enumerate.c \
|
||||
../../libudev/libudev.h \
|
||||
../../libudev/libudev.c \
|
||||
../../libudev/libudev-list.c \
|
||||
../../libudev/libudev-util.c \
|
||||
../../libudev/libudev-device.c \
|
||||
../../libudev/libudev-enumerate.c \
|
||||
../../udev/udev-util.c
|
||||
|
||||
if USE_SELINUX
|
||||
|
@ -10,8 +10,8 @@ dist_udevrules_DATA = \
|
||||
|
||||
fstab_import_SOURCES = \
|
||||
fstab_import.c \
|
||||
../../udev/lib/libudev.h \
|
||||
../../udev/lib/libudev.c \
|
||||
../../udev/lib/libudev-list.c \
|
||||
../../udev/lib/libudev-util.c
|
||||
../../libudev/libudev.h \
|
||||
../../libudev/libudev.c \
|
||||
../../libudev/libudev-list.c \
|
||||
../../libudev/libudev-util.c
|
||||
|
||||
|
@ -6,12 +6,12 @@ udevhome_PROGRAMS = \
|
||||
|
||||
path_id_SOURCES = \
|
||||
path_id.c \
|
||||
../../udev/lib/libudev.h \
|
||||
../../udev/lib/libudev.c \
|
||||
../../udev/lib/libudev-device.c \
|
||||
../../udev/lib/libudev-enumerate.c \
|
||||
../../udev/lib/libudev-list.c \
|
||||
../../udev/lib/libudev-util.c
|
||||
../../libudev/libudev.h \
|
||||
../../libudev/libudev.c \
|
||||
../../libudev/libudev-device.c \
|
||||
../../libudev/libudev-enumerate.c \
|
||||
../../libudev/libudev-list.c \
|
||||
../../libudev/libudev-util.c
|
||||
|
||||
dist_man_MANS = \
|
||||
path_id.8
|
||||
|
@ -28,8 +28,8 @@
|
||||
#include <dirent.h>
|
||||
#include <getopt.h>
|
||||
|
||||
#include <../../udev/lib/libudev.h>
|
||||
#include <../../udev/udev.h>
|
||||
#include "libudev.h"
|
||||
#include "../../udev/udev.h"
|
||||
|
||||
int debug;
|
||||
|
||||
@ -366,7 +366,7 @@ int main(int argc, char **argv)
|
||||
if (udev == NULL)
|
||||
goto exit;
|
||||
|
||||
logging_init("usb_id");
|
||||
logging_init("path_id");
|
||||
udev_set_log_fn(udev, log_fn);
|
||||
|
||||
while (1) {
|
||||
|
@ -10,10 +10,10 @@ scsi_id_SOURCES = \
|
||||
scsi.h \
|
||||
scsi_id.h \
|
||||
bsg.h \
|
||||
../../udev/lib/libudev.h \
|
||||
../../udev/lib/libudev.c \
|
||||
../../udev/lib/libudev-list.c \
|
||||
../../udev/lib/libudev-util.c
|
||||
../../libudev/libudev.h \
|
||||
../../libudev/libudev.c \
|
||||
../../libudev/libudev-list.c \
|
||||
../../libudev/libudev-util.c
|
||||
|
||||
dist_sysconf_DATA = \
|
||||
scsi_id.config
|
||||
|
@ -6,12 +6,12 @@ udevhome_PROGRAMS = \
|
||||
|
||||
usb_id_SOURCES = \
|
||||
usb_id.c \
|
||||
../../udev/lib/libudev.h \
|
||||
../../udev/lib/libudev.c \
|
||||
../../udev/lib/libudev-list.c \
|
||||
../../udev/lib/libudev-util.c \
|
||||
../../udev/lib/libudev-device.c \
|
||||
../../udev/lib/libudev-enumerate.c
|
||||
../../libudev/libudev.h \
|
||||
../../libudev/libudev.c \
|
||||
../../libudev/libudev-list.c \
|
||||
../../libudev/libudev-util.c \
|
||||
../../libudev/libudev-device.c \
|
||||
../../libudev/libudev-enumerate.c
|
||||
|
||||
dist_man_MANS = \
|
||||
usb_id.8
|
||||
|
@ -28,7 +28,7 @@ libudev_la_SOURCES =\
|
||||
|
||||
libudev_la_LDFLAGS = \
|
||||
-version-info $(LIBUDEV_LT_CURRENT):$(LIBUDEV_LT_REVISION):$(LIBUDEV_LT_AGE) \
|
||||
-export-symbols $(top_srcdir)/udev/lib/exported_symbols
|
||||
-export-symbols $(top_srcdir)/libudev/exported_symbols
|
||||
|
||||
pkgconfigdir = $(prefix)/$(libdir_name)/pkgconfig
|
||||
pkgconfig_DATA = libudev.pc
|
@ -16,11 +16,6 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
/* this will stay as long as the DeviceKit integration of udev is work in progress */
|
||||
#if !defined _LIBUDEV_COMPILATION && !defined LIBUDEV_I_KNOW_THE_API_IS_SUBJECT_TO_CHANGE
|
||||
#error "#define LIBUDEV_I_KNOW_THE_API_IS_SUBJECT_TO_CHANGE is needed to use this experimental library version"
|
||||
#endif
|
||||
|
||||
/*
|
||||
* udev - library context
|
||||
*
|
@ -1,8 +1,5 @@
|
||||
include $(top_srcdir)/Makefile.am.inc
|
||||
|
||||
SUBDIRS = \
|
||||
lib
|
||||
|
||||
sbin_PROGRAMS = \
|
||||
udevd \
|
||||
udevadm
|
||||
@ -19,18 +16,18 @@ common_files = \
|
||||
udev-node.c \
|
||||
udev-rules.c \
|
||||
udev-util.c \
|
||||
lib/libudev.h \
|
||||
lib/libudev-private.h \
|
||||
lib/libudev.c \
|
||||
lib/libudev-list.c \
|
||||
lib/libudev-util.c \
|
||||
lib/libudev-device.c \
|
||||
lib/libudev-device-db-write.c \
|
||||
lib/libudev-monitor.c \
|
||||
lib/libudev-enumerate.c \
|
||||
lib/libudev-queue.c \
|
||||
lib/libudev-queue-export.c \
|
||||
lib/libudev-ctrl.c
|
||||
../libudev/libudev.h \
|
||||
../libudev/libudev-private.h \
|
||||
../libudev/libudev.c \
|
||||
../libudev/libudev-list.c \
|
||||
../libudev/libudev-util.c \
|
||||
../libudev/libudev-device.c \
|
||||
../libudev/libudev-device-db-write.c \
|
||||
../libudev/libudev-monitor.c \
|
||||
../libudev/libudev-enumerate.c \
|
||||
../libudev/libudev-queue.c \
|
||||
../libudev/libudev-queue-export.c \
|
||||
../libudev/libudev-ctrl.c
|
||||
|
||||
if USE_SELINUX
|
||||
common_files += \
|
||||
|
@ -22,8 +22,8 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
|
||||
#include "lib/libudev.h"
|
||||
#include "lib/libudev-private.h"
|
||||
#include "libudev.h"
|
||||
#include "libudev-private.h"
|
||||
|
||||
#define DEFAULT_FAKE_PARTITIONS_COUNT 15
|
||||
#define UDEV_EVENT_TIMEOUT 180
|
||||
|
Loading…
Reference in New Issue
Block a user