Browse Source

Merge "securemsm-kernel: Compile the SMMU proxy driver with Bazel"

qctecmdr 1 year ago
parent
commit
3a48ee6708
3 changed files with 20 additions and 1 deletions
  1. 10 0
      BUILD.bazel
  2. 2 1
      pineapple.bzl
  3. 8 0
      securemsm_modules.bzl

+ 10 - 0
BUILD.bazel

@@ -47,6 +47,16 @@ ddk_headers(
     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")
 
 define_pineapple()

+ 2 - 1
pineapple.bzl

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

+ 8 - 0
securemsm_modules.bzl

@@ -4,6 +4,7 @@ TZLOG_PATH = "tz_log"
 HDCP_PATH = "hdcp"
 QCEDEV_PATH = "crypto-qti"
 QRNG_PATH = "qrng"
+SMMU_PROXY_PATH = "smmu-proxy"
 
 # This dictionary holds all the securemsm-kernel  modules included by calling register_securemsm_module
 securemsm_modules = {}
@@ -121,3 +122,10 @@ register_securemsm_module(
     deps = [":qcedev_local_headers",
             "%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"],
+)