<commit_before>#
# This file was derived from the 'Hello World!' example recipe in the
# Yocto Project Development Manual.
#

DESCRIPTION = "Open Content Decryption Module"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=ea83f8bc099c40bde8c4f2441a6eb40b"

SRC_URI = "git://github.com/kuscsik/linaro-cdmi.git;protocol=https;branch=master"
SRCREV_pn-ocdmi ?= "${AUTOREV}"

S = "${WORKDIR}/git"

EXTRA_OECONF_append = "${@base_contains('MACHINE_FEATURES', 'optee', '--enable-aes-ta', '', d)} "

# * use-playready : Enables support for Playready CDMI.
#
# * debug-build : Builds OCDM with debug symbols and verbose logging.

DEPENDS_append = " openssl portmap"

DEPENDS_append = "${@base_contains('PACKAGECONFIG','optee','optee-aes-decryptor','',d)}"

# Only ClearKey implementation depends on ssl
DEPENDS_remove = " \
  ${@base_contains('PACKAGECONFIG','use-playready','openssl','',d)} \
  "

inherit autotools
<commit_msg>OCDM: fix optee dependency<commit_after>#
# This file was derived from the 'Hello World!' example recipe in the
# Yocto Project Development Manual.
#

DESCRIPTION = "Open Content Decryption Module"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=ea83f8bc099c40bde8c4f2441a6eb40b"

SRC_URI = "git://github.com/kuscsik/linaro-cdmi.git;protocol=https;branch=master"
SRCREV_pn-ocdmi ?= "${AUTOREV}"

S = "${WORKDIR}/git"

EXTRA_OECONF_append = "${@base_contains('MACHINE_FEATURES', 'optee', '--enable-aes-ta', '', d)} "

# * use-playready : Enables support for Playready CDMI.
#
# * debug-build : Builds OCDM with debug symbols and verbose logging.

DEPENDS_append = " openssl portmap"

DEPENDS_append = "${@base_contains('MACHINE_FEATURES','optee',' optee-aes-decryptor ','',d)}"

# Only ClearKey implementation depends on ssl
DEPENDS_remove = " \
  ${@base_contains('PACKAGECONFIG','use-playready','openssl','',d)} \
  "

inherit autotools

{'fraction_non_alphanumeric': 0.15224358974358973, 'fraction_numerical': 0.019230769230769232, 'mean_word_length': 5.886029411764706, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2129365', 'n_tokens_mistral': 706, 'n_tokens_neox': 689, 'n_words': 139}