1
0
Fork 0
qemu/tools/ebpf/Makefile.ebpf
Daniel Baumann ea34ddeea6
Adding upstream version 1:10.0.2+ds.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-22 14:27:05 +02:00

24 lines
510 B
Text
Executable file

SKELETONS = rss.bpf.skeleton.h
LLVM_STRIP ?= llvm-strip
CLANG ?= clang
INC_FLAGS = `$(CLANG) -print-file-name=include`
EXTRA_CFLAGS ?= -O2 -g -target bpf
all: $(SKELETONS)
.PHONY: clean
clean:
rm -f $(SKELETONS) $(SKELETONS:%.skeleton.h=%.o)
%.o: %.c
$(CLANG) $(INC_FLAGS) \
-D__KERNEL__ -D__ASM_SYSREG_H \
-I../include $(LINUXINCLUDE) \
$(EXTRA_CFLAGS) -c $< -o $@
$(LLVM_STRIP) -g $@
%.skeleton.h: %.o
bpftool gen skeleton $< > $@
cp $@ ../../ebpf/