Skip to content

Commit 9283b4e

Browse files
authored
Move BUCK targets
Differential Revision: D83053817 Pull Request resolved: #14517
1 parent 50ab90a commit 9283b4e

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

backends/nxp/runtime/targets.bzl

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,24 @@
11
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
2+
load("@fbsource//tools/target_determinator/macros:ci.bzl", "ci")
23

34
def define_common_targets():
45
runtime.cxx_library(
5-
name = "nxp_backend",
6+
name = "nxp_backend_base",
67
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)
8+
exported_headers = [
9+
"NeutronDriver.h",
10+
"NeutronErrors.h",
11+
],
1112
link_whole = True,
1213
# Constructor needed for backend registration.
1314
compiler_flags = ["-Wno-global-constructors", "-fno-rtti", "-DNO_HEAP_USAGE"],
14-
visibility = ["@EXECUTORCH_CLIENTS"],
15+
labels = [ci.skip_target()],
16+
visibility = [
17+
"//executorch/backends/nxp/runtime/fb:nxp_fb_backend",
18+
"@EXECUTORCH_CLIENTS",
19+
],
1520
deps = [
1621
"//executorch/runtime/backend:interface",
1722
"//executorch/runtime/core:core",
18-
"fbsource//arvr/third-party/toolchains/nxp-sdk/2.16.0/middleware/eiq/executorch/third-party/neutron/rt700:libNeutron",
1923
],
2024
)

0 commit comments

Comments
 (0)