securemsm-kernel: Compile the SMMU proxy driver with Bazel

Compile the SMMU proxy driver with Bazel.

Change-Id: I3323e2a6fec620354c4f9a6de1270ba9155998af
Signed-off-by: Chris Goldsworthy <quic_cgoldswo@quicinc.com>
This commit is contained in:
Chris Goldsworthy
2023-04-14 17:14:38 -07:00
parent 46f6032141
commit 2b0e36e377
3 changed files with 20 additions and 1 deletions

View File

@@ -47,6 +47,16 @@ ddk_headers(
includes = [".", "crypto-qti"] includes = [".", "crypto-qti"]
) )
ddk_headers(
name = "smmu_proxy_headers",
hdrs = glob([
"smmu-proxy/*.h",
"smmu-proxy/linux/*.h",
"smmu-proxy/uapi/linux/*.h"
]),
includes = [".", "smmu-proxy"],
)
load("pineapple.bzl", "define_pineapple") load("pineapple.bzl", "define_pineapple")
define_pineapple() define_pineapple()

View File

@@ -10,7 +10,8 @@ def define_pineapple():
"qce50_dlkm", "qce50_dlkm",
"qcedev-mod_dlkm", "qcedev-mod_dlkm",
"qrng_dlkm", "qrng_dlkm",
"qcrypto-msm_dlkm" "qcrypto-msm_dlkm",
"smmu_proxy_dlkm"
], ],
extra_options = [ extra_options = [
"CONFIG_QCOM_SMCINVOKE"] "CONFIG_QCOM_SMCINVOKE"]

View File

@@ -4,6 +4,7 @@ TZLOG_PATH = "tz_log"
HDCP_PATH = "hdcp" HDCP_PATH = "hdcp"
QCEDEV_PATH = "crypto-qti" QCEDEV_PATH = "crypto-qti"
QRNG_PATH = "qrng" QRNG_PATH = "qrng"
SMMU_PROXY_PATH = "smmu-proxy"
# This dictionary holds all the securemsm-kernel modules included by calling register_securemsm_module # This dictionary holds all the securemsm-kernel modules included by calling register_securemsm_module
securemsm_modules = {} securemsm_modules = {}
@@ -121,3 +122,10 @@ register_securemsm_module(
deps = [":qcedev_local_headers", deps = [":qcedev_local_headers",
"%b_qce50_dlkm"], "%b_qce50_dlkm"],
) )
register_securemsm_module(
name = "smmu_proxy_dlkm",
path = SMMU_PROXY_PATH,
srcs = ["qti-smmu-proxy-pvm.c", "qti-smmu-proxy-common.c"],
deps = ["%b_smcinvoke_dlkm", ":smmu_proxy_headers"],
)