aboutsummaryrefslogtreecommitdiff
path: root/tools/interface_generator/BUILD.bazel
diff options
context:
space:
mode:
authoraqua <aqua@iserlohn-fortress.net>2024-05-21 06:31:33 +0300
committeraqua <aqua@iserlohn-fortress.net>2024-06-20 09:30:02 +0300
commitc746ed1eb3a5c14c272c7e47df943ad6302d968e (patch)
treea52ffec23c48aa1489740789695423084cd3a4e6 /tools/interface_generator/BUILD.bazel
parentRemoved tools/kconfig (diff)
downloadkernel-c746ed1eb3a5c14c272c7e47df943ad6302d968e.tar.xz
Added interface_generator
Diffstat (limited to 'tools/interface_generator/BUILD.bazel')
-rw-r--r--tools/interface_generator/BUILD.bazel25
1 files changed, 25 insertions, 0 deletions
diff --git a/tools/interface_generator/BUILD.bazel b/tools/interface_generator/BUILD.bazel
new file mode 100644
index 0000000..2e700a2
--- /dev/null
+++ b/tools/interface_generator/BUILD.bazel
@@ -0,0 +1,25 @@
+load("@rules_python//python:pip.bzl", "compile_pip_requirements")
+
+package(default_visibility = ["//visibility:public"])
+
+# This rule adds a convenient way to update the requirements file.
+compile_pip_requirements(
+ name = "requirements",
+ src = "requirements.txt",
+ requirements_txt = "requirements_lock.txt",
+)
+
+py_binary(
+ name = "interface_generator",
+ srcs = ["interface_generator.py"],
+ args = ["-l", "$(location LICENSE.md)"],
+ data = glob(["templates/*"]) + ["LICENSE.md"],
+ deps = [
+ "@pip//mako",
+ ],
+)
+
+alias(
+ name = "smokeTest",
+ actual = ":interface_generator",
+)