Skip to content

Commit

Permalink
fix(scripts): download correct kernel headers on cos aarch64
Browse files Browse the repository at this point in the history
Signed-off-by: Roberto Scolaro <roberto.scolaro21@gmail.com>
  • Loading branch information
therealbobo authored and jasondellaluce committed Feb 2, 2024
1 parent f53d78a commit e165210
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/scap-driver-loader.in
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,11 @@ load_bpf_probe_compile() {
if [ "${TARGET_ID}" == "cos" ]; then
echo "* COS detected (build ${BUILD_ID}), using COS kernel headers"

BPF_KERNEL_SOURCES_URL="https://storage.googleapis.com/cos-tools/${BUILD_ID}/kernel-headers.tgz"
if [ "${ARCH}" == "aarch64" ]; then
BPF_KERNEL_SOURCES_URL="https://storage.googleapis.com/cos-tools/${BUILD_ID}/lakitu-arm64/kernel-headers.tgz"
else
BPF_KERNEL_SOURCES_URL="https://storage.googleapis.com/cos-tools/${BUILD_ID}/kernel-headers.tgz"
fi
KERNEL_EXTRA_VERSION="+"
STRIP_COMPONENTS=0

Expand Down

0 comments on commit e165210

Please sign in to comment.