Files
xdp-project-bpf-examples/tc-policy/Makefile
Jesper Dangaard Brouer 9e5ab8f4fb tc-policy: Use bpftool skeleton header generate feature
The reason for going this route is that this allow us to
create a user binary that contains the BPF object file.
Thus, we can avoid having to load the BPF file from
a specific location or having to be in same dir as file.

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
2022-01-31 12:39:31 +01:00

14 lines
300 B
Makefile

# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
USER_TARGETS := tc_txq_policy
BPF_TARGETS := tc_txq_policy_kern
# Depend on bpftool for auto generating
# skeleton header file tc_txq_policy_kern.skel.h
#
BPF_SKEL_OBJ := tc_txq_policy_kern.o
LIB_DIR = ../lib
include $(LIB_DIR)/common.mk