Skip to content

Commit 7421555

Browse files
authored
Buckify runtime
Differential Revision: D72726608 Pull Request resolved: #12244
1 parent d72e522 commit 7421555

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

backends/nxp/runtime/TARGETS

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
load("targets.bzl", "define_common_targets")
2+
3+
oncall("executorch")
4+
5+
define_common_targets()

backends/nxp/runtime/targets.bzl

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
2+
3+
def define_common_targets():
4+
runtime.cxx_library(
5+
name = "nxp_backend",
6+
srcs = ["NeutronBackend.cpp"],
7+
headers = ["NeutronDriver.h", "NeutronErrors.h"],
8+
compatible_with = ["ovr_config//cpu:arm32-embedded", "@fbsource//arvr/firmware/projects/smartglasses/config:embedded-mcu-rtos"],
9+
# Neutron runtime needs to compile with executor as whole
10+
# @lint-ignore BUCKLINT: Avoid `link_whole=True` (https://fburl.com/avoid-link-whole)
11+
link_whole = True,
12+
# Constructor needed for backend registration.
13+
compiler_flags = ["-Wno-global-constructors", "-fno-rtti", "-DNO_HEAP_USAGE"],
14+
visibility = ["@EXECUTORCH_CLIENTS"],
15+
deps = [
16+
"//executorch/runtime/backend:interface",
17+
"//executorch/runtime/core:core",
18+
"fbsource//arvr/third-party/toolchains/nxp-sdk/2.16.0/middleware/eiq/executorch/third-party/neutron/rt700:libNeutron",
19+
],
20+
)

0 commit comments

Comments
 (0)