mirror of
https://github.com/dslm4515/BMLFS.git
synced 2025-08-20 14:31:47 +00:00
Upgraded pciutils from 3.10.0 to 3.12.0
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
#! /bin/bash
|
||||
|
||||
# PCI Utils
|
||||
# Source: https://mj.ucw.cz/download/linux/pci/pciutils-3.10.0.tar.gz
|
||||
# Source: https://mj.ucw.cz/download/linux/pci/pciutils-3.12.0.tar.gz
|
||||
#
|
||||
# $BUILD = Directory to temporarily install
|
||||
# $PKGS = Directory to store built packages
|
||||
@ -16,6 +16,10 @@ export CFLAGS="-march=native -pipe "
|
||||
export CFLAGS+="-O3 -ffat-lto-objects -flto=4 "
|
||||
export LDFLAGS="-flto=4 -Wl,-O2 -Wl,--as-needed "
|
||||
|
||||
# If compiling with clang-17, set these compiler flag
|
||||
export CFLAGS+="-Wno-implicit-function-declaration "
|
||||
export CFLAGS+="-Wno-int-conversion "
|
||||
|
||||
read -p "Compile?" &&
|
||||
make OPT="$CFLAGS" ZLIB=no \
|
||||
SHARED=yes \
|
||||
@ -33,6 +37,10 @@ sudo -S chmod -v 755 ${BUILD}/usr/lib/libpci.so &&
|
||||
sudo -S mkdir -pv /BMAN/install
|
||||
sudo -S mkdir -pv /BMAN/usr/share
|
||||
sudo -S mv $BUILD/usr/share/man /BMAN/usr/share/
|
||||
unset CFLAGS
|
||||
|
||||
# If hwdata was already installed, remove possibly outdated pci ID's
|
||||
sudo rm -rf $BUILD/usr/share/hwdata
|
||||
|
||||
cd $BUILD && sudo -S mkdir -v ${BUILD}/install &&
|
||||
cat > /tmp/slack-desc << "EOF"
|
||||
@ -57,7 +65,7 @@ pciutils:
|
||||
pciutils: See the manual pages for more details.
|
||||
EOF
|
||||
sudo -S mv -v /tmp/slack-desc install/ &&
|
||||
sudo -S makepkg -l y -c n $PKGS/pciutils-3.10.0-${PSUFFIX} &&
|
||||
sudo -S makepkg -l y -c n $PKGS/pciutils-3.12.0-${PSUFFIX} &&
|
||||
cd /BMAN
|
||||
cat > /tmp/slack-desc << "EOF"
|
||||
pciutils-doc: Manuals for pciutils (PCI utilities)
|
||||
@ -72,6 +80,6 @@ pciutils-doc: pcimodules lists the kernel modules for all plugged in PCI devices
|
||||
pciutils-doc:
|
||||
EOF
|
||||
sudo -S mv -v /tmp/slack-desc install/ &&
|
||||
sudo -S makepkg -l y -c n $PKGS/pciutils-doc-3.10.0-${NOPSUFFIX}
|
||||
sudo -S makepkg -l y -c n $PKGS/pciutils-doc-3.12.0-${NOPSUFFIX}
|
||||
sudo -S rm -rf /BMAN/*
|
||||
sudo -S rm -rf ${BUILD}/*
|
||||
|
Reference in New Issue
Block a user