Makefile (5d04ec687cf98bc6e8073c646994736a46ed4e24) | Makefile (2d2a3ad872f884d618f11e1a2028cff862503dcd) |
---|---|
1# SPDX-License-Identifier: GPL-2.0 2 3LIBDIR := ../../../lib 4BPFDIR := $(LIBDIR)/bpf 5APIDIR := ../../../include/uapi 6GENDIR := ../../../../include/generated 7GENHDR := $(GENDIR)/autoconf.h 8 --- 9 unchanged lines hidden (view full) --- 18CFLAGS += -Wall -O2 -I$(APIDIR) -I$(LIBDIR) -I$(BPFDIR) -I$(GENDIR) $(GENFLAGS) -I../../../include 19LDLIBS += -lcap -lelf -lrt -lpthread 20 21# Order correspond to 'make run_tests' order 22TEST_GEN_PROGS = test_verifier test_tag test_maps test_lru_map test_lpm_map test_progs \ 23 test_align test_verifier_log test_dev_cgroup test_tcpbpf_user \ 24 test_sock test_btf test_sockmap test_lirc_mode2_user get_cgroup_id_user \ 25 test_socket_cookie test_cgroup_storage test_select_reuseport test_section_names \ | 1# SPDX-License-Identifier: GPL-2.0 2 3LIBDIR := ../../../lib 4BPFDIR := $(LIBDIR)/bpf 5APIDIR := ../../../include/uapi 6GENDIR := ../../../../include/generated 7GENHDR := $(GENDIR)/autoconf.h 8 --- 9 unchanged lines hidden (view full) --- 18CFLAGS += -Wall -O2 -I$(APIDIR) -I$(LIBDIR) -I$(BPFDIR) -I$(GENDIR) $(GENFLAGS) -I../../../include 19LDLIBS += -lcap -lelf -lrt -lpthread 20 21# Order correspond to 'make run_tests' order 22TEST_GEN_PROGS = test_verifier test_tag test_maps test_lru_map test_lpm_map test_progs \ 23 test_align test_verifier_log test_dev_cgroup test_tcpbpf_user \ 24 test_sock test_btf test_sockmap test_lirc_mode2_user get_cgroup_id_user \ 25 test_socket_cookie test_cgroup_storage test_select_reuseport test_section_names \ |
26 test_netcnt test_tcpnotify_user test_sock_fields test_sysctl test_hashmap | 26 test_netcnt test_tcpnotify_user test_sock_fields test_sysctl test_hashmap \ 27 test_btf_dump |
27 28BPF_OBJ_FILES = $(patsubst %.c,%.o, $(notdir $(wildcard progs/*.c))) 29TEST_GEN_FILES = $(BPF_OBJ_FILES) 30 31# Also test sub-register code-gen if LLVM has eBPF v3 processor support which 32# contains both ALU32 and JMP32 instructions. 33SUBREG_CODEGEN := $(shell echo "int cal(int a) { return a > 0; }" | \ 34 $(CLANG) -target bpf -O2 -emit-llvm -S -x c - -o - | \ --- 243 unchanged lines hidden --- | 28 29BPF_OBJ_FILES = $(patsubst %.c,%.o, $(notdir $(wildcard progs/*.c))) 30TEST_GEN_FILES = $(BPF_OBJ_FILES) 31 32# Also test sub-register code-gen if LLVM has eBPF v3 processor support which 33# contains both ALU32 and JMP32 instructions. 34SUBREG_CODEGEN := $(shell echo "int cal(int a) { return a > 0; }" | \ 35 $(CLANG) -target bpf -O2 -emit-llvm -S -x c - -o - | \ --- 243 unchanged lines hidden --- |