Skip to content

Commit 944a436

Browse files
Rename build files from TARGETS to BUCK (group ID: 5640092308958433425)
Differential Revision: D91686779 Pull Request resolved: #16976
1 parent a6af392 commit 944a436

5 files changed

Lines changed: 27 additions & 21 deletions

File tree

backends/arm/runtime/BUCK

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
1+
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target")
12
load("targets.bzl", "define_common_targets")
23

34
oncall("odai_jarvis")
45

5-
define_common_targets()
6+
non_fbcode_target(_kind = define_common_targets,)
7+
8+
# !!!! fbcode/executorch/backends/arm/runtime/TARGETS was merged into this file, see https://fburl.com/workplace/xl8l9yuo for more info !!!!
9+
10+
load("targets.bzl", "define_common_targets")
11+
12+
13+
fbcode_target(_kind = define_common_targets,)

backends/arm/runtime/TARGETS

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target")
12
# Copyright 2025 Arm Limited and/or its affiliates.
23
#
34
# This source code is licensed under the BSD-style license found in the
@@ -9,7 +10,7 @@ load(":targets.bzl", "define_arm_tests")
910

1011
oncall("executorch")
1112

12-
runtime.python_library(
13+
fbcode_target(_kind = runtime.python_library,
1314
name = "conftest",
1415
srcs = ["conftest.py"],
1516
deps = [
@@ -19,7 +20,7 @@ runtime.python_library(
1920
]
2021
)
2122

22-
runtime.python_library(
23+
fbcode_target(_kind = runtime.python_library,
2324
name = "runner_utils",
2425
srcs = ["runner_utils.py"],
2526
resources = {
@@ -38,7 +39,7 @@ runtime.python_library(
3839
]
3940
)
4041

41-
runtime.python_library(
42+
fbcode_target(_kind = runtime.python_library,
4243
name = "common",
4344
srcs = ["common.py"],
4445
deps = [
@@ -48,7 +49,7 @@ runtime.python_library(
4849
]
4950
)
5051

51-
runtime.python_library(
52+
fbcode_target(_kind = runtime.python_library,
5253
name = "arm_tester_serialize",
5354
srcs = ["tester/serialize.py"],
5455
deps = [
@@ -57,7 +58,7 @@ runtime.python_library(
5758
]
5859
)
5960

60-
runtime.python_library(
61+
fbcode_target(_kind = runtime.python_library,
6162
name = "arm_tester_lib",
6263
srcs = glob(["tester/*.py"], exclude = ["tester/serialize.py"]),
6364
deps = [
@@ -75,12 +76,12 @@ runtime.python_library(
7576
)
7677

7778

78-
runtime.python_library(
79+
fbcode_target(_kind = runtime.python_library,
7980
name = "arm_tester",
8081
deps = [
8182
"//executorch/backends/arm/test:arm_tester_lib",
8283
"//executorch/backends/arm/test:arm_tester_serialize",
8384
]
8485
)
8586

86-
define_arm_tests()
87+
fbcode_target(_kind = define_arm_tests,)
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target")
12
# Copyright 2025 Arm Limited and/or its affiliates.
23
#
34
# This source code is licensed under the BSD-style license found in the
@@ -7,7 +8,7 @@ load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
78

89
oncall("executorch")
910

10-
runtime.python_library(
11+
fbcode_target(_kind = runtime.python_library,
1112
name = "dw_convs_shared_weights_module",
1213
srcs = ["test_dw_convs_with_shared_weights.py"],
1314
deps = [
Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target")
12
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
23

3-
runtime.python_library(
4+
fbcode_target(_kind = runtime.python_library,
45
name = "schemas",
56
srcs = ["schemas/__init__.py"],
67
resources = [
@@ -9,7 +10,7 @@ runtime.python_library(
910
visibility = ["PUBLIC"],
1011
)
1112

12-
runtime.python_library(
13+
fbcode_target(_kind = runtime.python_library,
1314
name = "mapping",
1415
srcs = [
1516
"mapping.py",
@@ -20,7 +21,7 @@ runtime.python_library(
2021
":specification",
2122
],
2223
)
23-
runtime.python_library(
24+
fbcode_target(_kind = runtime.python_library,
2425
name = "specification",
2526
srcs = [
2627
"specification.py",
@@ -30,7 +31,7 @@ runtime.python_library(
3031
"//executorch/exir/backend:compile_spec_schema",
3132
],
3233
)
33-
runtime.python_library(
34+
fbcode_target(_kind = runtime.python_library,
3435
name = "utils",
3536
srcs = [
3637
"utils.py",
@@ -40,7 +41,7 @@ runtime.python_library(
4041
],
4142
)
4243

43-
runtime.python_library(
44+
fbcode_target(_kind = runtime.python_library,
4445
name = "tosa",
4546
srcs = [
4647
"__init__.py",
@@ -50,7 +51,7 @@ runtime.python_library(
5051
],
5152
)
5253

53-
runtime.python_library(
54+
fbcode_target(_kind = runtime.python_library,
5455
name = "compile_spec",
5556
srcs = [
5657
"compile_spec.py",
@@ -62,7 +63,7 @@ runtime.python_library(
6263
],
6364
)
6465

65-
runtime.python_library(
66+
fbcode_target(_kind = runtime.python_library,
6667
name = "partitioner",
6768
srcs = [
6869
"backend.py",

0 commit comments

Comments
 (0)