File tree 3 files changed +26
-3
lines changed 3 files changed +26
-3
lines changed Original file line number Diff line number Diff line change
1
+ name : veristat build
2
+
3
+ on :
4
+ push :
5
+ branches : [ "main" ]
6
+ pull_request :
7
+ branches : [ "main" ]
8
+
9
+ jobs :
10
+ build :
11
+
12
+ runs-on : ubuntu-latest
13
+
14
+ steps :
15
+ - uses : actions/checkout@v3
16
+ with :
17
+ submodules : true
18
+ - name : Install dependencies
19
+ run : sudo apt-get install -y elfutils libelf-dev
20
+ - name : make
21
+ run : make -C src -j$(nproc)
Original file line number Diff line number Diff line change 1
- # veristat
1
+ veristat
2
+ [ ![ Build] ( https://github.com/libbpf/veristat/actions/workflows/build.yml/badge.svg )] ( https://github.com/libbpf/veristat/actions/workflows/build.yml )
3
+ ========
2
4
3
5
> This is a mirror of veristat sources from
4
6
> [ bpf-next] ( https://kernel.googlesource.com/pub/scm/linux/kernel/git/bpf/bpf-next )
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ VERISTAT_VERSION ?= 0.1
3
3
DEBUG ?=
4
4
5
5
OUTPUT := .output
6
- LIBBPF_SRC := $(abspath ../../ libbpf/src)
6
+ LIBBPF_SRC := $(abspath ../libbpf/src)
7
7
LIBBPF_OBJ := $(abspath $(OUTPUT ) /libbpf.a)
8
8
# Use our own libbpf API headers and Linux UAPI headers distributed with
9
9
# libbpf to avoid dependency on system-wide headers, which could be missing or
@@ -68,7 +68,7 @@ $(LIBBPF_OBJ): $(wildcard $(LIBBPF_SRC)/*.[ch] $(LIBBPF_SRC)/Makefile) | $(OUTPU
68
68
install
69
69
70
70
# Build .c files
71
- $(OUTPUT ) /% .o : % .c $(wildcard % .h) | $(OUTPUT )
71
+ $(OUTPUT ) /% .o : % .c $(wildcard % .h) $( LIBBPF_OBJ ) | $(OUTPUT )
72
72
$(call msg,CC,$@ )
73
73
$(Q )$(CC ) $(ALL_CFLAGS ) $(INCLUDES ) -c $(filter % .c,$^ ) -o $@
74
74
You can’t perform that action at this time.
0 commit comments