diff --git a/backends/nxp/runtime/targets.bzl b/backends/nxp/runtime/targets.bzl index 1a36e9b82fa..31ee9cc41f1 100644 --- a/backends/nxp/runtime/targets.bzl +++ b/backends/nxp/runtime/targets.bzl @@ -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", 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", ], )