Makefile (e2a46d54d7a100c79c9d645184db9ce594c8f5f6) | Makefile (297a3f1241550f6969f65a5efeee9162241daae5) |
---|---|
1# SPDX-License-Identifier: GPL-2.0 2include ../../../build/Build.include 3include ../../../scripts/Makefile.arch 4include ../../../scripts/Makefile.include 5 6CXX ?= $(CROSS_COMPILE)g++ 7 8CURDIR := $(abspath .) --- 69 unchanged lines hidden (view full) --- 78TEST_PROGS_EXTENDED := with_addr.sh \ 79 with_tunnels.sh ima_setup.sh verify_sig_setup.sh \ 80 test_xdp_vlan.sh test_bpftool.py 81 82# Compile but not part of 'make run_tests' 83TEST_GEN_PROGS_EXTENDED = test_sock_addr test_skb_cgroup_id_user \ 84 flow_dissector_load test_flow_dissector test_tcp_check_syncookie_user \ 85 test_lirc_mode2_user xdping test_cpp runqslower bench bpf_testmod.ko \ | 1# SPDX-License-Identifier: GPL-2.0 2include ../../../build/Build.include 3include ../../../scripts/Makefile.arch 4include ../../../scripts/Makefile.include 5 6CXX ?= $(CROSS_COMPILE)g++ 7 8CURDIR := $(abspath .) --- 69 unchanged lines hidden (view full) --- 78TEST_PROGS_EXTENDED := with_addr.sh \ 79 with_tunnels.sh ima_setup.sh verify_sig_setup.sh \ 80 test_xdp_vlan.sh test_bpftool.py 81 82# Compile but not part of 'make run_tests' 83TEST_GEN_PROGS_EXTENDED = test_sock_addr test_skb_cgroup_id_user \ 84 flow_dissector_load test_flow_dissector test_tcp_check_syncookie_user \ 85 test_lirc_mode2_user xdping test_cpp runqslower bench bpf_testmod.ko \ |
86 xskxceiver xdp_redirect_multi xdp_synproxy veristat | 86 xskxceiver xdp_redirect_multi xdp_synproxy veristat xdp_hw_metadata |
87 88TEST_CUSTOM_PROGS = $(OUTPUT)/urandom_read $(OUTPUT)/sign-file 89TEST_GEN_FILES += liburandom_read.so 90 91# Emit succinct information message describing current building step 92# $1 - generic step name (e.g., CC, LINK, etc); 93# $2 - optional "flavor" specifier; if provided, will be emitted as [flavor]; 94# $3 - target (assumed to be file); only file name will be emitted; --- 283 unchanged lines hidden (view full) --- 378linked_vars.skel.h-deps := linked_vars1.bpf.o linked_vars2.bpf.o 379linked_maps.skel.h-deps := linked_maps1.bpf.o linked_maps2.bpf.o 380# In the subskeleton case, we want the test_subskeleton_lib.subskel.h file 381# but that's created as a side-effect of the skel.h generation. 382test_subskeleton.skel.h-deps := test_subskeleton_lib2.bpf.o test_subskeleton_lib.bpf.o test_subskeleton.bpf.o 383test_subskeleton_lib.skel.h-deps := test_subskeleton_lib2.bpf.o test_subskeleton_lib.bpf.o 384test_usdt.skel.h-deps := test_usdt.bpf.o test_usdt_multispec.bpf.o 385xsk_xdp_progs.skel.h-deps := xsk_xdp_progs.bpf.o | 87 88TEST_CUSTOM_PROGS = $(OUTPUT)/urandom_read $(OUTPUT)/sign-file 89TEST_GEN_FILES += liburandom_read.so 90 91# Emit succinct information message describing current building step 92# $1 - generic step name (e.g., CC, LINK, etc); 93# $2 - optional "flavor" specifier; if provided, will be emitted as [flavor]; 94# $3 - target (assumed to be file); only file name will be emitted; --- 283 unchanged lines hidden (view full) --- 378linked_vars.skel.h-deps := linked_vars1.bpf.o linked_vars2.bpf.o 379linked_maps.skel.h-deps := linked_maps1.bpf.o linked_maps2.bpf.o 380# In the subskeleton case, we want the test_subskeleton_lib.subskel.h file 381# but that's created as a side-effect of the skel.h generation. 382test_subskeleton.skel.h-deps := test_subskeleton_lib2.bpf.o test_subskeleton_lib.bpf.o test_subskeleton.bpf.o 383test_subskeleton_lib.skel.h-deps := test_subskeleton_lib2.bpf.o test_subskeleton_lib.bpf.o 384test_usdt.skel.h-deps := test_usdt.bpf.o test_usdt_multispec.bpf.o 385xsk_xdp_progs.skel.h-deps := xsk_xdp_progs.bpf.o |
386xdp_hw_metadata.skel.h-deps := xdp_hw_metadata.bpf.o |
|
386 387LINKED_BPF_SRCS := $(patsubst %.bpf.o,%.c,$(foreach skel,$(LINKED_SKELS),$($(skel)-deps))) 388 389# Set up extra TRUNNER_XXX "temporary" variables in the environment (relies on 390# $eval()) and pass control to DEFINE_TEST_RUNNER_RULES. 391# Parameters: 392# $1 - test runner base binary name (e.g., test_progs) 393# $2 - test runner extra "flavor" (e.g., no_alu32, gcc-bpf, etc) --- 181 unchanged lines hidden (view full) --- 575$(OUTPUT)/test_verifier: test_verifier.c verifier/tests.h $(BPFOBJ) | $(OUTPUT) 576 $(call msg,BINARY,,$@) 577 $(Q)$(CC) $(CFLAGS) $(filter %.a %.o %.c,$^) $(LDLIBS) -o $@ 578 579$(OUTPUT)/xskxceiver: xskxceiver.c $(OUTPUT)/xsk.o $(OUTPUT)/xsk_xdp_progs.skel.h $(BPFOBJ) | $(OUTPUT) 580 $(call msg,BINARY,,$@) 581 $(Q)$(CC) $(CFLAGS) $(filter %.a %.o %.c,$^) $(LDLIBS) -o $@ 582 | 387 388LINKED_BPF_SRCS := $(patsubst %.bpf.o,%.c,$(foreach skel,$(LINKED_SKELS),$($(skel)-deps))) 389 390# Set up extra TRUNNER_XXX "temporary" variables in the environment (relies on 391# $eval()) and pass control to DEFINE_TEST_RUNNER_RULES. 392# Parameters: 393# $1 - test runner base binary name (e.g., test_progs) 394# $2 - test runner extra "flavor" (e.g., no_alu32, gcc-bpf, etc) --- 181 unchanged lines hidden (view full) --- 576$(OUTPUT)/test_verifier: test_verifier.c verifier/tests.h $(BPFOBJ) | $(OUTPUT) 577 $(call msg,BINARY,,$@) 578 $(Q)$(CC) $(CFLAGS) $(filter %.a %.o %.c,$^) $(LDLIBS) -o $@ 579 580$(OUTPUT)/xskxceiver: xskxceiver.c $(OUTPUT)/xsk.o $(OUTPUT)/xsk_xdp_progs.skel.h $(BPFOBJ) | $(OUTPUT) 581 $(call msg,BINARY,,$@) 582 $(Q)$(CC) $(CFLAGS) $(filter %.a %.o %.c,$^) $(LDLIBS) -o $@ 583 |
584$(OUTPUT)/xdp_hw_metadata: xdp_hw_metadata.c $(OUTPUT)/network_helpers.o $(OUTPUT)/xsk.o $(OUTPUT)/xdp_hw_metadata.skel.h | $(OUTPUT) 585 $(call msg,BINARY,,$@) 586 $(Q)$(CC) $(CFLAGS) $(filter %.a %.o %.c,$^) $(LDLIBS) -o $@ 587 |
|
583# Make sure we are able to include and link libbpf against c++. 584$(OUTPUT)/test_cpp: test_cpp.cpp $(OUTPUT)/test_core_extern.skel.h $(BPFOBJ) 585 $(call msg,CXX,,$@) 586 $(Q)$(CXX) $(CFLAGS) $(filter %.a %.o %.cpp,$^) $(LDLIBS) -o $@ 587 588# Benchmark runner 589$(OUTPUT)/bench_%.o: benchs/bench_%.c bench.h $(BPFOBJ) 590 $(call msg,CC,,$@) --- 45 unchanged lines hidden --- | 588# Make sure we are able to include and link libbpf against c++. 589$(OUTPUT)/test_cpp: test_cpp.cpp $(OUTPUT)/test_core_extern.skel.h $(BPFOBJ) 590 $(call msg,CXX,,$@) 591 $(Q)$(CXX) $(CFLAGS) $(filter %.a %.o %.cpp,$^) $(LDLIBS) -o $@ 592 593# Benchmark runner 594$(OUTPUT)/bench_%.o: benchs/bench_%.c bench.h $(BPFOBJ) 595 $(call msg,CC,,$@) --- 45 unchanged lines hidden --- |