Skip to content

Commit 4a99434

Browse files
yangshukuicrosbymichael
yangshukui
authored andcommitted
add the generated go file
Signed-off-by: Yang Shukui <[email protected]>
1 parent 12a41c8 commit 4a99434

File tree

4 files changed

+395
-1
lines changed

4 files changed

+395
-1
lines changed

Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ direct-test-short:
1818
go test $(TEST_TAGS) -cover -test.short -v $(GO_PACKAGES)
1919

2020
direct-build:
21+
chmod 755 hack/seccomp.sh
2122
hack/seccomp.sh
2223
go build -v $(GO_PACKAGES)
2324

hack/seccomp.pl

+2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
close $out;
2929
exit 0;
3030
}
31+
print "//";
32+
system("uname -m");
3133
print "package seccomp\r\n\r\n";
3234
print "var syscallMap = map[string] int {\n";
3335
while(<$in>) {

hack/seccomp.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
#/bin/bash
2-
cat seccomp/seccomp_main.go | sed '1,5d' > ~/seccomp_main.go
2+
3+
chmod 755 hack/seccomp.pl
34
hack/seccomp.pl < hack/syscall.sample > seccomp/seccompsyscall.go

0 commit comments

Comments
 (0)