Securemsm-kernel:hdcp bazel support
Steps to test 1. Create symlink cd kernel_platform mkdir techpacks cd techpacks mkdir securemsm-kernel cd securemsm-kernel ln /vendor/qcom/open-source/securemsm-kernel/* . 2. To compile cd kernel_platfrom tools/bazel run --lto=thin //techpacks/securemsm-kernel:pineapple_consolidate_securemsm-kernel_dist Test done:: Able to compile hdcp DLKM and able to install it at out/target/product/<target>/dlkm/lib/modules Change-Id: Ic2ab2656bd6434944583a12f54920e3db6c15f2d
This commit is contained in:
11
BUILD.bazel
11
BUILD.bazel
@@ -25,7 +25,16 @@ ddk_headers(
|
|||||||
],
|
],
|
||||||
includes = ["linux"]
|
includes = ["linux"]
|
||||||
)
|
)
|
||||||
|
ddk_headers(
|
||||||
|
name = "hdcp_qseecom_dlkm",
|
||||||
|
hdrs = glob([
|
||||||
|
"linux/*.h",
|
||||||
|
"linux/misc/qseecom_kernel.h",
|
||||||
|
"hdcp_qseecom/*.h",
|
||||||
|
"config/*.h"
|
||||||
|
]),
|
||||||
|
includes = [".","linux","config"]
|
||||||
|
)
|
||||||
load("pineapple.bzl", "define_pineapple")
|
load("pineapple.bzl", "define_pineapple")
|
||||||
|
|
||||||
define_pineapple()
|
define_pineapple()
|
||||||
|
@@ -6,6 +6,7 @@ def define_pineapple():
|
|||||||
modules = [
|
modules = [
|
||||||
"smcinvoke_dlkm",
|
"smcinvoke_dlkm",
|
||||||
"tz_log_dlkm",
|
"tz_log_dlkm",
|
||||||
|
"hdcp_qseecom_dlkm"
|
||||||
],
|
],
|
||||||
extra_options = [
|
extra_options = [
|
||||||
"CONFIG_QCOM_SMCINVOKE"]
|
"CONFIG_QCOM_SMCINVOKE"]
|
||||||
|
@@ -1,6 +1,7 @@
|
|||||||
SMCINVOKE_PATH = "smcinvoke"
|
SMCINVOKE_PATH = "smcinvoke"
|
||||||
QSEECOM_PATH = "qseecom"
|
QSEECOM_PATH = "qseecom"
|
||||||
TZLOG_PATH = "tz_log"
|
TZLOG_PATH = "tz_log"
|
||||||
|
HDCP_PATH = "hdcp"
|
||||||
|
|
||||||
# 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 = {}
|
||||||
@@ -76,3 +77,12 @@ register_securemsm_module(
|
|||||||
path = TZLOG_PATH,
|
path = TZLOG_PATH,
|
||||||
default_srcs = ["tz_log.c"],
|
default_srcs = ["tz_log.c"],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
register_securemsm_module(
|
||||||
|
name = "hdcp_qseecom_dlkm",
|
||||||
|
path = HDCP_PATH,
|
||||||
|
default_srcs = ["hdcp_qseecom.c"],
|
||||||
|
deps = [":hdcp_qseecom_dlkm","%b_smcinvoke_dlkm"],
|
||||||
|
srcs = ["config/sec-kernel_defconfig.h"],
|
||||||
|
copts = ["-include", "config/sec-kernel_defconfig.h"],
|
||||||
|
)
|
||||||
|
Reference in New Issue
Block a user