diff options
author | Naveen Saini <naveen.kumar.saini@intel.com> | 2019-07-04 15:58:31 +0800 |
---|---|---|
committer | Anuj Mittal <anuj.mittal@intel.com> | 2019-07-04 17:39:29 +0800 |
commit | 5033081048aada0319e42e7cca40779c7941540a (patch) | |
tree | d91af56784c826ff440c18e4d5d7f4b2b77c019d /recipes-graphics/hdcp | |
parent | 41967144c4b29e2ace0e1ec43b49944c0df3cb9f (diff) | |
download | meta-intel-5033081048aada0319e42e7cca40779c7941540a.tar.gz |
hdcp: add recipe
Intel(R) unified HDCP (High-bandwidth Digital Content Protection)
is a user space implementation to prevent copying of digital
audio & video content across digital display interfaces.
The Intel(R) unified HDCP is dependent on kernel space HDCP
implementation to provide a complete stack to enable the
HDCP1.4 and HDCP2.2 protection.
HDCP2.2 service support is available kernel 5.2-rc onward.
Currently 4.19 kernel and mainline-tracking (base branch) from Intel PKT
does not have HDCP2.2 support.
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Diffstat (limited to 'recipes-graphics/hdcp')
-rw-r--r-- | recipes-graphics/hdcp/hdcp/0001-main-fix-hdcpd-service-failure.patch | 42 | ||||
-rw-r--r-- | recipes-graphics/hdcp/hdcp_19.1.0.bb | 26 |
2 files changed, 68 insertions, 0 deletions
diff --git a/recipes-graphics/hdcp/hdcp/0001-main-fix-hdcpd-service-failure.patch b/recipes-graphics/hdcp/hdcp/0001-main-fix-hdcpd-service-failure.patch new file mode 100644 index 00000000..f07d466f --- /dev/null +++ b/recipes-graphics/hdcp/hdcp/0001-main-fix-hdcpd-service-failure.patch | |||
@@ -0,0 +1,42 @@ | |||
1 | From 5cbcecff0bb7fa1c617d3082e7ad94c22e5f4eb1 Mon Sep 17 00:00:00 2001 | ||
2 | From: Naveen Saini <naveen.kumar.saini@intel.com> | ||
3 | Date: Wed, 3 Jul 2019 17:13:15 +0800 | ||
4 | Subject: [PATCH] main: fix hdcpd service failure | ||
5 | |||
6 | Child process not able to finish before parent process | ||
7 | exits, which causing hdcpd service failure. | ||
8 | |||
9 | Added wait function to block parent process | ||
10 | until child process exits. | ||
11 | |||
12 | Upstream-Status: Submitted[https://github.com/intel/hdcp/pull/17] | ||
13 | |||
14 | Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com> | ||
15 | --- | ||
16 | daemon/main.cpp | 3 +++ | ||
17 | 1 file changed, 3 insertions(+) | ||
18 | |||
19 | diff --git a/daemon/main.cpp b/daemon/main.cpp | ||
20 | index 9a028d7..ef1e047 100644 | ||
21 | --- a/daemon/main.cpp | ||
22 | +++ b/daemon/main.cpp | ||
23 | @@ -36,6 +36,7 @@ | ||
24 | #include <sys/ioctl.h> | ||
25 | #include <fcntl.h> | ||
26 | #include <iostream> | ||
27 | +#include <sys/wait.h> | ||
28 | |||
29 | #include "hdcpdef.h" | ||
30 | #include "srm.h" | ||
31 | @@ -93,6 +94,8 @@ int32_t daemon_init(void) | ||
32 | } | ||
33 | else if (pid != 0) | ||
34 | { | ||
35 | + int status; | ||
36 | + wait(&status); | ||
37 | exit(SUCCESS); // parent exit | ||
38 | } | ||
39 | |||
40 | -- | ||
41 | 2.17.1 | ||
42 | |||
diff --git a/recipes-graphics/hdcp/hdcp_19.1.0.bb b/recipes-graphics/hdcp/hdcp_19.1.0.bb new file mode 100644 index 00000000..0ff0fcdd --- /dev/null +++ b/recipes-graphics/hdcp/hdcp_19.1.0.bb | |||
@@ -0,0 +1,26 @@ | |||
1 | SUMMARY = "Intel(R) unified HDCP SDK" | ||
2 | DESCRIPTION = "This is a user space implementation to prevent copying of \ | ||
3 | digital audio & video content across digital display interfaces. It provides \ | ||
4 | Linux user space implementation to enable the HDCP1.4 and HDCP2.2 protection \ | ||
5 | for external digital display interface" | ||
6 | LICENSE = "BSD-3-Clause" | ||
7 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=c50969be4feb8b99c6baa3795ede4dce" | ||
8 | SECTION = "lib" | ||
9 | |||
10 | inherit pkgconfig cmake useradd systemd distro_features_check | ||
11 | |||
12 | SRC_URI = "git://github.com/intel/hdcp.git \ | ||
13 | file://0001-main-fix-hdcpd-service-failure.patch \ | ||
14 | " | ||
15 | SRCREV = "8543db04594d7a46ebc5a5fa14d5818bb1eb6327" | ||
16 | S = "${WORKDIR}/git" | ||
17 | |||
18 | REQUIRED_DISTRO_FEATURES = "systemd" | ||
19 | |||
20 | DEPENDS = "libdrm virtual/mesa systemd" | ||
21 | |||
22 | USERADD_PACKAGES = "${PN}" | ||
23 | USERADD_PARAM_${PN} = "--system --no-create-home --shell /bin/false --gid nogroup media" | ||
24 | |||
25 | SYSTEMD_SERVICE_${PN} = "hdcpd.service" | ||
26 | SYSTEMD_AUTO_ENABLE = "disable" | ||