Skip to content

Commit 2fc323f

Browse files
committed
Only include libgpiod adapter on RPi
1 parent 8139329 commit 2fc323f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

build_linux.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,13 @@ SKIP_RISCV=${SKIP_RISCV-0}
77
SKIP_OPENOCD=${SKIP_OPENOCD-0}
88

99
# Install prerequisites
10-
sudo apt install -y jq cmake libtool automake libusb-1.0-0-dev libhidapi-dev libftdi1-dev libgpiod-dev
10+
sudo apt install -y jq cmake libtool automake libusb-1.0-0-dev libhidapi-dev libftdi1-dev
1111
# RISC-V prerequisites
1212
sudo apt install -y autoconf automake autotools-dev curl python3 python3-pip libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc zlib1g-dev ninja-build git cmake libglib2.0-dev libslirp-dev
13+
# RPi Only prerequisites
14+
if [[ $(uname -m) == 'aarch64' ]]; then
15+
sudo apt install -y libgpiod-dev
16+
fi
1317

1418
repos=$(cat config/repositories.json | jq -c '.repositories[]')
1519
export version=$(cat ./version.txt)

0 commit comments

Comments
 (0)