From 4760a80fad88909b48c1b60dd8c6d7ba991a2416 Mon Sep 17 00:00:00 2001 From: Alexey Kardashevskiy Date: Wed, 14 Jul 2021 15:12:39 +1000 Subject: executor: prepare code generator to allow other achitectures At the moment only AMD64 is supported, change file names to emphasise this. Signed-off-by: Alexey Kardashevskiy --- executor/gen_linux_amd64.go | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 executor/gen_linux_amd64.go (limited to 'executor/gen_linux_amd64.go') diff --git a/executor/gen_linux_amd64.go b/executor/gen_linux_amd64.go new file mode 100644 index 000000000..dd68a198b --- /dev/null +++ b/executor/gen_linux_amd64.go @@ -0,0 +1,7 @@ +// Copyright 2017 syzkaller project authors. All rights reserved. +// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. + +// nolint: lll +//go:generate bash -c "gcc -DGOARCH_$GOARCH=1 kvm_gen.cc kvm_amd64.S -o kvm_gen && ./kvm_gen > kvm_amd64.S.h && rm ./kvm_gen" + +package executor -- cgit mrf-deployment