diff options
Diffstat (limited to 'recipes-framework/tensorflow/files/BUILD.in')
-rw-r--r-- | recipes-framework/tensorflow/files/BUILD.in | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/recipes-framework/tensorflow/files/BUILD.in b/recipes-framework/tensorflow/files/BUILD.in new file mode 100644 index 0000000..2e230a6 --- /dev/null +++ b/recipes-framework/tensorflow/files/BUILD.in @@ -0,0 +1,40 @@ +package(default_visibility = ["//visibility:public"]) + +load(":cc_config.bzl", "cc_toolchain_config") + +cc_toolchain_suite( + name = "toolchain", + toolchains = { + "%%CPU%%": ":cc-compiler-yocto", + }, +) + +filegroup( + name = "empty", + srcs = [], +) + +filegroup( + name = "yocto_linux_all_files", + srcs = [ + "@yocto_compiler//:compiler_pieces", + ], +) + +cc_toolchain_config( + name = "yocto_config", + cpu = "%%CPU%%", +) + +cc_toolchain( + name = "cc-compiler-yocto", + all_files = ":yocto_linux_all_files", + compiler_files = ":yocto_linux_all_files", + dwp_files = ":empty", + linker_files = ":yocto_linux_all_files", + objcopy_files = "yocto_linux_all_files", + strip_files = "yocto_linux_all_files", + supports_param_files = 1, + toolchain_config = ":yocto_config", + toolchain_identifier = "yocto-linux-toolchain", +) |