blob: da401daf0b2ad89b2ce0208cd53d7c4ca3b7c395 [file]
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
def define_common_targets():
runtime.cxx_library(
name = "vela_bin_stream",
srcs = ["VelaBinStream.cpp"],
exported_headers = ["VelaBinStream.h"],
visibility = ["@EXECUTORCH_CLIENTS"],
deps = [
"//executorch/runtime/core:core",
],
)
runtime.cxx_library(
name = "arm_backend",
srcs = ["ArmBackendEthosU.cpp"],
headers = [],
compatible_with = ["ovr_config//cpu:arm32-embedded"],
# arm_executor_runner.cpp needs to compile with executor as whole
# @lint-ignore BUCKLINT: Avoid `link_whole=True` (https://fburl.com/avoid-link-whole)
link_whole = True,
supports_python_dlopen = True,
# Constructor needed for backend registration.
compiler_flags = ["-Wno-global-constructors"],
visibility = ["@EXECUTORCH_CLIENTS"],
deps = [
"//executorch/runtime/backend:interface",
":vela_bin_stream",
"//executorch/runtime/core:core",
"fbsource//third-party/ethos-u-core-driver:core_driver",
],
)