Skip to content

Commit

Permalink
Fixes falco arm64 build (#11)
Browse files Browse the repository at this point in the history
The packages we need to install are different on arm64. This addresses
that issue.
  • Loading branch information
claudiubelu authored Oct 2, 2024
1 parent a451142 commit 205bb20
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions falco/0.38.2/rockcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,12 @@ parts:
override-build: |
# Installing additional packages here because of the $(uname -r) part. We need that for
# build idempotency, so we can build locally *and* in the CI.
# linux-tools and linux-cloud-tools are required for building BPF.
apt install linux-headers-$(uname -r) linux-tools-$(uname -r) linux-cloud-tools-$(uname -r)
# linux-tools and linux-cloud-tools are required for building BPF (for x86_64).
if [ "$(uname -m)" == "x86_64" ]; then
apt install -y linux-headers-$(uname -r) linux-tools-$(uname -r) linux-cloud-tools-$(uname -r)
else
apt install -y linux-headers-$(uname -r) linux-tools-$(uname -r) linux-cloud-tools
fi
# https://falco.org/docs/developer-guide/source/
mkdir -p build
Expand Down

0 comments on commit 205bb20

Please sign in to comment.