Add a second option for kelvin's platform select
Change-Id: I8a8b41b0108bad30248d4af4c17c209500f7fc81
diff --git a/tensorflow/lite/micro/kernels/BUILD b/tensorflow/lite/micro/kernels/BUILD
index 492a425..065c8f5 100644
--- a/tensorflow/lite/micro/kernels/BUILD
+++ b/tensorflow/lite/micro/kernels/BUILD
@@ -8,6 +8,7 @@
"xtensa_vision_p6_config",
"kelvin_config",
)
+load("@bazel_skylib//lib:selects.bzl", "selects")
package(
features = [
@@ -1470,8 +1471,20 @@
)
config_setting(
- name = "kelvin_default",
+ name = "kelvin_default1",
values = {
- "platforms": "@kelvin_sw//platforms/riscv32:kelvin"
+ "platforms": "@kelvin_sw//platforms/riscv32:kelvin",
},
)
+
+config_setting(
+ name = "kelvin_default2",
+ values = {
+ "platforms": "//platforms/riscv32:kelvin",
+ },
+)
+
+selects.config_setting_group(
+ name = "kelvin_default",
+ match_any = [":kelvin_default1", ":kelvin_default2"],
+)