Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions backends/nxp/runtime/targets.bzl
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
load("@fbsource//tools/target_determinator/macros:ci.bzl", "ci")

def define_common_targets():
runtime.cxx_library(
name = "nxp_backend",
name = "nxp_backend_base",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you wanna protect this in OSS CI?

See an example PR to build: #14542

That way, we can know if a buck target has issue in OSS.

srcs = ["NeutronBackend.cpp"],
exported_headers = ["NeutronDriver.h", "NeutronErrors.h"],
compatible_with = ["ovr_config//cpu:arm32-embedded", "@fbsource//arvr/firmware/projects/smartglasses/config:embedded-mcu-rtos"],
# Neutron runtime needs to compile with executor as whole
# @lint-ignore BUCKLINT: Avoid `link_whole=True` (https://fburl.com/avoid-link-whole)
exported_headers = [
"NeutronDriver.h",
"NeutronErrors.h",
],
link_whole = True,
# Constructor needed for backend registration.
compiler_flags = ["-Wno-global-constructors", "-fno-rtti", "-DNO_HEAP_USAGE"],
visibility = ["@EXECUTORCH_CLIENTS"],
labels = [ci.skip_target()],
visibility = [
"//executorch/backends/nxp/runtime/fb:nxp_fb_backend",
"@EXECUTORCH_CLIENTS",
],
deps = [
"//executorch/runtime/backend:interface",
"//executorch/runtime/core:core",
"fbsource//arvr/third-party/toolchains/nxp-sdk/2.16.0/middleware/eiq/executorch/third-party/neutron/rt700:libNeutron",
],
)
Loading