target/arm: Provide and use H8 and H1_8 macros
[qemu/ar7.git] / tools / ebpf / Makefile.ebpf
blob8f327ae3b821a5ca737dbf3da65fa22a4c018f9a
1 OBJS = rss.bpf.o
3 LLC ?= llc
4 CLANG ?= clang
5 INC_FLAGS = `$(CLANG) -print-file-name=include`
6 EXTRA_CFLAGS ?= -O2 -emit-llvm -fno-stack-protector
8 all: $(OBJS)
10 .PHONY: clean
12 clean:
13         rm -f $(OBJS)
15 $(OBJS):  %.o:%.c
16         $(CLANG) $(INC_FLAGS) \
17                 -D__KERNEL__ -D__ASM_SYSREG_H \
18                 -I../include $(LINUXINCLUDE) \
19                 $(EXTRA_CFLAGS) -c $< -o -| $(LLC) -march=bpf -filetype=obj -o $@
20         bpftool gen skeleton rss.bpf.o > rss.bpf.skeleton.h
21         cp rss.bpf.skeleton.h ../../ebpf/