Skip to content

Commit 87af60f

Browse files
committed
Makefile: build testdata using clang-14, 17, 20
A prior commit upgraded the toolchain to this set of LLVM versions. -mcpu=v3 is now the default in LLVM 20, so specify -mcpu=v2 explicitly to maintain compatibility with 4.x kernels. Signed-off-by: Timo Beckers <[email protected]>
1 parent 39f281f commit 87af60f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+8
-11
lines changed

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# The development version of clang is distributed as the 'clang' binary,
22
# while stable/released versions have a version number attached.
33
# Pin the default clang to a stable version.
4-
CLANG ?= clang-17
5-
STRIP ?= llvm-strip-17
6-
OBJCOPY ?= llvm-objcopy-17
7-
CFLAGS := -O2 -g -Wall -Werror $(CFLAGS)
4+
CLANG ?= clang-20
5+
STRIP ?= llvm-strip-20
6+
OBJCOPY ?= llvm-objcopy-20
7+
CFLAGS := -O2 -g -Wall -Werror -mcpu=v2 $(CFLAGS)
88

99
CI_KERNEL_URL ?= https://github.com/cilium/ci-kernels/raw/master/
1010

@@ -25,8 +25,8 @@ IMAGE := $(shell cat ${REPODIR}/testdata/docker/IMAGE)
2525
VERSION := $(shell cat ${REPODIR}/testdata/docker/VERSION)
2626

2727
TARGETS := \
28-
testdata/loader-clang-11 \
2928
testdata/loader-clang-14 \
29+
testdata/loader-clang-17 \
3030
testdata/loader-$(CLANG) \
3131
testdata/manyprogs \
3232
testdata/btf_map_init \

btf/testdata/relocs-eb.elf

-888 Bytes
Binary file not shown.

btf/testdata/relocs-el.elf

-888 Bytes
Binary file not shown.

btf/testdata/relocs_enum-eb.elf

-32 Bytes
Binary file not shown.

btf/testdata/relocs_enum-el.elf

-32 Bytes
Binary file not shown.

btf/testdata/relocs_read-eb.elf

-1.84 KB
Binary file not shown.

btf/testdata/relocs_read-el.elf

-1.84 KB
Binary file not shown.
-32 Bytes
Binary file not shown.
-32 Bytes
Binary file not shown.

examples/cgroup_skb/bpf_bpfeb.o

-56 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)