mirror of
https://github.com/xomboverlord/buildtools.git
synced 2026-04-29 07:01:31 +02:00
lspci build script works
This commit is contained in:
39
pciutils.sh
Executable file
39
pciutils.sh
Executable file
@@ -0,0 +1,39 @@
|
||||
|
||||
source scripts/functions.sh
|
||||
|
||||
# --- Variables ---
|
||||
|
||||
source scripts/nativevars.sh
|
||||
|
||||
|
||||
# --- Directory creation ---
|
||||
|
||||
mkdir -p build
|
||||
mkdir -p $PREFIX
|
||||
cd build
|
||||
|
||||
setphase "MAKE OBJECT DIRECTORIES"
|
||||
mkdir -p pciutils-obj
|
||||
|
||||
PCIUTILS_VER=3.1.9
|
||||
|
||||
# --- Fetch and extract each package ---
|
||||
wget $WFLAGS ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/pciutils-${PCIUTILS_VER}.tar.gz
|
||||
tar -xf pciutils-${PCIUTILS_VER}.tar.gz
|
||||
|
||||
doPatch pciutils
|
||||
|
||||
# --- Compile all packages ---
|
||||
|
||||
setphase "COMPILE PCIUTILS"
|
||||
cd pciutils-obj
|
||||
cp -R ../pciutils-${PCIUTILS_VER}/* . || exit
|
||||
|
||||
FLAGS="ZLIB=no DNS=no SHARED=no PREFIX=$PREFIX HOST=$TARGET CROSS_COMPILE=${TARGET}-"
|
||||
|
||||
CMD="make -j$NCPU $FLAGS"
|
||||
echo ${CMD}
|
||||
${CMD} LDFLAGS="-g -T../../../xomb/app/build/elf.ld" || exit
|
||||
setphase "INSTALL PCIUTILS"
|
||||
make install $FLAGS LDFLAGS="${LDFLAGS}" || exit
|
||||
cd ..
|
||||
Reference in New Issue
Block a user