Skip to content

Commit 78516cc

Browse files
authored
Merge pull request #6 from Helaas/main
Add LZ4 to the toolchain image build
2 parents 233010a + 255eb96 commit 78516cc

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ COPY support .
9292
RUN ./build-libzip.sh
9393
RUN ./build-bluez.sh
9494
RUN ./build-libsamplerate.sh
95-
95+
RUN ./build-lz4.sh
9696

9797
ENV UNION_PLATFORM=tg5040
9898
# do we still need this?

support/build-lz4.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#! /bin/bash
2+
3+
set -euo pipefail
4+
5+
# lz4
6+
git clone --depth=1 --branch v1.10.0 https://github.com/lz4/lz4.git /tmp/lz4 && \
7+
cd /tmp/lz4 && \
8+
make CC=$CC PREFIX=$SYSROOT/usr -j$(nproc) && \
9+
make CC=$CC PREFIX=$SYSROOT/usr install && \
10+
cd /tmp && rm -rf /tmp/lz4

0 commit comments

Comments
 (0)