aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-kernel/cryptodev/cryptodev-qoriq_1.8.inc
blob: b55a33c46d1483f7604ba8357a0d9acac8067417 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
HOMEPAGE = "http://cryptodev-linux.org/"

LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"

python() {
    pkgs = d.getVar('PACKAGES', True).split()
    for p in pkgs:
        if 'cryptodev-qoriq' in p:
            d.appendVar("RPROVIDES_%s" % p, p.replace('cryptodev-qoriq', 'cryptodev'))
            d.appendVar("RCONFLICTS_%s" % p, p.replace('cryptodev-qoriq', 'cryptodev'))
            d.appendVar("RREPLACES_%s" % p, p.replace('cryptodev-qoriq', 'cryptodev'))
}

FILESEXTRAPATHS_prepend := "${THISDIR}/sdk_patches:"
FILESEXTRAPATHS_prepend := "${THISDIR}/yocto_patches:"

SRC_URI = "http://download.gna.org/cryptodev-linux/cryptodev-linux-${PV}.tar.gz"

SRC_URI[md5sum] = "02644cc4cd02301e0b503a332eb2f0b5"
SRC_URI[sha256sum] = "67fabde9fb67b286a96c4f45b594b0eccd0f761b495705c18f2ae9461b831376"

# SDK patches
SRC_URI_append = " file://0001-add-support-for-composite-TLS10-SHA1-AES-algorithm-o.patch \
file://0002-add-support-for-COMPAT_CIOCAUTHCRYPT-ioctl.patch \
file://0003-PKC-support-added-in-cryptodev-module.patch \
file://0004-Compat-versions-of-PKC-IOCTLs.patch \
file://0005-Asynchronous-interface-changes-in-cryptodev.patch \
file://0006-ECC_KEYGEN-and-DLC_KEYGEN-supported-in-cryptodev-mod.patch \
file://0007-RCU-stall-fixed-in-PKC-asynchronous-interface.patch \
file://0008-Add-RSA-Key-generation-offloading.patch \
file://0009-Fixed-compilation-error-of-openssl-with-fsl-cryptode.patch \
file://0010-add-support-for-composite-TLS10-SHA1-3DES-algorithm-.patch \
file://0011-add-support-for-TLSv1.1-record-offload.patch \
file://0012-add-support-for-TLSv1.2-record-offload.patch \
file://0013-clean-up-code-layout.patch \
file://0014-remove-redundant-data-copy-for-pkc-operations.patch \
file://0015-fix-pkc-request-deallocation.patch \
file://0016-add-basic-detection-of-asym-features.patch \
file://0017-remove-dead-code.patch \
file://0018-fix-compat-warnings.patch \
file://0019-fix-size_t-print-format.patch \
file://0020-fix-uninitialized-variable-compiler-warning.patch \
file://0021-check-return-codes-for-copy-to-from-user-functions.patch \
file://0022-fix-double-free-pkc-req-on-error.patch \
file://0023-remove-MAY_BACKLOG-flag-from-requests.patch \
file://0024-fix-COMPAT_CIOCKEY-ioctl-command-number.patch \
file://0025-fix-benchmarks-linking.patch \
file://0026-fix-Makefile-to-allow-parallel-make-with-j-option.patch \
file://0027-use-Linux-kernel-conventions-for-Makefile-variables.patch \
file://0028-for-consistency-use-.-instead-of-.-in-makefiles.patch \
file://0029-fix-clean-up-on-error-path-for-crypto_create_session.patch \
file://0030-remove-code-duplication-in-cryptodev_hash_init.patch \
file://0031-fix-comment-typo.patch \
file://0032-avoid-calls-to-kmalloc-on-hotpaths.patch \
file://0033-avoid-unnecessary-checks-for-hash-clean-up.patch \
file://0034-extend-API-with-CIOCHASH-to-support-direct-hash-oper.patch \
file://0035-use-directly-crypto-API-digest-operation-for-CIOCHAS.patch \
file://0036-add-compat-for-CIOCHASH-operation.patch \
file://0037-rewrite-sha_speed.c-to-reduce-code-duplication.patch \
file://0038-extend-sha_speed.c-to-test-CIOCHASH.patch \
file://0039-fix-memory-leaks-on-error-path-for-CIOCHASH.patch \
file://0040-fix-structure-init-in-sha_speed-test.patch \
file://0041-add-separate-target-for-building-tests.patch \
file://0042-fix-destination-for-staged-installs.patch \
file://0043-add-install-target-for-tests.patch \
file://0044-add-aes-256-xts-support-for-async-speed-test.patch \
file://0045-add-support-for-crc32c-hash-async-speed-test.patch \
file://0046-add-support-for-sha1-hash-async-speed-test.patch \
file://0047-add-support-for-sha2-256-hash-async-speed-test.patch \
file://0048-add-support-for-aes-256-xts-sync-speed-test.patch \
file://0049-add-support-for-crc32c-hash-sync-speed-test.patch \
file://0050-add-basic-optargs-support-for-async_speed-test.patch \
file://0051-enable-async-code-by-default.patch \
file://0052-add-flag-to-report-in-a-machine-friendly-format.patch \
file://0053-honor-the-m-flag-in-async_speed.patch \
file://0054-rename-algorithm-names-for-clarity.patch \
file://0055-add-multithreaded-wrapper-for-async-speed-test.patch \
file://0056-fix-set-min-value-when-allocating-alligned-memory-bu.patch \
file://0057-gracefull-stop-for-async-speed-tests.patch \
file://0058-sanity-check-on-dev-crypto-availability.patch \
file://0059-fix-some-issues-with-parsing-mpstat-output.patch \
file://0060-more-precision-in-running-mpstat.patch \
file://0061-add-a-little-space-in-the-output-for-clarity.patch \
file://0062-fix-build-warnings-on-implicit-function-declarations.patch \
file://0063-avoid-implicit-conversion-between-signed-and-unsigne.patch \
file://0064-remove-not-used-local-variables.patch \
file://0065-return-error-code-of-the-test-if-there-is-one.patch \
file://0066-do-more-strict-code-checking-to-avoid-maintenance-is.patch \
file://0067-fix-issues-with-install-target.patch \
file://0068-setting-KERNEL_DIR-is-not-necessary-to-build-tests.patch \
file://0069-fix-the-reported-unit.patch \
file://0070-remove-old-results-to-avoid-incorrect-reports.patch \
file://0071-fix-the-scale-of-the-runtime-value.patch \
file://0072-use-.-instead-of-.-for-consistency.patch \
file://0073-really-fix-again.-the-mpstat-issue.patch \
file://0074-make-default-output-tabular.patch \
file://0075-fix-incorrect-handling-of-error-cases.patch \
file://0076-exit-early-if-cryptodev-tests-are-not-installed.patch \
file://0077-the-C-standard-used-by-cryptodev-is-C90-with-GNU-ext.patch \
file://0078-remove-output-line-because-it-does-not-add-clarity-t.patch \
file://0079-fix-typo-use-consistent-spacing.patch \
file://0080-graceful-exit-if-cryptodev-is-not-built-with-ASYNC-f.patch \
file://0081-add-sync-speed-tests-with-the-same-format-as-async-o.patch \
file://0082-force-LC_TIME-value-to-avoid-mpstat-not-using-ISO860.patch \
file://0083-use-the-same-algorithm-names-in-sync_speed-as-in-asy.patch \
file://0084-fix-ignored-SIGALRM-signals-on-some-platforms.patch \
file://0085-add-notes-about-configured-limits-in-SEC-driver.patch \
file://0086-add-a-wrapper-script-for-running-all-tests.patch \
file://0087-add-to-cpu-idle-for-convenience.patch \
file://0088-merge-sync-and-async-benchmarks-into-a-single-progra.patch \
file://0089-add-async-option-to-run_crypto_tests.sh.patch \
file://0090-Adjust-to-recent-user-page-API-changes.patch \
file://0091-Fix-test-compile-time-warnings.patch \
file://0092-Support-skcipher-in-addition-to-ablkcipher-API.patch \
file://0093-Fix-ablkcipher-algorithms-usage-in-v4.8-kernels.patch \
file://0094-Adjust-to-another-change-in-the-user-page-API.patch \
file://0095-rename-header-file-to-clarify-purpose.patch \
file://0096-use-buf_align-macro-to-reduce-code-duplication.patch \
file://0097-avoid-implicit-conversion-between-signed-and-unsigne.patch \
file://0098-reduce-tests-Makefile-distance-with-upstream.patch \
file://0099-add-support-for-authenc-hmac-sha1-cbc-aes-speed-test.patch \
file://0100-close-the-session-after-every-test.patch \
file://0101-add-support-for-rsa-speed-tests.patch \
file://0102-adjust-to-API-changes-in-kernel-4.10.patch \
file://0103-zc-Use-the-power-of-elif.patch \
file://0104-fix-reset-finish-condition-before-test-start.patch \
file://0105-update-copyright-notes.patch \
"
SRC_URI_append = " file://0003-update-the-install-path-for-cryptodev-tests.patch"

# NOTE: remove this patch and all traces of DISTRO_FEATURE c29x_pkc
# if pkc-host does not need customized cryptodev patches anymore
SRC_URI_append = "${@bb.utils.contains('DISTRO_FEATURES', 'c29x_pkc', ' file://0001-don-t-advertise-RSA-keygen.patch', '', d)}"

S = "${WORKDIR}/cryptodev-linux-${PV}"

CLEANBROKEN = "1"