Files
buildtools/pciutils.sh
2012-06-14 16:37:20 -07:00

40 lines
814 B
Bash
Executable File

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 ..