Skip to content

Commit

Permalink
edriver: toolchain upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskaliX committed Nov 28, 2024
1 parent 3133bc2 commit d6c9bbc
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions plugins/edriver/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,19 @@ EBPF_TARGET_PATH = user/hades_ebpf_driver.o
GO_TARGET_PATH := -o edriver
VERSION := v1.1.1

no-core:
.PHONY: mod-tidy
mod-tidy:
@echo "Running go mod tidy..."
go mod tidy

no-core: mod-tidy
$(EBPF_BUILD)
mv $(EBPF_SOURCE_PATH) $(EBPF_TARGET_PATH)
CGO_ENABLED=0 go build -ldflags "-X 'hades-ebpf/conf.VERSION=$(VERSION)'" $(GO_TARGET_PATH) .
core:
core: mod-tidy
$(EBPF_BUILD) $(EBPF_CO-RE_FLAG)
mv $(EBPF_SOURCE_CO-RE_PATH) $(EBPF_TARGET_PATH)
CGO_ENABLED=0 go build -ldflags "-X 'hades-ebpf/conf.VERSION=$(VERSION)'" $(GO_TARGET_PATH) .
testing:
testing: mod-tidy
cp $(EBPF_TARGET_PATH) test/hades_ebpf_driver.o
CGO_ENABLED=0 go test -v -exec sudo ./...

0 comments on commit d6c9bbc

Please sign in to comment.