Skip to content

Commit fa000ba

Browse files
authored
build: set bpf skeleton name to base name of ebpf file
1 parent 5c88569 commit fa000ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/common.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ $(XDP_OBJ): %.o: %.c $(KERN_USER_H) $(EXTRA_DEPS) $(BPF_HEADERS) $(LIBMK)
121121
$(QUIET_LLC)$(LLC) -march=$(BPF_TARGET) -filetype=obj -o $@ ${@:.o=.ll}
122122

123123
$(BPF_SKEL_H): %.skel.h: %.bpf.o
124-
$(QUIET_GEN)$(BPFTOOL) gen skeleton $< name ${@:.skel.h=} > $@
124+
$(QUIET_GEN)$(BPFTOOL) gen skeleton $< name $(notdir ${@:.skel.h=}) > $@
125125

126126
.PHONY: man
127127
ifeq ($(EMACS),)

0 commit comments

Comments
 (0)