1 # SPDX-License-Identifier: GPL-2.0
3 LIBBPF_SRCS
= $(srctree
)/tools
/lib
/bpf
/
4 LIBBPF_A
= $(obj
)/libbpf.a
5 LIBBPF_OUT
= $(abspath
$(obj
))
8 $(Q
)$(MAKE
) -C
$(LIBBPF_SRCS
) OUTPUT
=$(LIBBPF_OUT
)/ $(LIBBPF_OUT
)/libbpf.a
10 userccflags
+= -I
$(srctree
)/tools
/include/ -I
$(srctree
)/tools
/include/uapi \
11 -I
$(srctree
)/tools
/lib
/ -Wno-unused-result
13 userprogs
:= bpf_preload_umd
15 clean-files
:= $(userprogs
) bpf_helper_defs.h FEATURE-DUMP.libbpf staticobjs
/ feature
/
17 bpf_preload_umd-objs
:= iterators
/iterators.o
18 bpf_preload_umd-userldlibs
:= $(LIBBPF_A
) -lelf
-lz
20 $(obj
)/bpf_preload_umd
: $(LIBBPF_A
)
22 $(obj
)/bpf_preload_umd_blob.o
: $(obj
)/bpf_preload_umd
24 obj-
$(CONFIG_BPF_PRELOAD_UMD
) += bpf_preload.o
25 bpf_preload-objs
+= bpf_preload_kern.o bpf_preload_umd_blob.o