diff options
author | Andrei Vagin <avagin@google.com> | 2020-12-09 00:42:53 -0800 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2020-12-09 15:51:33 -0800 |
commit | 658f874b94ad83d9b4abed47d9aba856fe5f617c (patch) | |
tree | ce2ea322df840b882d41f02bc27a1e288decefc9 /pkg/sentry/platform/ring0/BUILD | |
parent | 96d14de0fa51d6c7fd5a34c69f27caf76a26f7aa (diff) |
Prepare for supporting cross compilation.
PiperOrigin-RevId: 346496532
Diffstat (limited to 'pkg/sentry/platform/ring0/BUILD')
-rw-r--r-- | pkg/sentry/platform/ring0/BUILD | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pkg/sentry/platform/ring0/BUILD b/pkg/sentry/platform/ring0/BUILD index 5d01d21dd..2852b7387 100644 --- a/pkg/sentry/platform/ring0/BUILD +++ b/pkg/sentry/platform/ring0/BUILD @@ -1,4 +1,4 @@ -load("//tools:defs.bzl", "go_library") +load("//tools:defs.bzl", "arch_genrule", "go_library") load("//tools/go_generics:defs.bzl", "go_template", "go_template_instance") package(licenses = ["notice"]) @@ -39,19 +39,19 @@ go_template_instance( template = ":defs_arm64", ) -genrule( +arch_genrule( name = "entry_impl_amd64", srcs = ["entry_amd64.s"], outs = ["entry_impl_amd64.s"], - cmd = "(echo -e '// build +amd64\\n' && $(location //pkg/sentry/platform/ring0/gen_offsets) && cat $(SRCS)) > $@", + cmd = "(echo -e '// build +amd64\\n' && QEMU $(location //pkg/sentry/platform/ring0/gen_offsets) && cat $(location entry_amd64.s)) > $@", tools = ["//pkg/sentry/platform/ring0/gen_offsets"], ) -genrule( +arch_genrule( name = "entry_impl_arm64", srcs = ["entry_arm64.s"], outs = ["entry_impl_arm64.s"], - cmd = "(echo -e '// build +arm64\\n' && $(location //pkg/sentry/platform/ring0/gen_offsets) && cat $(SRCS)) > $@", + cmd = "(echo -e '// build +arm64\\n' && QEMU $(location //pkg/sentry/platform/ring0/gen_offsets) && cat $(location entry_arm64.s)) > $@", tools = ["//pkg/sentry/platform/ring0/gen_offsets"], ) |