File tree Expand file tree Collapse file tree 2 files changed +3
-13
lines changed Expand file tree Collapse file tree 2 files changed +3
-13
lines changed Original file line number Diff line number Diff line change 2727 with :
2828 fetch-depth : 0
2929 - name : Generate BPF code
30- run : go generate ./bpf-prog/block-iptables/...
30+ run : make bpf-lib && go generate ./bpf-prog/block-iptables/...
3131 env :
3232 GOTOOLCHAIN : local
3333 - name : golangci-lint
Original file line number Diff line number Diff line change @@ -199,8 +199,8 @@ ipv6-hp-bpf-binary:
199199 cd $(IPV6_HP_BPF_DIR ) && CGO_ENABLED=0 go generate ./...
200200 cd $(IPV6_HP_BPF_DIR ) /cmd/ipv6-hp-bpf && CGO_ENABLED=0 go build -v -o $(IPV6_HP_BPF_BUILD_DIR ) /ipv6-hp-bpf$(EXE_EXT ) -ldflags " -X main.version=$( IPV6_HP_BPF_VERSION) " -gcflags=" -dwarflocationlists=true"
201201
202- # Libraries for ipv6-hp- bpf
203- ipv6-hp- bpf-lib :
202+ # Libraries for bpf
203+ bpf-lib :
204204ifeq ($(GOARCH ) ,amd64)
205205 sudo apt-get update && sudo apt-get install -y llvm clang linux-libc-dev linux-headers-generic libbpf-dev libc6-dev nftables iproute2 gcc-multilib
206206 for dir in /usr/include/x86_64-linux-gnu/*; do sudo ln -sfn "$$dir" /usr/include/$$(basename "$$dir"); done
@@ -214,16 +214,6 @@ block-iptables-binary:
214214 cd $(BLOCK_IPTABLES_DIR ) && CGO_ENABLED=0 go generate ./...
215215 cd $(BLOCK_IPTABLES_DIR ) /cmd/block-iptables && CGO_ENABLED=0 go build -v -o $(BLOCK_IPTABLES_BUILD_DIR ) /block-iptables$(EXE_EXT ) -ldflags " -X main.version=$( BLOCK_IPTABLES_VERSION) " -gcflags=" -dwarflocationlists=true"
216216
217- # Libraries for block-iptables
218- block-iptables-lib :
219- ifeq ($(GOARCH ) ,amd64)
220- sudo apt-get update && sudo apt-get install -y llvm clang linux-libc-dev linux-headers-generic libbpf-dev libc6-dev nftables iproute2 gcc-multilib
221- for dir in /usr/include/x86_64-linux-gnu/*; do sudo ln -sfn "$$dir" /usr/include/$$(basename "$$dir"); done
222- else ifeq ($(GOARCH),arm64)
223- sudo apt-get update && sudo apt-get install -y llvm clang linux-libc-dev linux-headers-generic libbpf-dev libc6-dev nftables iproute2 gcc-aarch64-linux-gnu
224- for dir in /usr/include/aarch64-linux-gnu/*; do sudo ln -sfn "$$dir" /usr/include/$$(basename "$$dir"); done
225- endif
226-
227217# Build the Azure CNI network binary.
228218azure-vnet-binary :
229219 cd $(CNI_NET_DIR ) && CGO_ENABLED=0 go build -v -o $(CNI_BUILD_DIR ) /azure-vnet$(EXE_EXT ) -ldflags " -X main.version=$( CNI_VERSION) " -gcflags=" -dwarflocationlists=true"
You can’t perform that action at this time.
0 commit comments