Skip to content

Commit

Permalink
chore: rm redundant Makefile and update vmlinux.h
Browse files Browse the repository at this point in the history
  • Loading branch information
ianchen0119 committed Jan 29, 2025
1 parent 77311ca commit 198318a
Show file tree
Hide file tree
Showing 4 changed files with 150,731 additions and 477 deletions.
5 changes: 4 additions & 1 deletion selftest/common/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ LDFLAGS =
CGO_CFLAGS_STATIC = "-I$(abspath $(OUTPUT)) -I$(abspath ../common)"
CGO_LDFLAGS_STATIC = "$(shell PKG_CONFIG_PATH=$(LIBBPF_OBJDIR) $(PKGCONFIG) --static --libs libbpf)"
CGO_EXTLDFLAGS_STATIC = '-w -extldflags "-static"'
SCX_FLAGS=-mcpu=v3 -mlittle-endian \
-I ../../libbpf/src/usr/include -I ../../libbpf/include/uapi \
-I /lib/modules/$(shell uname -r)/build/tools/sched_ext/include/scx -I /lib/modules/$(shell uname -r)/build/tools/sched_ext/include/bpf-compat

CGO_CFLAGS_DYN = "-I. -I/usr/include/"
CGO_LDFLAGS_DYN = "$(shell $(PKGCONFIG) --shared --libs libbpf)"
Expand Down Expand Up @@ -52,7 +55,7 @@ outputdir:
## test bpf dependency

$(MAIN).bpf.o: $(MAIN).bpf.c
$(CLANG) $(CFLAGS) -target bpf -D__TARGET_ARCH_$(ARCH) -I$(OUTPUT) -I$(abspath ../common) -c $< -o $@
$(CLANG) $(CFLAGS) -target bpf -D__TARGET_ARCH_$(ARCH) $(SCX_FLAGS) -I$(OUTPUT) -I$(abspath ../common) -c $< -o $@

## test

Expand Down
Loading

0 comments on commit 198318a

Please sign in to comment.