Skip to content

Commit

Permalink
Makefile: add internal/sys to generate target
Browse files Browse the repository at this point in the history
Also regenerate syscall wrappers when generating code. This makes sure that CI
reproduces the checked in code 1:1.
  • Loading branch information
lmb committed Apr 21, 2022
1 parent 3e2c527 commit 68a6788
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Expand Up @@ -74,6 +74,7 @@ generate: export BPF_CLANG := $(CLANG)
generate: export BPF_CFLAGS := $(CFLAGS)
generate:
go generate ./cmd/bpf2go/test
go generate ./internal/sys
cd examples/ && go generate ./...

testdata/loader-%-el.elf: testdata/loader.c
Expand Down
2 changes: 2 additions & 0 deletions internal/sys/doc.go
@@ -1,4 +1,6 @@
// Package sys contains bindings for the BPF syscall.
package sys

// Regenerate types.go by invoking go generate in the current directory.

//go:generate go run github.com/cilium/ebpf/internal/cmd/gentypes ../btf/testdata/vmlinux-btf.gz

0 comments on commit 68a6788

Please sign in to comment.