Skip to content

Commit

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

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

no-core: mod-tidy
no-core:
$(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: mod-tidy
core:
$(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: mod-tidy
testing:
cp $(EBPF_TARGET_PATH) test/hades_ebpf_driver.o
CGO_ENABLED=0 go test -v -exec sudo ./...
2 changes: 1 addition & 1 deletion plugins/edriver/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module hades-ebpf

replace github.com/chriskaliX/SDK => ../../SDK/go

go 1.20
go 1.21.0

require (
github.com/aquasecurity/libbpfgo/helpers v0.4.5
Expand Down

0 comments on commit e2058bb

Please sign in to comment.