summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2024-02-11 22:40:36 +0200
committerPaul Buetow <paul@buetow.org>2024-02-11 22:40:36 +0200
commit5ed09a6a0254a65bb57618463eb3754402615160 (patch)
tree680ae8c3ed88afa7861a6a5f01b9cce2f68398b6
parent23a5ca9d0782e658188fd568fc3d3aa2b828bc45 (diff)
also use opids.go
-rwxr-xr-xbuild.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/build.sh b/build.sh
index 5198090..e0b1df9 100755
--- a/build.sh
+++ b/build.sh
@@ -5,9 +5,9 @@ set -xeuf -o pipefail
declare -r LIBBPFGO="$(pwd)/../libbpfgo"
bpftool btf dump file /sys/kernel/btf/vmlinux format c > vmlinux.h
-echo 'package main' > opids.go
-echo >> opids.go
-sed -E 's/#define (.*) ([0-9]+)/const \1 = \2/' opids.h >> opids.go
+echo 'package main' > internal/opids.go
+echo >> internal/opids.go
+sed -E 's/#define (.*) ([0-9]+)/const \1 = \2/' opids.h >> internal/opids.go
clang -g -O2 -Wall -fpie -I../libbpfgo/selftest/common -target bpf -D__TARGET_ARCH_amd64 -I../libbpfgo/output -I../libbpfgo/selftest/common -c main.bpf.c -o main.bpf.o