guowenxue
2021-01-08 2e9da8d42bd99ad46ce705e45f5c6e4488bd788d
Add setup_libgpiod.sh setup_systools.sh
2 files added
28 ■■■■■ changed files
tools/setup_libgpiod.sh 21 ●●●●● patch | view | raw | blame | history
tools/setup_systools.sh 7 ●●●●● patch | view | raw | blame | history
tools/setup_libgpiod.sh
New file
@@ -0,0 +1,21 @@
#/bin/bash
# This shell script used install libgpiod library
set -e
APP_NAME=libgpiod-1.6.2
if [ ! -f ${APP_NAME}.tar.gz ] ; then
   wget https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/snapshot/${APP_NAME}.tar.gz
fi
if [ ! -d ${APP_NAME} ] ; then
   tar -xzf ${APP_NAME}.tar.gz
fi
cd ${APP_NAME}
./autogen.sh
./configure --enable-tools=yes --prefix=/usr
make
sudo make install
tools/setup_systools.sh
New file
@@ -0,0 +1,7 @@
#!/bin/bash
sudo apt update
sudo apt install -y make vim gawk wget curl unzip sed tree coreutils diffstat git subversion groff lzop \
make gcc g++ libtool automake autoconf autoconf-archive flex texinfo build-essential libelf-dev bison