Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
aler9 committed Aug 17, 2024
1 parent 30e620a commit d067cdf
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 17 deletions.
1 change: 0 additions & 1 deletion .github/FUNDING.yml

This file was deleted.

3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
RPI_IMAGE = balenalib/raspberry-pi:bullseye
UBUNTU_IMAGE = ubuntu:22.04

all: build-direct

include scripts/*.mk
4 changes: 2 additions & 2 deletions Makefile.src
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ LDFLAGS += -L/opt/vc/lib \
all: $(BIN)

%.o: %.c
gcc $(CFLAGS) -c $< -o $@
$(CC) $(CFLAGS) -c $< -o $@

$(BIN): $(OBJECTS)
gcc $(OBJECTS) $(LDFLAGS) -o $@
$(CC) $(OBJECTS) $(LDFLAGS) -o $@
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,15 @@ This tool is intended to:
2. Install the dependencies:

```
sudo apt install -y git make gcc libc6-dev libi2c-dev libraspberrypi-dev
sudo apt install -y \
git \
make \
gcc \
libc6-dev \
libi2c-dev \
libraspberrypi-dev \
libegl-dev \
libgles-dev
```

3. Clone this repository:
Expand Down
6 changes: 4 additions & 2 deletions scripts/build.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ build-direct:
@$(MAKE) -f Makefile.src

define DOCKERFILE_BUILD
FROM balenalib/raspberry-pi-debian:stretch
FROM $(RPI_IMAGE)
RUN apt-get update && apt-get install -y --no-install-recommends \
make \
gcc \
libc6-dev \
libi2c-dev \
libraspberrypi-dev
libraspberrypi-dev \
libegl-dev \
libgles-dev
WORKDIR /s
COPY . ./
COPY sensor-imu ./sensor-imu
Expand Down
9 changes: 0 additions & 9 deletions scripts/deploy.mk

This file was deleted.

2 changes: 1 addition & 1 deletion scripts/format.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
define DOCKERFILE_FORMAT
FROM ubuntu:20.04
FROM $(UBUNTU_IMAGE)

RUN apt update && apt install -y --no-install-recommends \
clang-format
Expand Down
2 changes: 1 addition & 1 deletion scripts/lint.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
define DOCKERFILE_LINT
FROM ubuntu:20.04
FROM $(UBUNTU_IMAGE)

RUN apt update && apt install -y --no-install-recommends \
clang-format
Expand Down

0 comments on commit d067cdf

Please sign in to comment.