Add setup_libgpiod.sh setup_systools.sh
New file |
| | |
| | | #/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 |
New file |
| | |
| | | #!/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 |
| | | |