build: upstream UEFI to platforms
This removes our local UEFI constraint_value for a patch sent upstream
to @platforms. This will be used by rules_rust in a follow-up.
Change-Id: I16e3bf8a60923a2f77ef036babdda45205d8a078
Reviewed-on: https://review.monogon.dev/c/monogon/+/2103
Tested-by: Jenkins CI
Reviewed-by: Serge Bazanski <serge@monogon.tech>
diff --git a/third_party/BUILD.bazel b/third_party/BUILD.bazel
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/third_party/BUILD.bazel
diff --git a/third_party/platforms-add-uefi.patch b/third_party/platforms-add-uefi.patch
new file mode 100644
index 0000000..c8ddb9d
--- /dev/null
+++ b/third_party/platforms-add-uefi.patch
@@ -0,0 +1,25 @@
+From 8ea54f72ba3cc8a76fec436d0ce61433a01791cb Mon Sep 17 00:00:00 2001
+From: Lorenz Brun <lorenz@monogon.tech>
+Date: Tue, 29 Aug 2023 18:45:54 +0200
+Subject: [PATCH] Add UEFI OS
+
+---
+ os/BUILD | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/os/BUILD b/os/BUILD
+index 1d9fedb..d68f485 100644
+--- a/os/BUILD
++++ b/os/BUILD
+@@ -116,3 +116,8 @@ constraint_value(
+ name = "chromiumos",
+ constraint_setting = ":os",
+ )
++
++constraint_value(
++ name = "uefi",
++ constraint_setting = ":os",
++)
+--
+2.41.0
+