Skip to content

Commit

Permalink
New upstream version 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sudipm-mukherjee committed Jul 8, 2023
1 parent fd8f572 commit 059417d
Show file tree
Hide file tree
Showing 58 changed files with 88,437 additions and 81,721 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
assets/ export-ignore
25 changes: 21 additions & 4 deletions .github/actions/build-selftests/build_selftests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,26 @@ source ${THISDIR}/helpers.sh

foldable start prepare_selftests "Building selftests"

LLVM_VER=16
LIBBPF_PATH="${REPO_ROOT}"

llvm_default_version() {
echo "16"
}

llvm_latest_version() {
echo "17"
}

LLVM_VERSION=$(llvm_default_version)
if [[ "${LLVM_VERSION}" == $(llvm_latest_version) ]]; then
REPO_DISTRO_SUFFIX=""
else
REPO_DISTRO_SUFFIX="-${LLVM_VERSION}"
fi

echo "deb https://apt.llvm.org/focal/ llvm-toolchain-focal${REPO_DISTRO_SUFFIX} main" \
| sudo tee /etc/apt/sources.list.d/llvm.list

PREPARE_SELFTESTS_SCRIPT=${THISDIR}/prepare_selftests-${KERNEL}.sh
if [ -f "${PREPARE_SELFTESTS_SCRIPT}" ]; then
(cd "${REPO_ROOT}/${REPO_PATH}/tools/testing/selftests/bpf" && ${PREPARE_SELFTESTS_SCRIPT})
Expand All @@ -24,9 +41,9 @@ fi

cd ${REPO_ROOT}/${REPO_PATH}
make \
CLANG=clang-${LLVM_VER} \
LLC=llc-${LLVM_VER} \
LLVM_STRIP=llvm-strip-${LLVM_VER} \
CLANG=clang-${LLVM_VERSION} \
LLC=llc-${LLVM_VERSION} \
LLVM_STRIP=llvm-strip-${LLVM_VERSION} \
VMLINUX_BTF="${VMLINUX_BTF}" \
VMLINUX_H=${VMLINUX_H} \
-C "${REPO_ROOT}/${REPO_PATH}/tools/testing/selftests/bpf" \
Expand Down
Loading

0 comments on commit 059417d

Please sign in to comment.