Skip to content

Commit

Permalink
Pass -C KERNEL_ROOT when searching for vmlinuz
Browse files Browse the repository at this point in the history
  • Loading branch information
theihor committed Nov 11, 2024
1 parent f673c5d commit 6bc77b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions run-vmtest/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ source "${GITHUB_ACTION_PATH}/../helpers.sh"

export VMLINUZ=${VMLINUZ:-}
if [[ ! -f "${VMLINUZ}" ]]; then
image_name=$(make -s image_name)
image_name=$(make -C ${KERNEL_ROOT} -s image_name)
export VMLINUZ=$(realpath ${KBUILD_OUTPUT})/${image_name}
fi

# Create a symlink to vmlinux from a "standard" location
# See btf__load_vmlinux_btf() in libbpf
VMLINUX=${VMLINUX:-"$KBUILD_OUTPUT/vmlinux"}
if [[ -f "${VMLINUX}" ]]; then
VMLINUX_VERSION="$(strings ${VMLINUX} | grep -m 1 'Linux version' | awk '{print $3}')"
VMLINUX_VERSION="$(strings ${VMLINUX} | grep -m 1 'Linux version' | awk '{print $3}')" || true
sudo mkdir -p /usr/lib/debug/boot
sudo ln -sf "${VMLINUX}" "/usr/lib/debug/boot/vmlinux-${VMLINUX_VERSION}"
else
Expand Down

0 comments on commit 6bc77b6

Please sign in to comment.