Add samsung specific changes

This commit is contained in:
2025-08-11 14:29:00 +02:00
parent c66122e619
commit 4d134a1294
2688 changed files with 1127995 additions and 11475 deletions

18
uapi_library.bzl Normal file
View File

@@ -0,0 +1,18 @@
load(":uapi_unpacker.bzl", "uapi_unpacker")
def define_uapi_library(target):
"""Create a header-only cc_library of the kernel's UAPI headers
Args:
target: name of main Bazel target (e.g. `kalama_gki`)
"""
uapi_unpacker(
name = "{}_uapi_unpacker".format(target),
kernel_uapi_headers = ":{}_uapi_headers".format(target),
)
native.cc_library(
name = "{}_uapi_header_library".format(target),
hdrs = [":{}_uapi_unpacker".format(target)],
includes = ["{}_uapi_unpacker_uapi_headers".format(target)],
)