Files
android_kernel_samsung_sm86…/BUILD.bazel
Nurit Lichtenstein e4e3733a5a spu-kernel: Bazel compilation for spu-kernel drivers
Signed-off-by: Nurit Lichtenstein <quic_nuritl@quicinc.com>
Change-Id: I051f02f650b734644e92d4c0bd13239487d4bfb5
2023-02-15 12:36:13 +02:00

56 rader
1.0 KiB
Python

load("//build/kernel/kleaf:kernel.bzl", "ddk_headers")
package(
default_visibility = [
"//visibility:public",
],
)
ddk_headers(
name = "spu_kernel_configs",
hdrs = glob([
"config/*.h"]),
includes = ["config"]
)
ddk_headers(
name = "spu_uapi_headers",
hdrs = glob(["include/uapi/linux/*.h"]),
includes = [
"include/uapi/linux",
],
)
# Generated list with: find drivers -maxdepth 1 -mindepth 1 -type d -printf '"%p/**/*.h",\n'
driver_header_globs = [
"include/uapi/linux/*.h",
]
# Generated list with: find drivers -type f -name '*.h' -printf '"%h",\n' | sort -u
driver_includes = [
"include",
"include/uapi/linux",
]
ddk_headers(
name = "spu_src_headers",
hdrs = glob(driver_header_globs),
includes = driver_includes + [
".",
],
)
ddk_headers(
name = "spu_headers",
hdrs = [
":spu_src_headers",
":spu_uapi_headers",
":spu_kernel_configs",
],
)
load(":target.bzl", "define_pineapple")
define_pineapple()