@@ -28,6 +28,7 @@ IMG = $(IMG_REGISTRY)/$(IMG_ORG)/$(IMG_NAME):$(VERSION)
2828# The generator is a container image that provides a reproducible environment for
2929# building eBPF binaries
3030GEN_IMG ?= ghcr.io/grafana/beyla-ebpf-generator:main
31+ # TODO: GEN_IMG ?= ghcr.io/open-telemetry/obi-generator:latest
3132
3233COMPOSE_ARGS ?= -f test/integration/docker-compose.yml
3334
@@ -42,7 +43,7 @@ CLANG_TIDY ?= clang-tidy
4243CILIUM_EBPF_VER ?= $(call gomod-version,cilium/ebpf)
4344
4445# regular expressions for excluded file patterns
45- EXCLUDE_COVERAGE_FILES ="(_bpfel.go)|(/opentelemetry-ebpf-instrumentation/test/)|(/opentelemetry-ebpf-instrumentation/configs/)|(.pb.go)|(/pkg/export/otel/metric/)|(/cmd/ebpf-instrument -genfiles)"
46+ EXCLUDE_COVERAGE_FILES ="(_bpfel.go)|(/opentelemetry-ebpf-instrumentation/test/)|(/opentelemetry-ebpf-instrumentation/configs/)|(.pb.go)|(/pkg/export/otel/metric/)|(/cmd/obi -genfiles)"
4647
4748.DEFAULT_GOAL := all
4849
@@ -154,12 +155,12 @@ generate: export BPF_CFLAGS := $(CFLAGS)
154155generate : export BPF2GO := $(BPF2GO )
155156generate : bpf2go
156157 @echo " ### Generating files..."
157- @OTEL_EBPF_GENFILES_RUN_LOCALLY=1 go generate cmd/beyla -genfiles/beyla_genfiles .go
158+ @OTEL_EBPF_GENFILES_RUN_LOCALLY=1 go generate cmd/obi -genfiles/obi_genfiles .go
158159
159160.PHONY : docker-generate
160161docker-generate :
161162 @echo " ### Generating files (docker)..."
162- @OTEL_EBPF_GENFILES_GEN_IMG=$(GEN_IMG ) go generate cmd/beyla -genfiles/beyla_genfiles .go
163+ @OTEL_EBPF_GENFILES_GEN_IMG=$(GEN_IMG ) go generate cmd/obi -genfiles/obi_genfiles .go
163164
164165.PHONY : verify
165166verify : prereqs lint test
@@ -218,16 +219,18 @@ coverage-report-html: cov-exclude-generated
218219 @echo " ### Generating HTML coverage report"
219220 go tool cover --html=$(TEST_OUTPUT ) /cover.txt
220221
222+ # image-build is only used for local development. GH actions that build and publish the image don't make use of it
221223.PHONY : image-build
222224image-build :
223225 @echo " ### Building and pushing the auto-instrumenter image"
224226 $(call check_defined, IMG_ORG, Your Docker repository user name)
225- $(OCI_BIN ) buildx build --platform linux/amd64,linux/arm64 -t ${IMG} .
227+ $(OCI_BIN ) buildx build --load -t ${IMG} .
226228
229+ # generator-image-build is only used for local development. GH actions that build and publish the image don't make use of it
227230.PHONY : generator-image-build
228231generator-image-build :
229232 @echo " ### Creating the image that generates the eBPF binaries"
230- $(OCI_BIN ) buildx build --build-arg EBPF_VER= " $( CILIUM_EBPF_VER ) " --platform linux/amd64,linux/arm64 -t $(GEN_IMG ) -f generator.Dockerfile .
233+ $(OCI_BIN ) buildx build --load -t $(GEN_IMG ) -f generator.Dockerfile .
231234
232235
233236.PHONY : prepare-integration-test
0 commit comments