1
0
Ficheiros
android_kernel_samsung_sm86…/BUILD.bazel
Anmolpreet Kaur e22a42f5fe securemsm-kernel: Add rules to build qtee modules on sun
Add changes to support compilation and enablement for
qtee modules on sun. These changes do not enable the
compilation but add a support to enable the driver
compilation just by setting ENABLE_SECUREMSM_QTEE_DLKM to true.

1. Flag ENABLE_SECUREMSM_QTEE_DLKM ensures that we can
enable compilation and enablement of smcinvoke,tzlog and qseecom
driver irrespective of high level KERNEL_DLKM* flags.
2. BUILD.bazel and build/sun.bzl changes to enable bazel
configurations for smcinvoke and tzlog driver once they are enabled
in Android.mk.

Change-Id: I5574c4b328266c3344aac435d034e6639a05fb12
Signed-off-by: Anmolpreet Kaur <quic_anmolpre@quicinc.com>
2023-09-19 23:02:36 +05:30

83 linhas
1.8 KiB
Python

package(
default_visibility = [
"//visibility:public",
],
)
load("//build/kernel/kleaf:kernel.bzl", "ddk_headers")
ddk_headers(
name = "smcinvoke_kernel_headers",
hdrs = glob([
"include/linux/smcinvoke*.h",
"include/uapi/linux/smcinvoke*.h",
"include/linux/IClientE*.h",
"include/linux/ITrustedCameraDriver.h",
"include/linux/CTrustedCameraDriver.h",
]),
includes = [
"include",
"include/linux",
"linux",
"include/uapi/linux",
],
)
ddk_headers(
name = "qseecom_kernel_headers",
hdrs = glob([
"include/uapi/linux/qseecom.h",
"include/uapi/linux/qseecom_api.h",
"linux/misc/qseecom_kernel.h",
"linux/misc/qseecom_priv.h",
"linux/misc/qseecomi.h",
]),
includes = ["linux", "include/uapi", "include/uapi/linux"]
)
ddk_headers(
name = "hdcp_qseecom_dlkm",
hdrs = glob([
":smcinvoke_kernel_headers",
"linux/*.h",
"include/linux/*h",
"include/smci/uid/*h",
"include/smci/interface/*h",
"linux/misc/*.h",
"config/*.h",
]),
includes = [
".",
"config",
"include",
"linux",
],
)
ddk_headers(
name = "qcedev_local_headers",
hdrs = glob([
"include/uapi/linux/*.h",
"crypto-qti/*.h"
]),
includes = ["include/uapi", "include/uapi/linux", "crypto-qti"]
)
ddk_headers(
name = "smmu_proxy_headers",
hdrs = glob([
"smmu-proxy/*.h",
"smmu-proxy/linux/*.h",
"smmu-proxy/include/uapi/linux/*.h"
]),
includes = [".", "smmu-proxy"],
)
load(":build/pineapple.bzl", "define_pineapple")
load(":build/blair.bzl", "define_blair")
load(":build/sun.bzl", "define_sun")
define_pineapple()
define_blair()
define_sun()