mirror of
https://github.com/dslm4515/BMLFS.git
synced 2025-08-20 14:31:47 +00:00
Upgraded usbutils from 015 to 017
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
#! /bin/bash
|
||||
|
||||
# usbutils
|
||||
# Source: https://github.com/gregkh/usbutils/archive/v015/usbutils-015.tar.gz
|
||||
# Source: https://kernel.org/pub/linux/utils/usb/usbutils/usbutils-017.tar.xz
|
||||
#
|
||||
# $BUILD = Directory to temporarily install
|
||||
# $PKGS = Directory to store built packages
|
||||
@ -16,8 +16,6 @@ export CFLAGS="-march=native -mtune=native -pipe "
|
||||
export CFLAGS+="-O3 -ffat-lto-objects -flto=4 "
|
||||
export LDFLAGS="-flto=4 -Wl,-O2 -Wl,--as-needed "
|
||||
|
||||
patch -Np1 -i ../patches/usbutils-alpine/hwdata.patch &&
|
||||
|
||||
autoreconf -fiv &&
|
||||
./configure --prefix=/usr --datadir=/usr/share/hwdata $BUILDTRUPLE &&
|
||||
read -p "Compile?" && make -j2 &&
|
||||
@ -54,7 +52,7 @@ usbutils:
|
||||
usbutils:
|
||||
EOF
|
||||
sudo -S mv -v /tmp/slack-desc install/ &&
|
||||
sudo -S makepkg -l y -c n $PKGS/usbutils-015-$PSUFFIX &&
|
||||
sudo -S makepkg -l y -c n $PKGS/usbutils-017-$PSUFFIX &&
|
||||
cd /BMAN
|
||||
cat > /tmp/slack-desc << "EOF"
|
||||
usbutils-doc: Manuals for usbutils (USB utilities)
|
||||
@ -66,6 +64,6 @@ usbutils-doc: usbmodules lists the kernel modules for a plugged in USB device.
|
||||
usbutils-doc:
|
||||
EOF
|
||||
sudo -S mv -v /tmp/slack-desc install/ &&
|
||||
sudo -S makepkg -l y -c n $PKGS/usbutils-doc-015-$NOPSUFFIX
|
||||
sudo -S makepkg -l y -c n $PKGS/usbutils-doc-017-$NOPSUFFIX
|
||||
sudo -S rm -rf /BMAN/*
|
||||
sudo -S rm -rf ${BUILD}/*
|
||||
|
@ -1,20 +0,0 @@
|
||||
--- a/lsusb.py.in 2019-05-07 16:35:51.000000000 +0200
|
||||
+++ b/lsusb.py.in 2019-08-15 19:15:29.010497407 +0200
|
||||
@@ -67,7 +67,7 @@
|
||||
return type('MyEnum', (), enums)
|
||||
|
||||
def parse_usb_ids():
|
||||
- "Parse /usr/share/usb.ids and fill usbvendors, usbproducts, usbclasses"
|
||||
+ "Parse /usr/share/hwdata/usb.ids and fill usbvendors, usbproducts, usbclasses"
|
||||
vid = 0
|
||||
did = 0
|
||||
modes = myenum('Vendor', 'Class', 'Misc')
|
||||
@@ -463,7 +463,7 @@
|
||||
print(" -C, --no-color disable colors")
|
||||
print(" -e, --endpoints display endpoint info")
|
||||
print(" -f FILE, --usbids-path FILE")
|
||||
- print(" override filename for /usr/share/usb.ids")
|
||||
+ print(" override filename for /usr/share/hwdata/usb.ids")
|
||||
print()
|
||||
print("Use lsusb.py -ciu to get a nice overview of your USB devices.")
|
||||
|
Reference in New Issue
Block a user