Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 1 addition & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,10 @@ jobs:
- debian:stable
- debian:bookworm
- debian:bullseye
- debian:buster
# Fails on configure on GCC and clang (process restrictions?)
# - fedora:rawhide
- fedora:latest
- fedora:42
- fedora:41
- fedora:40
- fedora:39
- fedora:38
- fedora:37
- ubuntu:latest
- ubuntu:oracular
- ubuntu:noble
- ubuntu:jammy
- ubuntu:focal
Expand Down Expand Up @@ -86,14 +78,6 @@ jobs:
pkg_config_path: /usr/lib/i386-linux-gnu/pkgconfig
variant: i386

- container: "debian:buster"
arch: i386
family: x86
compiler: gcc -m32
cross_compile: i686-linux-gnu
pkg_config_path: /usr/lib/i386-linux-gnu/pkgconfig
variant: i386

# Debian cross compilation builds
- container: "debian:testing"
arch: armhf
Expand Down Expand Up @@ -183,7 +167,7 @@ jobs:
echo "PKG_CONFIG_PATH: $PKG_CONFIG_PATH"

- name: Git checkout
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: Install additional packages
run: |
Expand Down
3 changes: 2 additions & 1 deletion cdba.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,8 @@ static void cdba_queue_data(int type, size_t len, const void *buf)
item->type = type;
item->len = len;
item->fd = -1;
memcpy(item->payload, buf, len);
if (len)
memcpy(item->payload, buf, len);

list_append(&tx_queue, &item->node);
}
Expand Down
1 change: 1 addition & 0 deletions ci/alpine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ case $CC in
esac

apk add \
build-base \
linux-headers \
libftdi1-dev \
yaml-dev \
Expand Down
3 changes: 2 additions & 1 deletion ci/debian.cross-compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ dpkg --add-architecture $ARCH
apt update

apt install -y --no-install-recommends \
libftdi-dev:${ARCH} \
libc6-dev:${ARCH} \
libftdi1-dev:${ARCH} \
libudev-dev:${ARCH} \
libyaml-dev:${ARCH} \
libgpiod-dev:${ARCH} \
Expand Down
2 changes: 1 addition & 1 deletion ci/debian.i386.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ apt install -y --no-install-recommends \
linux-libc-dev:i386

apt install -y --no-install-recommends \
libftdi-dev:i386 \
libftdi1-dev:i386 \
libudev-dev:i386 \
libyaml-dev:i386 \
libgpiod-dev:i386 \
Expand Down
2 changes: 1 addition & 1 deletion ci/debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ esac

apt install -y --no-install-recommends \
pkg-config \
libftdi-dev \
libftdi1-dev \
libudev-dev \
libyaml-dev \
libgpiod-dev \
Expand Down
2 changes: 1 addition & 1 deletion drivers/local-gpio-v1.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ int local_gpio_init(struct local_gpio *local_gpio)
int i;

for (i = 0; i < GPIO_COUNT; ++i) {
struct gpiod_line_request_config cfg;
struct gpiod_line_request_config cfg = { 0 };

if (!local_gpio->options->gpios[i].present)
continue;
Expand Down
10 changes: 6 additions & 4 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,12 @@ cdbalib_deps = [dependency('libudev', required: server_opt),
gpiod_dep,
ftdi_dep]

# E.g. Debian reuires -lutil for forkpty
if not compiler.has_function('forkpty')
util_dep = compiler.find_library('util')
cdbalib_deps += util_dep
# E.g. Debian requires -lutil for forkpty
if not compiler.has_function('forkpty', prefix: '#include <pty.h>')
util_dep = compiler.find_library('util', required: false)
if util_dep.found()
cdbalib_deps += util_dep
endif
endif

drivers_srcs = ['drivers/alpaca.c',
Expand Down
Loading