Skip to content

Commit

Permalink
staging: usbip: userspace: remove usb.ids file
Browse files Browse the repository at this point in the history
Inclusion of the usb.ids file is redundant. USBIDS_DIR is set in
configure.ac to a default of /usr/share/hwdata/. This can be
overridden using `./configure --with-usbids-dir=<dir>'.

Signed-off-by: matt mooney <mfm@muteddisk.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
matt mooney authored and Greg Kroah-Hartman committed Jul 6, 2011
1 parent d8bfbf6 commit 7ddf1a0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 13,230 deletions.
5 changes: 0 additions & 5 deletions drivers/staging/usbip/userspace/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,3 @@ include_HEADERS := $(addprefix libsrc/, \
usbip.h usbip_common.h vhci_driver.h stub_driver.h)

dist_man_MANS := $(addprefix doc/, usbip.8 usbipd.8 usbip_bind_driver.8)

if INSTALL_USBIDS
pkgdata_DATA := usb.ids
EXTRA_DIST := $(pkgdata_DATA)
endif
18 changes: 2 additions & 16 deletions drivers/staging/usbip/userspace/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -85,26 +85,12 @@ AC_ARG_WITH([tcp-wrappers],
[AC_MSG_RESULT([no]); LIBS="$saved_LIBS"])])

# Sets directory containing usb.ids.
USBIDS_DIR='${datadir}/usbip'
AC_ARG_WITH([usbids-dir],
[AS_HELP_STRING([--with-usbids-dir=DIR],
[where usb.ids is found (default ${datadir}/usbip)])],
[USBIDS_DIR=$withval])
[where usb.ids is found (default /usr/share/hwdata/)])],
[USBIDS_DIR=$withval], [USBIDS_DIR="/usr/share/hwdata/"])
AC_SUBST([USBIDS_DIR])

dnl FIXME: when disabled, empty directry is created
usbids=install
AC_ARG_ENABLE([usbids-install],
[AS_HELP_STRING([--enable-usbids-install],
[install usb.ids (default)])],
[AS_CASE([$enableval],
[yes], [usbids=install],
[no], [usbids=notinstall],
[AC_MSG_ERROR(
[bad value ${enableval} for --enable-usbids-install])]
)])
AM_CONDITIONAL([INSTALL_USBIDS], [test x$usbids = xinstall])

GLIB2_REQUIRED=2.6.0
PKG_CHECK_MODULES([PACKAGE], [glib-2.0 >= $GLIB2_REQUIRED])
AC_SUBST([PACKAGE_CFLAGS])
Expand Down
Loading

0 comments on commit 7ddf1a0

Please sign in to comment.