Skip to content

Commit 2e99dfc

Browse files
JakeStevensfacebook-github-bot
authored andcommitted
Buckify runtime (#12244)
Summary: Add BUCK target for runtime Differential Revision: D72726608
1 parent f6bb143 commit 2e99dfc

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-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("wrist_motion_systems")
4+
5+
define_common_targets()

backends/nxp/runtime/targets.bzl

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

0 commit comments

Comments
 (0)