Makefile (c489573b5b6ce6442ad4658d9d5ec77839b91622) Makefile (aaf376bddf68d0afe5f4b5f25fc555da358e2287)
1# SPDX-License-Identifier: GPL-2.0
2include ../../../../scripts/Kbuild.include
3include ../../../scripts/Makefile.arch
4
5CXX ?= $(CROSS_COMPILE)g++
6
7CURDIR := $(abspath .)
8TOOLSDIR := $(abspath ../../..)

--- 18 unchanged lines hidden (view full) ---

27 -I$(CURDIR) -I$(INCLUDE_DIR) -I$(GENDIR) -I$(LIBDIR) \
28 -I$(TOOLSINCDIR) -I$(APIDIR) \
29 -Dbpf_prog_load=bpf_prog_test_load \
30 -Dbpf_load_program=bpf_test_load_program
31LDLIBS += -lcap -lelf -lz -lrt -lpthread
32
33# Order correspond to 'make run_tests' order
34TEST_GEN_PROGS = test_verifier test_tag test_maps test_lru_map test_lpm_map test_progs \
1# SPDX-License-Identifier: GPL-2.0
2include ../../../../scripts/Kbuild.include
3include ../../../scripts/Makefile.arch
4
5CXX ?= $(CROSS_COMPILE)g++
6
7CURDIR := $(abspath .)
8TOOLSDIR := $(abspath ../../..)

--- 18 unchanged lines hidden (view full) ---

27 -I$(CURDIR) -I$(INCLUDE_DIR) -I$(GENDIR) -I$(LIBDIR) \
28 -I$(TOOLSINCDIR) -I$(APIDIR) \
29 -Dbpf_prog_load=bpf_prog_test_load \
30 -Dbpf_load_program=bpf_test_load_program
31LDLIBS += -lcap -lelf -lz -lrt -lpthread
32
33# Order correspond to 'make run_tests' order
34TEST_GEN_PROGS = test_verifier test_tag test_maps test_lru_map test_lpm_map test_progs \
35 test_verifier_log test_dev_cgroup test_tcpbpf_user \
35 test_verifier_log test_dev_cgroup \
36 test_sock test_sockmap get_cgroup_id_user test_socket_cookie \
37 test_cgroup_storage \
38 test_netcnt test_tcpnotify_user test_sysctl \
39 test_progs-no_alu32 \
40 test_current_pid_tgid_new_ns
41
42# Also test bpf-gcc, if present
43ifneq ($(BPF_GCC),)

--- 114 unchanged lines hidden (view full) ---

158$(TEST_GEN_PROGS) $(TEST_GEN_PROGS_EXTENDED): $(OUTPUT)/test_stub.o $(BPFOBJ)
159
160$(OUTPUT)/test_dev_cgroup: cgroup_helpers.c
161$(OUTPUT)/test_skb_cgroup_id_user: cgroup_helpers.c
162$(OUTPUT)/test_sock: cgroup_helpers.c
163$(OUTPUT)/test_sock_addr: cgroup_helpers.c
164$(OUTPUT)/test_socket_cookie: cgroup_helpers.c
165$(OUTPUT)/test_sockmap: cgroup_helpers.c
36 test_sock test_sockmap get_cgroup_id_user test_socket_cookie \
37 test_cgroup_storage \
38 test_netcnt test_tcpnotify_user test_sysctl \
39 test_progs-no_alu32 \
40 test_current_pid_tgid_new_ns
41
42# Also test bpf-gcc, if present
43ifneq ($(BPF_GCC),)

--- 114 unchanged lines hidden (view full) ---

158$(TEST_GEN_PROGS) $(TEST_GEN_PROGS_EXTENDED): $(OUTPUT)/test_stub.o $(BPFOBJ)
159
160$(OUTPUT)/test_dev_cgroup: cgroup_helpers.c
161$(OUTPUT)/test_skb_cgroup_id_user: cgroup_helpers.c
162$(OUTPUT)/test_sock: cgroup_helpers.c
163$(OUTPUT)/test_sock_addr: cgroup_helpers.c
164$(OUTPUT)/test_socket_cookie: cgroup_helpers.c
165$(OUTPUT)/test_sockmap: cgroup_helpers.c
166$(OUTPUT)/test_tcpbpf_user: cgroup_helpers.c
167$(OUTPUT)/test_tcpnotify_user: cgroup_helpers.c trace_helpers.c
168$(OUTPUT)/get_cgroup_id_user: cgroup_helpers.c
169$(OUTPUT)/test_cgroup_storage: cgroup_helpers.c
170$(OUTPUT)/test_netcnt: cgroup_helpers.c
171$(OUTPUT)/test_sock_fields: cgroup_helpers.c
172$(OUTPUT)/test_sysctl: cgroup_helpers.c
173
174BPFTOOL ?= $(DEFAULT_BPFTOOL)

--- 288 unchanged lines hidden ---
166$(OUTPUT)/test_tcpnotify_user: cgroup_helpers.c trace_helpers.c
167$(OUTPUT)/get_cgroup_id_user: cgroup_helpers.c
168$(OUTPUT)/test_cgroup_storage: cgroup_helpers.c
169$(OUTPUT)/test_netcnt: cgroup_helpers.c
170$(OUTPUT)/test_sock_fields: cgroup_helpers.c
171$(OUTPUT)/test_sysctl: cgroup_helpers.c
172
173BPFTOOL ?= $(DEFAULT_BPFTOOL)

--- 288 unchanged lines hidden ---