Skip to content

Commit 3bc0f07

Browse files
JakeStevensfacebook-github-bot
authored andcommitted
Move BUCK targets
Summary: As title Differential Revision: D83053817
1 parent b0998da commit 3bc0f07

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

backends/nxp/runtime/targets.bzl

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,21 @@ load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
22

33
def define_common_targets():
44
runtime.cxx_library(
5-
name = "nxp_backend",
5+
name = "nxp_backend_base",
66
srcs = ["NeutronBackend.cpp"],
7-
exported_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)
7+
exported_headers = [
8+
"NeutronDriver.h",
9+
"NeutronErrors.h",
10+
],
1111
link_whole = True,
1212
# Constructor needed for backend registration.
1313
compiler_flags = ["-Wno-global-constructors", "-fno-rtti", "-DNO_HEAP_USAGE"],
14-
visibility = ["@EXECUTORCH_CLIENTS"],
14+
visibility = [
15+
"//executorch/backends/nxp/runtime/fb:nxp_fb_backend",
16+
"@EXECUTORCH_CLIENTS",
17+
],
1518
deps = [
1619
"//executorch/runtime/backend:interface",
1720
"//executorch/runtime/core:core",
18-
"fbsource//arvr/third-party/toolchains/nxp-sdk/2.16.0/middleware/eiq/executorch/third-party/neutron/rt700:libNeutron",
1921
],
2022
)

0 commit comments

Comments
 (0)