2019-06-06 09:18:26 +00:00
|
|
|
# Standard cpu name constraint_setting and constraint_values
|
|
|
|
licenses(["notice"])
|
|
|
|
|
|
|
|
package(
|
|
|
|
default_visibility = ["//visibility:public"],
|
|
|
|
)
|
|
|
|
|
|
|
|
filegroup(
|
|
|
|
name = "srcs",
|
|
|
|
srcs = glob(["**"]),
|
|
|
|
)
|
|
|
|
|
2019-06-18 18:15:05 +00:00
|
|
|
# To add a new constraint_value see https://github.com/bazelbuild/platforms.
|
2019-06-06 09:18:26 +00:00
|
|
|
constraint_setting(name = "cpu")
|
|
|
|
|
2019-08-05 16:40:46 +00:00
|
|
|
# TODO(b/136237408): Remove this generic CPU name and replace with a specific one.
|
2020-12-10 11:09:01 +00:00
|
|
|
alias(
|
2019-08-05 16:40:46 +00:00
|
|
|
name = "aarch64",
|
2020-12-10 11:09:01 +00:00
|
|
|
actual = ":arm64",
|
2019-07-30 19:29:49 +00:00
|
|
|
)
|
|
|
|
|
2019-08-05 16:40:46 +00:00
|
|
|
# TODO(b/136237408): Remove this generic CPU name and replace with a specific one.
|
2019-07-30 19:29:49 +00:00
|
|
|
constraint_value(
|
2019-08-05 16:40:46 +00:00
|
|
|
name = "arm",
|
2019-07-30 19:29:49 +00:00
|
|
|
constraint_setting = ":cpu",
|
|
|
|
)
|
|
|
|
|
2021-01-08 08:46:23 +00:00
|
|
|
# Cortex-M0, Cortex-M0+, Cortex-M1
|
2020-09-16 03:33:02 +00:00
|
|
|
constraint_value(
|
2020-09-18 17:51:37 +00:00
|
|
|
name = "armv6-m", # Commonly known as thumbv6
|
2020-09-16 03:33:02 +00:00
|
|
|
constraint_setting = ":cpu",
|
|
|
|
)
|
|
|
|
|
2021-01-08 08:46:23 +00:00
|
|
|
# Cortex-M3
|
|
|
|
constraint_value(
|
|
|
|
name = "armv7-m",
|
|
|
|
constraint_setting = ":cpu",
|
|
|
|
)
|
|
|
|
|
|
|
|
# Cortex-M4, Cortex-M7
|
|
|
|
constraint_value(
|
|
|
|
name = "armv7e-m",
|
|
|
|
constraint_setting = ":cpu",
|
|
|
|
)
|
|
|
|
|
|
|
|
# Cortex-M4, Cortex-M7 with fpu
|
|
|
|
constraint_value(
|
|
|
|
name = "armv7e-mf", # armv7e-m with fpu
|
|
|
|
constraint_setting = ":cpu",
|
|
|
|
)
|
|
|
|
|
|
|
|
# Cortex-M23, Cortex-M33, Cortex-M35P
|
|
|
|
constraint_value(
|
|
|
|
name = "armv8-m",
|
|
|
|
constraint_setting = ":cpu",
|
|
|
|
)
|
|
|
|
|
2022-11-02 16:29:06 +00:00
|
|
|
# Cortex-R52
|
|
|
|
constraint_value(
|
|
|
|
name = "armv8-r",
|
|
|
|
constraint_setting = ":cpu",
|
|
|
|
)
|
|
|
|
|
2019-07-30 19:29:49 +00:00
|
|
|
constraint_value(
|
2019-08-05 16:40:46 +00:00
|
|
|
name = "arm64_32",
|
2019-06-06 09:18:26 +00:00
|
|
|
constraint_setting = ":cpu",
|
|
|
|
)
|
|
|
|
|
|
|
|
constraint_value(
|
2019-08-05 16:40:46 +00:00
|
|
|
name = "arm64",
|
2019-06-06 09:18:26 +00:00
|
|
|
constraint_setting = ":cpu",
|
|
|
|
)
|
2019-07-30 19:29:49 +00:00
|
|
|
|
|
|
|
constraint_value(
|
2019-08-05 16:40:46 +00:00
|
|
|
name = "arm64e",
|
|
|
|
constraint_setting = ":cpu",
|
|
|
|
)
|
|
|
|
|
|
|
|
constraint_value(
|
|
|
|
name = "armv7",
|
|
|
|
constraint_setting = ":cpu",
|
|
|
|
)
|
|
|
|
|
|
|
|
constraint_value(
|
|
|
|
name = "armv7k",
|
|
|
|
constraint_setting = ":cpu",
|
|
|
|
)
|
|
|
|
|
|
|
|
constraint_value(
|
|
|
|
name = "i386",
|
|
|
|
constraint_setting = ":cpu",
|
|
|
|
)
|
|
|
|
|
|
|
|
constraint_value(
|
|
|
|
name = "ppc",
|
2019-07-30 19:29:49 +00:00
|
|
|
constraint_setting = ":cpu",
|
|
|
|
)
|
|
|
|
|
2022-11-02 16:29:06 +00:00
|
|
|
constraint_value(
|
|
|
|
name = "ppc32",
|
|
|
|
constraint_setting = ":cpu",
|
|
|
|
)
|
|
|
|
|
2019-07-30 19:29:49 +00:00
|
|
|
constraint_value(
|
2019-07-30 21:51:37 +00:00
|
|
|
name = "s390x",
|
2019-07-30 19:29:49 +00:00
|
|
|
constraint_setting = ":cpu",
|
|
|
|
)
|
2019-08-05 16:40:46 +00:00
|
|
|
|
|
|
|
constraint_value(
|
|
|
|
name = "x86_32",
|
|
|
|
constraint_setting = ":cpu",
|
|
|
|
)
|
|
|
|
|
|
|
|
constraint_value(
|
|
|
|
name = "x86_64",
|
|
|
|
constraint_setting = ":cpu",
|
|
|
|
)
|
2020-05-01 21:56:52 +00:00
|
|
|
|
|
|
|
constraint_value(
|
|
|
|
name = "wasm32",
|
|
|
|
constraint_setting = ":cpu",
|
|
|
|
)
|
|
|
|
|
|
|
|
constraint_value(
|
|
|
|
name = "wasm64",
|
|
|
|
constraint_setting = ":cpu",
|
|
|
|
)
|
2021-01-20 02:54:21 +00:00
|
|
|
|
|
|
|
constraint_value(
|
|
|
|
name = "mips64",
|
|
|
|
constraint_setting = ":cpu",
|
|
|
|
)
|
2021-02-17 16:51:20 +00:00
|
|
|
|
2021-07-26 17:47:38 +00:00
|
|
|
constraint_value(
|
|
|
|
name = "riscv32",
|
|
|
|
constraint_setting = ":cpu",
|
|
|
|
)
|
|
|
|
|
2021-02-17 16:51:20 +00:00
|
|
|
constraint_value(
|
|
|
|
name = "riscv64",
|
|
|
|
constraint_setting = ":cpu",
|
|
|
|
)
|