Skip to content

Commit

Permalink
build hwsupport with submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
ekandler committed Dec 14, 2017
1 parent 84a9a74 commit 60d20f4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 29 deletions.
11 changes: 6 additions & 5 deletions hwsupport/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 3,21 @@
set -e
BASEDIR=$(dirname "$0")
source $BASEDIR/../config.sh
cd $BASEDIR/src

sudo rm -rf /opt/hwsupport || true

cd libva-$LIBVA_VERSION
./configure --prefix=/opt/hwsupport
make
cd libva
./autogen.sh --prefix=/opt/hwsupport
make -j`nproc`
sudo make install
cd ..

export PKG_CONFIG_PATH=/opt/hwsupport/lib/pkgconfig

cd intel-vaapi-driver-$LIBVA_VERSION
cd intel-vaapi-driver
./configure --prefix=/opt/hwsupport
make
make -j `nproc`
sudo make install
cd ..

Expand Down
28 changes: 4 additions & 24 deletions hwsupport/fetch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 4,8 @@ set -e
BASEDIR=$(dirname "$0")
source $BASEDIR/../config.sh

if [ -e $BASEDIR/../gf-hwsupport.tar.gz ]; then
rm $BASEDIR/../gf-hwsupport.tar.gz
fi
git submodule init src
git submodule update src

sudo rm -rf src || true
mkdir src

# libva
if [ ! -e "libva-$LIBVA_VERSION.tar.bz2" ]; then
wget https://github.com/01org/libva/releases/download/$LIBVA_VERSION/libva-$LIBVA_VERSION.tar.bz2
fi
if [ ! -d libva-$LIBVA_VERSION ]; then
tar xvf libva-$LIBVA_VERSION.tar.bz2
fi
mv libva-$LIBVA_VERSION src/

# libva-intel-driver
if [ ! -e "intel-vaapi-driver-$LIBVA_VERSION.tar.bz2" ]; then
wget https://github.com/01org/intel-vaapi-driver/releases/download/$LIBVA_VERSION/intel-vaapi-driver-$LIBVA_VERSION.tar.bz2
fi
if [ ! -d intel-vaapi-driver-$LIBVA_VERSION ]; then
tar xvf intel-vaapi-driver-$LIBVA_VERSION.tar.bz2
fi

mv intel-vaapi-driver-$LIBVA_VERSION src/
echo "src fetch successful"
exit 0

0 comments on commit 60d20f4

Please sign in to comment.