git-subtree-dir: qcom/opensource/spu-kernel git-subtree-mainline:587685c687
git-subtree-split:0edbf1a122
Change-Id: repo: https://git.codelinaro.org/clo/la/platform/vendor/qcom/opensource/spu-kernel tag: LA.VENDOR.14.3.0.r1-17300-lanai.QSSI15.0
58 lines
1.1 KiB
Python
58 lines
1.1 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",
|
|
"include/uapi",
|
|
],
|
|
)
|
|
|
|
# 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_modules")
|
|
|
|
targets = ["pineapple", "niobe"]
|
|
define_modules(targets)
|
|
|