Skip to contentSkip to conversation

QorIQ SDK V2.0 patches - Part IV

PATCH New [email protected] 1 participant 6 messages Jun 21, 2016

lore
Share & tools
lore
#0 lore raw

cover QorIQ SDK V2.0 patches - Part IV

From: Ting Liu <[email protected]>

Cristian Stoica (2):
cryptodev-qoriq: upgrade to 1.8 plus fsl patches
openssl-qoriq: upgrade to 1.0.2h plus fsl patches

Ting Liu (3):
cryptodev: rename to cryptodev-qoriq
openssl: rename to openssl-qoriq
qemu: rename to qemu-qoriq

 conf/machine/include/qoriq.inc                     |   11 +-
 ...ev-add-support-for-TLS-algorithms-offload.patch |  317 --
 ...0003-cryptodev-fix-algorithm-registration.patch |   64 -
 ...ake-it-more-robust-and-recognize-KERNEL_B.patch |   74 -
 .../0006-Fixed-private-key-support-for-DH.patch    |   33 -
 .../0007-Fixed-private-key-support-for-DH.patch    |   35 -
 ...itial-support-for-PKC-in-cryptodev-engine.patch | 1564 -------
 ...009-Added-hwrng-dev-file-as-source-of-RNG.patch |   28 -
 ...s-interface-added-for-PKC-cryptodev-inter.patch | 2039 ---------
 ...gen-operation-and-support-gendsa-command-.patch |  153 -
 .../openssl/openssl-fsl/0012-RSA-Keygen-Fix.patch  |   64 -
 .../0013-Removed-local-copy-of-curve_t-type.patch  |  164 -
 ...us-parameter-is-not-populated-by-dhparams.patch |   43 -
 .../0015-SW-Backoff-mechanism-for-dsa-keygen.patch |   53 -
 .../0016-Fixed-DH-keygen-pair-generator.patch      |  100 -
 ...dd-support-for-aes-gcm-algorithm-offloadi.patch |  309 --
 ...ev-extend-TLS-offload-with-3des_cbc_hmac_.patch |  193 -
 ...ev-add-support-for-TLSv1.1-record-offload.patch |  355 --
 ...ev-add-support-for-TLSv1.2-record-offload.patch |  359 --
 .../0021-cryptodev-drop-redundant-function.patch   |   75 -
 ...yptodev-do-not-zero-the-buffer-before-use.patch |   48 -
 .../0023-cryptodev-clean-up-code-layout.patch      |   72 -
 ...odev-do-not-cache-file-descriptor-in-open.patch |  100 -
 .../openssl/{openssl.inc => openssl-qoriq.inc}     |  135 +-
 .../openssl/openssl-qoriq/Makefiles-ptest.patch    |   77 +
 .../openssl-qoriq/configure-musl-target.patch      |   27 +
 .../openssl/openssl-qoriq/configure-targets.patch  |   37 +
 .../crypto_use_bigint_in_x86-64_perl.patch         |   35 +
 .../openssl-qoriq/debian/c_rehash-compat.patch     |   71 +
 .../{openssl => openssl-qoriq}/debian/ca.patch     |    0
 .../debian/debian-targets.patch                    |   25 +-
 .../debian/man-dir.patch                           |    0
 .../debian/man-section.patch                       |    0
 .../debian/no-rpath.patch                          |    0
 .../debian/no-symbolic.patch                       |    0
 .../{openssl => openssl-qoriq}/debian/pic.patch    |    0
 .../debian/version-script.patch                    |  311 +-
 .../debian1.0.2/block_digicert_malaysia.patch      |   29 +
 .../debian1.0.2/block_diginotar.patch              |   68 +
 .../openssl-qoriq/debian1.0.2/version-script.patch | 4656 ++++++++++++++++++++
 .../engines-install-in-libdir-ssl.patch            |   42 +-
 .../openssl/{openssl => openssl-qoriq}/find.pl     |    0
 .../openssl-qoriq/fix-cipher-des-ede3-cfb1.patch   |   21 +
 .../{openssl => openssl-qoriq}/oe-ldflags.patch    |    0
 .../openssl-qoriq/openssl-1.0.2a-x32-asm.patch     |   46 +
 ...-pointer-dereference-in-EVP_DigestInit_ex.patch |   23 +
 .../openssl/openssl-qoriq/openssl-c_rehash.sh      |  210 +
 .../openssl-fix-des.pod-error.patch                |    0
 .../openssl-qoriq/openssl_fix_for_x32.patch        |   39 +
 .../openssl/openssl-qoriq/parallel.patch           |  326 ++
 .../openssl/openssl-qoriq/ptest-deps.patch         |   34 +
 .../openssl-qoriq/ptest_makefile_deps.patch        |  248 ++
 ...double-initialization-of-cryptodev-engine.patch |   63 +-
 ...ev-add-support-for-TLS-algorithms-offload.patch |  343 ++
 ...0003-cryptodev-fix-algorithm-registration.patch |   61 +
 ...-ECC-Support-header-for-Cryptodev-Engine.patch} |   35 +-
 ...itial-support-for-PKC-in-cryptodev-engine.patch | 1578 +++++++
 ...006-Added-hwrng-dev-file-as-source-of-RNG.patch |   28 +
 ...s-interface-added-for-PKC-cryptodev-inter.patch | 2050 +++++++++
 ...gen-operation-and-support-gendsa-command-.patch |  155 +
 .../openssl-qoriq/qoriq/0009-RSA-Keygen-Fix.patch  |   64 +
 .../0010-Removed-local-copy-of-curve_t-type.patch  |  163 +
 ...us-parameter-is-not-populated-by-dhparams.patch |   43 +
 .../0012-SW-Backoff-mechanism-for-dsa-keygen.patch |   53 +
 .../0013-Fixed-DH-keygen-pair-generator.patch      |  100 +
 ...dd-support-for-aes-gcm-algorithm-offloadi.patch |  321 ++
 ...ev-extend-TLS-offload-with-3des_cbc_hmac_.patch |  199 +
 ...ev-add-support-for-TLSv1.1-record-offload.patch |  338 ++
 ...ev-add-support-for-TLSv1.2-record-offload.patch |  377 ++
 .../0018-cryptodev-drop-redundant-function.patch   |   72 +
 ...yptodev-do-not-zero-the-buffer-before-use.patch |   48 +
 .../0020-cryptodev-clean-up-code-layout.patch      |   73 +
 ...odev-do-not-cache-file-descriptor-in-open.patch |   93 +
 ...ryptodev-put_dev_crypto-should-be-an-int.patch} |   18 +-
 ...odev-simplify-cryptodev-pkc-support-code.patch} |  168 +-
 ...larify-code-remove-assignments-from-condi.patch |   37 +
 ...lean-up-context-state-before-anything-els.patch |   34 +
 ...emove-code-duplication-in-digest-operatio.patch |  155 +
 ...ut-all-digest-ioctls-into-a-single-functi.patch |  108 +
 .../0028-cryptodev-fix-debug-print-messages.patch  |   90 +
 ...-use-CIOCHASH-ioctl-for-digest-operations.patch |   91 +
 ...educe-duplicated-efforts-for-searching-in.patch |  106 +
 ...cryptodev-remove-not-used-local-variables.patch |   46 +
 ...odev-hide-not-used-variable-behind-ifndef.patch |   27 +
 ...3-cryptodev-fix-function-declaration-typo.patch |   26 +
 ...ryptodev-fix-incorrect-function-signature.patch |   26 +
 ...ix-warnings-on-excess-elements-in-struct-.patch |  110 +
 .../0036-cryptodev-fix-free-on-error-path.patch    |   46 +
 .../0037-cryptodev-fix-return-value-on-error.patch |   28 +
 ...38-cryptodev-match-types-with-cryptodev.h.patch |   29 +
 ...ptodev-explicitly-discard-const-qualifier.patch |   30 +
 .../0040-cryptodev-replace-caddr_t-with-void.patch |   95 +
 ...heck-for-errors-inside-cryptodev_rsa_mod_.patch |   49 +
 ...heck-for-errors-inside-cryptodev_rsa_mod_.patch |   69 +
 ...heck-for-errors-inside-cryptodev_dh_compu.patch |   52 +
 ...heck-for-errors-inside-cryptodev_dh_compu.patch |   76 +
 ...change-signature-for-conversion-functions.patch |   38 +
 ...add-explicit-cast-for-known-BIGNUM-values.patch |   26 +
 ...ptodev-treat-all-build-warnings-as-errors.patch |   28 +
 ...is-used-uninitialized-warning-on-some-com.patch |   29 +
 .../openssl/openssl-qoriq/run-ptest                |    2 +
 .../{openssl => openssl-qoriq}/shared-libs.patch   |    0
 .../openssl/openssl-qoriq_1.0.2h.bb                |  111 +
 .../openssl/openssl/configure-targets.patch        |   34 -
 .../openssl/openssl/debian/c_rehash-compat.patch   |   45 -
 .../openssl/openssl/debian/make-targets.patch      |   15 -
 .../openssl/openssl/fix-cipher-des-ede3-cfb1.patch |   22 -
 .../openssl/openssl/initial-aarch64-bits.patch     |  119 -
 ...-pointer-dereference-in-EVP_DigestInit_ex.patch |   21 -
 ...NULL-pointer-dereference-in-dh_pub_encode.patch |   39 -
 .../openssl/openssl/openssl-fix-link.patch         |   35 -
 .../openssl/openssl/openssl_fix_for_x32.patch      |   90 -
 recipes-connectivity/openssl/openssl_1.0.1i.bb     |   53 -
 .../openssl/openssl_1.0.1i.bbappend                |   40 -
 .../add-ptest-in-makefile.patch                    |    0
 .../qemu/{qemu => qemu-qoriq}/run-ptest            |    0
 .../qemu/{qemu_fslgit.bb => qemu-qoriq_git.bb}     |   14 +-
 recipes-kernel/cryptodev/cryptodev-module_1.7.bb   |   10 -
 ...v-linux_1.7.bb => cryptodev-qoriq-linux_1.8.bb} |    4 +-
 .../cryptodev/cryptodev-qoriq-module_1.8.bb        |   19 +
 .../cryptodev/cryptodev-qoriq-tests_1.8.bb         |   24 +
 .../{cryptodev_1.7.inc => cryptodev-qoriq_1.8.inc} |   51 +-
 recipes-kernel/cryptodev/cryptodev-tests_1.7.bb    |   17 -
 .../files/0001-don-t-advertise-RSA-keygen.patch    |   33 -
 .../0001-fix-compilation-against-linux-3.19.patch  |   36 -
 ...ests-Makefile-usage-of-LDLIBS-vs.-LDFLAGS.patch |   29 -
 ...ile-fix-arg-passing-to-CC-in-implicit-rul.patch |   28 -
 ...talling-header-file-provided-by-another-p.patch |   29 -
 ...pile-and-install-rules-for-cryptodev-test.patch |   65 -
 ...-for-composite-TLS10-SHA1-AES-algorithm-o.patch |    6 +-
 ...dd-support-for-COMPAT_CIOCAUTHCRYPT-ioctl.patch |    6 +-
 ...003-PKC-support-added-in-cryptodev-module.patch |    6 +-
 .../0004-Compat-versions-of-PKC-IOCTLs.patch       |    6 +-
 ...ynchronous-interface-changes-in-cryptodev.patch |    6 +-
 ...and-DLC_KEYGEN-supported-in-cryptodev-mod.patch |    6 +-
 ...stall-fixed-in-PKC-asynchronous-interface.patch |    6 +-
 .../0008-Add-RSA-Key-generation-offloading.patch   |    6 +-
 ...lation-error-of-openssl-with-fsl-cryptode.patch |    6 +-
 ...-for-composite-TLS10-SHA1-3DES-algorithm-.patch |    6 +-
 ...11-add-support-for-TLSv1.1-record-offload.patch |    6 +-
 ...12-add-support-for-TLSv1.2-record-offload.patch |    6 +-
 .../0013-clean-up-code-layout.patch                |    6 +-
 ...ve-redundant-data-copy-for-pkc-operations.patch |    6 +-
 .../0015-fix-pkc-request-deallocation.patch        |    6 +-
 ...0016-add-basic-detection-of-asym-features.patch |    6 +-
 .../0017-remove-dead-code.patch                    |    4 +-
 .../0018-fix-compat-warnings.patch                 |    4 +-
 .../0019-fix-size_t-print-format.patch             |    4 +-
 ...x-uninitialized-variable-compiler-warning.patch |    4 +-
 ...urn-codes-for-copy-to-from-user-functions.patch |    4 +-
 .../0022-fix-double-free-pkc-req-on-error.patch    |    4 +-
 ...023-remove-MAY_BACKLOG-flag-from-requests.patch |    4 +-
 ...4-fix-COMPAT_CIOCKEY-ioctl-command-number.patch |    4 +-
 .../sdk_patches/0025-fix-benchmarks-linking.patch  |   25 +
 ...file-to-allow-parallel-make-with-j-option.patch |   56 +
 ...kernel-conventions-for-Makefile-variables.patch |   47 +
 ...nsistency-use-.-instead-of-.-in-makefiles.patch |   73 +
 ...p-on-error-path-for-crypto_create_session.patch |  117 +
 ...e-code-duplication-in-cryptodev_hash_init.patch |   59 +
 .../sdk_patches/0031-fix-comment-typo.patch        |   26 +
 .../0032-avoid-calls-to-kmalloc-on-hotpaths.patch  |  220 +
 ...void-unnecessary-checks-for-hash-clean-up.patch |   33 +
 ...with-CIOCHASH-to-support-direct-hash-oper.patch |  114 +
 ...y-crypto-API-digest-operation-for-CIOCHAS.patch |  315 ++
 .../0036-add-compat-for-CIOCHASH-operation.patch   |  120 +
 ...te-sha_speed.c-to-reduce-code-duplication.patch |  190 +
 .../0038-extend-sha_speed.c-to-test-CIOCHASH.patch |  143 +
 ...x-memory-leaks-on-error-path-for-CIOCHASH.patch |   70 +
 ...0040-fix-structure-init-in-sha_speed-test.patch |   53 +
 ...41-add-separate-target-for-building-tests.patch |   38 +
 .../0042-fix-destination-for-staged-installs.patch |   55 +
 .../0043-add-install-target-for-tests.patch        |   46 +
 ...pile-and-install-rules-for-cryptodev-test.patch |   50 +
 ...talling-header-file-provided-by-another-p.patch |   29 +
 174 files changed, 16150 insertions(+), 7449 deletions(-)
 delete mode 100644 recipes-connectivity/openssl/openssl-fsl/0002-eng_cryptodev-add-support-for-TLS-algorithms-offload.patch
 delete mode 100644 recipes-connectivity/openssl/openssl-fsl/0003-cryptodev-fix-algorithm-registration.patch
 delete mode 100644 recipes-connectivity/openssl/openssl-fsl/0004-linux-pcc-make-it-more-robust-and-recognize-KERNEL_B.patch
 delete mode 100644 recipes-connectivity/openssl/openssl-fsl/0006-Fixed-private-key-support-for-DH.patch
 delete mode 100644 recipes-connectivity/openssl/openssl-fsl/0007-Fixed-private-key-support-for-DH.patch
 delete mode 100644 recipes-connectivity/openssl/openssl-fsl/0008-Initial-support-for-PKC-in-cryptodev-engine.patch
 delete mode 100644 recipes-connectivity/openssl/openssl-fsl/0009-Added-hwrng-dev-file-as-source-of-RNG.patch
 delete mode 100644 recipes-connectivity/openssl/openssl-fsl/0010-Asynchronous-interface-added-for-PKC-cryptodev-inter.patch
 delete mode 100644 recipes-connectivity/openssl/openssl-fsl/0011-Add-RSA-keygen-operation-and-support-gendsa-command-.patch
 delete mode 100644 recipes-connectivity/openssl/openssl-fsl/0012-RSA-Keygen-Fix.patch
 delete mode 100644 recipes-connectivity/openssl/openssl-fsl/0013-Removed-local-copy-of-curve_t-type.patch
 delete mode 100644 recipes-connectivity/openssl/openssl-fsl/0014-Modulus-parameter-is-not-populated-by-dhparams.patch
 delete mode 100644 recipes-connectivity/openssl/openssl-fsl/0015-SW-Backoff-mechanism-for-dsa-keygen.patch
 delete mode 100644 recipes-connectivity/openssl/openssl-fsl/0016-Fixed-DH-keygen-pair-generator.patch
 delete mode 100644 recipes-connectivity/openssl/openssl-fsl/0017-cryptodev-add-support-for-aes-gcm-algorithm-offloadi.patch
 delete mode 100644 recipes-connectivity/openssl/openssl-fsl/0018-eng_cryptodev-extend-TLS-offload-with-3des_cbc_hmac_.patch
 delete mode 100644 recipes-connectivity/openssl/openssl-fsl/0019-eng_cryptodev-add-support-for-TLSv1.1-record-offload.patch
 delete mode 100644 recipes-connectivity/openssl/openssl-fsl/0020-eng_cryptodev-add-support-for-TLSv1.2-record-offload.patch
 delete mode 100644 recipes-connectivity/openssl/openssl-fsl/0021-cryptodev-drop-redundant-function.patch
 delete mode 100644 recipes-connectivity/openssl/openssl-fsl/0022-cryptodev-do-not-zero-the-buffer-before-use.patch
 delete mode 100644 recipes-connectivity/openssl/openssl-fsl/0023-cryptodev-clean-up-code-layout.patch
 delete mode 100644 recipes-connectivity/openssl/openssl-fsl/0024-cryptodev-do-not-cache-file-descriptor-in-open.patch
 rename recipes-connectivity/openssl/{openssl.inc => openssl-qoriq.inc} (51%)
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/Makefiles-ptest.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/configure-musl-target.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/configure-targets.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/crypto_use_bigint_in_x86-64_perl.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/debian/c_rehash-compat.patch
 rename recipes-connectivity/openssl/{openssl => openssl-qoriq}/debian/ca.patch (100%)
 rename recipes-connectivity/openssl/{openssl => openssl-qoriq}/debian/debian-targets.patch (76%)
 rename recipes-connectivity/openssl/{openssl => openssl-qoriq}/debian/man-dir.patch (100%)
 rename recipes-connectivity/openssl/{openssl => openssl-qoriq}/debian/man-section.patch (100%)
 rename recipes-connectivity/openssl/{openssl => openssl-qoriq}/debian/no-rpath.patch (100%)
 rename recipes-connectivity/openssl/{openssl => openssl-qoriq}/debian/no-symbolic.patch (100%)
 rename recipes-connectivity/openssl/{openssl => openssl-qoriq}/debian/pic.patch (100%)
 rename recipes-connectivity/openssl/{openssl => openssl-qoriq}/debian/version-script.patch (95%)
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/debian1.0.2/block_digicert_malaysia.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/debian1.0.2/block_diginotar.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/debian1.0.2/version-script.patch
 rename recipes-connectivity/openssl/{openssl => openssl-qoriq}/engines-install-in-libdir-ssl.patch (81%)
 rename recipes-connectivity/openssl/{openssl => openssl-qoriq}/find.pl (100%)
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/fix-cipher-des-ede3-cfb1.patch
 rename recipes-connectivity/openssl/{openssl => openssl-qoriq}/oe-ldflags.patch (100%)
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/openssl-1.0.2a-x32-asm.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/openssl-avoid-NULL-pointer-dereference-in-EVP_DigestInit_ex.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/openssl-c_rehash.sh
 rename recipes-connectivity/openssl/{openssl => openssl-qoriq}/openssl-fix-des.pod-error.patch (100%)
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/openssl_fix_for_x32.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/parallel.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/ptest-deps.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/ptest_makefile_deps.patch
 rename recipes-connectivity/openssl/{openssl-fsl => openssl-qoriq/qoriq}/0001-remove-double-initialization-of-cryptodev-engine.patch (62%)
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0002-eng_cryptodev-add-support-for-TLS-algorithms-offload.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0003-cryptodev-fix-algorithm-registration.patch
 rename recipes-connectivity/openssl/{openssl-fsl/0005-ECC-Support-header-for-Cryptodev-Engine.patch => openssl-qoriq/qoriq/0004-ECC-Support-header-for-Cryptodev-Engine.patch} (92%)
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0005-Initial-support-for-PKC-in-cryptodev-engine.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0006-Added-hwrng-dev-file-as-source-of-RNG.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0007-Asynchronous-interface-added-for-PKC-cryptodev-inter.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0008-Add-RSA-keygen-operation-and-support-gendsa-command-.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0009-RSA-Keygen-Fix.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0010-Removed-local-copy-of-curve_t-type.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0011-Modulus-parameter-is-not-populated-by-dhparams.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0012-SW-Backoff-mechanism-for-dsa-keygen.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0013-Fixed-DH-keygen-pair-generator.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0014-cryptodev-add-support-for-aes-gcm-algorithm-offloadi.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0015-eng_cryptodev-extend-TLS-offload-with-3des_cbc_hmac_.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0016-eng_cryptodev-add-support-for-TLSv1.1-record-offload.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0017-eng_cryptodev-add-support-for-TLSv1.2-record-offload.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0018-cryptodev-drop-redundant-function.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0019-cryptodev-do-not-zero-the-buffer-before-use.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0020-cryptodev-clean-up-code-layout.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0021-cryptodev-do-not-cache-file-descriptor-in-open.patch
 rename recipes-connectivity/openssl/{openssl-fsl/0025-cryptodev-put_dev_crypto-should-be-an-int.patch => openssl-qoriq/qoriq/0022-cryptodev-put_dev_crypto-should-be-an-int.patch} (70%)
 rename recipes-connectivity/openssl/{openssl-fsl/0026-cryptodev-simplify-cryptodev-pkc-support-code.patch => openssl-qoriq/qoriq/0023-cryptodev-simplify-cryptodev-pkc-support-code.patch} (66%)
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0024-cryptodev-clarify-code-remove-assignments-from-condi.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0025-cryptodev-clean-up-context-state-before-anything-els.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0026-cryptodev-remove-code-duplication-in-digest-operatio.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0027-cryptodev-put-all-digest-ioctls-into-a-single-functi.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0028-cryptodev-fix-debug-print-messages.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0029-cryptodev-use-CIOCHASH-ioctl-for-digest-operations.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0030-cryptodev-reduce-duplicated-efforts-for-searching-in.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0031-cryptodev-remove-not-used-local-variables.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0032-cryptodev-hide-not-used-variable-behind-ifndef.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0033-cryptodev-fix-function-declaration-typo.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0034-cryptodev-fix-incorrect-function-signature.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0035-cryptodev-fix-warnings-on-excess-elements-in-struct-.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0036-cryptodev-fix-free-on-error-path.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0037-cryptodev-fix-return-value-on-error.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0038-cryptodev-match-types-with-cryptodev.h.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0039-cryptodev-explicitly-discard-const-qualifier.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0040-cryptodev-replace-caddr_t-with-void.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0041-cryptodev-check-for-errors-inside-cryptodev_rsa_mod_.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0042-cryptodev-check-for-errors-inside-cryptodev_rsa_mod_.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0043-cryptodev-check-for-errors-inside-cryptodev_dh_compu.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0044-cryptodev-check-for-errors-inside-cryptodev_dh_compu.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0045-cryptodev-change-signature-for-conversion-functions.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0046-cryptodev-add-explicit-cast-for-known-BIGNUM-values.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0047-cryptodev-treat-all-build-warnings-as-errors.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0048-fix-maclen-is-used-uninitialized-warning-on-some-com.patch
 create mode 100755 recipes-connectivity/openssl/openssl-qoriq/run-ptest
 rename recipes-connectivity/openssl/{openssl => openssl-qoriq}/shared-libs.patch (100%)
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq_1.0.2h.bb
 delete mode 100644 recipes-connectivity/openssl/openssl/configure-targets.patch
 delete mode 100644 recipes-connectivity/openssl/openssl/debian/c_rehash-compat.patch
 delete mode 100644 recipes-connectivity/openssl/openssl/debian/make-targets.patch
 delete mode 100644 recipes-connectivity/openssl/openssl/fix-cipher-des-ede3-cfb1.patch
 delete mode 100644 recipes-connectivity/openssl/openssl/initial-aarch64-bits.patch
 delete mode 100644 recipes-connectivity/openssl/openssl/openssl-avoid-NULL-pointer-dereference-in-EVP_DigestInit_ex.patch
 delete mode 100644 recipes-connectivity/openssl/openssl/openssl-avoid-NULL-pointer-dereference-in-dh_pub_encode.patch
 delete mode 100644 recipes-connectivity/openssl/openssl/openssl-fix-link.patch
 delete mode 100644 recipes-connectivity/openssl/openssl/openssl_fix_for_x32.patch
 delete mode 100644 recipes-connectivity/openssl/openssl_1.0.1i.bb
 delete mode 100644 recipes-connectivity/openssl/openssl_1.0.1i.bbappend
 rename recipes-devtools/qemu/{qemu => qemu-qoriq}/add-ptest-in-makefile.patch (100%)
 rename recipes-devtools/qemu/{qemu => qemu-qoriq}/run-ptest (100%)
 rename recipes-devtools/qemu/{qemu_fslgit.bb => qemu-qoriq_git.bb} (84%)
 delete mode 100644 recipes-kernel/cryptodev/cryptodev-module_1.7.bb
 rename recipes-kernel/cryptodev/{cryptodev-linux_1.7.bb => cryptodev-qoriq-linux_1.8.bb} (80%)
 create mode 100644 recipes-kernel/cryptodev/cryptodev-qoriq-module_1.8.bb
 create mode 100644 recipes-kernel/cryptodev/cryptodev-qoriq-tests_1.8.bb
 rename recipes-kernel/cryptodev/{cryptodev_1.7.inc => cryptodev-qoriq_1.8.inc} (51%)
 delete mode 100644 recipes-kernel/cryptodev/cryptodev-tests_1.7.bb
 delete mode 100644 recipes-kernel/cryptodev/files/0001-don-t-advertise-RSA-keygen.patch
 delete mode 100644 recipes-kernel/cryptodev/files/0001-fix-compilation-against-linux-3.19.patch
 delete mode 100644 recipes-kernel/cryptodev/files/0002-Fix-tests-Makefile-usage-of-LDLIBS-vs.-LDFLAGS.patch
 delete mode 100644 recipes-kernel/cryptodev/files/0002-tests-Makefile-fix-arg-passing-to-CC-in-implicit-rul.patch
 delete mode 100644 recipes-kernel/cryptodev/files/0003-Disable-installing-header-file-provided-by-another-p.patch
 delete mode 100644 recipes-kernel/cryptodev/files/0004-Add-the-compile-and-install-rules-for-cryptodev-test.patch
 rename recipes-kernel/cryptodev/{files => sdk_patches}/0001-add-support-for-composite-TLS10-SHA1-AES-algorithm-o.patch (91%)
 rename recipes-kernel/cryptodev/{files => sdk_patches}/0002-add-support-for-COMPAT_CIOCAUTHCRYPT-ioctl.patch (97%)
 rename recipes-kernel/cryptodev/{files => sdk_patches}/0003-PKC-support-added-in-cryptodev-module.patch (99%)
 rename recipes-kernel/cryptodev/{files => sdk_patches}/0004-Compat-versions-of-PKC-IOCTLs.patch (97%)
 rename recipes-kernel/cryptodev/{files => sdk_patches}/0005-Asynchronous-interface-changes-in-cryptodev.patch (97%)
 rename recipes-kernel/cryptodev/{files => sdk_patches}/0006-ECC_KEYGEN-and-DLC_KEYGEN-supported-in-cryptodev-mod.patch (97%)
 rename recipes-kernel/cryptodev/{files => sdk_patches}/0007-RCU-stall-fixed-in-PKC-asynchronous-interface.patch (98%)
 rename recipes-kernel/cryptodev/{files => sdk_patches}/0008-Add-RSA-Key-generation-offloading.patch (97%)
 rename recipes-kernel/cryptodev/{files => sdk_patches}/0009-Fixed-compilation-error-of-openssl-with-fsl-cryptode.patch (97%)
 rename recipes-kernel/cryptodev/{files => sdk_patches}/0010-add-support-for-composite-TLS10-SHA1-3DES-algorithm-.patch (91%)
 rename recipes-kernel/cryptodev/{files => sdk_patches}/0011-add-support-for-TLSv1.1-record-offload.patch (94%)
 rename recipes-kernel/cryptodev/{files => sdk_patches}/0012-add-support-for-TLSv1.2-record-offload.patch (93%)
 rename recipes-kernel/cryptodev/{files => sdk_patches}/0013-clean-up-code-layout.patch (98%)
 rename recipes-kernel/cryptodev/{files => sdk_patches}/0014-remove-redundant-data-copy-for-pkc-operations.patch (99%)
 rename recipes-kernel/cryptodev/{files => sdk_patches}/0015-fix-pkc-request-deallocation.patch (90%)
 rename recipes-kernel/cryptodev/{files => sdk_patches}/0016-add-basic-detection-of-asym-features.patch (89%)
 rename recipes-kernel/cryptodev/{files => sdk_patches}/0017-remove-dead-code.patch (97%)
 rename recipes-kernel/cryptodev/{files => sdk_patches}/0018-fix-compat-warnings.patch (97%)
 rename recipes-kernel/cryptodev/{files => sdk_patches}/0019-fix-size_t-print-format.patch (98%)
 rename recipes-kernel/cryptodev/{files => sdk_patches}/0020-fix-uninitialized-variable-compiler-warning.patch (94%)
 rename recipes-kernel/cryptodev/{files => sdk_patches}/0021-check-return-codes-for-copy-to-from-user-functions.patch (99%)
 rename recipes-kernel/cryptodev/{files => sdk_patches}/0022-fix-double-free-pkc-req-on-error.patch (91%)
 rename recipes-kernel/cryptodev/{files => sdk_patches}/0023-remove-MAY_BACKLOG-flag-from-requests.patch (97%)
 rename recipes-kernel/cryptodev/{files => sdk_patches}/0024-fix-COMPAT_CIOCKEY-ioctl-command-number.patch (94%)
 create mode 100644 recipes-kernel/cryptodev/sdk_patches/0025-fix-benchmarks-linking.patch
 create mode 100644 recipes-kernel/cryptodev/sdk_patches/0026-fix-Makefile-to-allow-parallel-make-with-j-option.patch
 create mode 100644 recipes-kernel/cryptodev/sdk_patches/0027-use-Linux-kernel-conventions-for-Makefile-variables.patch
 create mode 100644 recipes-kernel/cryptodev/sdk_patches/0028-for-consistency-use-.-instead-of-.-in-makefiles.patch
 create mode 100644 recipes-kernel/cryptodev/sdk_patches/0029-fix-clean-up-on-error-path-for-crypto_create_session.patch
 create mode 100644 recipes-kernel/cryptodev/sdk_patches/0030-remove-code-duplication-in-cryptodev_hash_init.patch
 create mode 100644 recipes-kernel/cryptodev/sdk_patches/0031-fix-comment-typo.patch
 create mode 100644 recipes-kernel/cryptodev/sdk_patches/0032-avoid-calls-to-kmalloc-on-hotpaths.patch
 create mode 100644 recipes-kernel/cryptodev/sdk_patches/0033-avoid-unnecessary-checks-for-hash-clean-up.patch
 create mode 100644 recipes-kernel/cryptodev/sdk_patches/0034-extend-API-with-CIOCHASH-to-support-direct-hash-oper.patch
 create mode 100644 recipes-kernel/cryptodev/sdk_patches/0035-use-directly-crypto-API-digest-operation-for-CIOCHAS.patch
 create mode 100644 recipes-kernel/cryptodev/sdk_patches/0036-add-compat-for-CIOCHASH-operation.patch
 create mode 100644 recipes-kernel/cryptodev/sdk_patches/0037-rewrite-sha_speed.c-to-reduce-code-duplication.patch
 create mode 100644 recipes-kernel/cryptodev/sdk_patches/0038-extend-sha_speed.c-to-test-CIOCHASH.patch
 create mode 100644 recipes-kernel/cryptodev/sdk_patches/0039-fix-memory-leaks-on-error-path-for-CIOCHASH.patch
 create mode 100644 recipes-kernel/cryptodev/sdk_patches/0040-fix-structure-init-in-sha_speed-test.patch
 create mode 100644 recipes-kernel/cryptodev/sdk_patches/0041-add-separate-target-for-building-tests.patch
 create mode 100644 recipes-kernel/cryptodev/sdk_patches/0042-fix-destination-for-staged-installs.patch
 create mode 100644 recipes-kernel/cryptodev/sdk_patches/0043-add-install-target-for-tests.patch
 create mode 100644 recipes-kernel/cryptodev/yocto_patches/0001-Add-the-compile-and-install-rules-for-cryptodev-test.patch
 create mode 100644 recipes-kernel/cryptodev/yocto_patches/0001-Disable-installing-header-file-provided-by-another-p.patch
Signature · 1 line
1.9.2
#1 lore raw

PATCH 1/5 cryptodev: rename to cryptodev-qoriq

From: Ting Liu <[email protected]>

The QorIQ version of cryptodev needs to use another recipe name and have a common provider, which is than choosen for QorIQ-based machines.

---
 conf/machine/include/qoriq.inc                                |  6 +++---
 .../{cryptodev-linux_1.7.bb => cryptodev-qoriq-linux_1.7.bb}  |  6 +++++-
 ...{cryptodev-module_1.7.bb => cryptodev-qoriq-module_1.7.bb} |  6 +++++-
 .../{cryptodev-tests_1.7.bb => cryptodev-qoriq-tests_1.7.bb}  |  6 +++++-
 .../cryptodev/{cryptodev_1.7.inc => cryptodev-qoriq_1.7.inc}  | 11 ++++++++++-
 5 files changed, 28 insertions(+), 7 deletions(-)
 rename recipes-kernel/cryptodev/{cryptodev-linux_1.7.bb => cryptodev-qoriq-linux_1.7.bb} (74%)
 rename recipes-kernel/cryptodev/{cryptodev-module_1.7.bb => cryptodev-qoriq-module_1.7.bb} (70%)
 rename recipes-kernel/cryptodev/{cryptodev-tests_1.7.bb => cryptodev-qoriq-tests_1.7.bb} (77%)
 rename recipes-kernel/cryptodev/{cryptodev_1.7.inc => cryptodev-qoriq_1.7.inc} (84%)
conf/machine/include/qoriq.inc +3 -3
index f99f4e7..84b5abb 100644
@@ -3,12 +3,12 @@
 PREFERRED_PROVIDER_virtual/kernel ?= "linux-qoriq"
 PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-qoriq"
 PREFERRED_PROVIDER_u-boot ?= "u-boot-qoriq"
+PREFERRED_PROVIDER_cryptodev-linux = "cryptodev-qoriq-linux"
+PREFERRED_PROVIDER_cryptodev-module = "cryptodev-qoriq-module"
+PREFERRED_PROVIDER_cryptodev-tests = "cryptodev-qoriq-tests"
 
 PREFERRED_VERSION_qemu = "2.4.0+fsl"
 PREFERRED_VERSION_openssl = "1.0.1i"
-PREFERRED_VERSION_cryptodev-linux = "1.7"
-PREFERRED_VERSION_cryptodev-module = "1.7"
-PREFERRED_VERSION_cryptodev-tests = "1.7"
 
 MACHINE_FEATURES = "keyboard pci ext2 ext3 serial"
 MACHINE_EXTRA_RRECOMMENDS += "udev-rules-qoriq kernel-modules"
recipes-kernel/cryptodev/cryptodev-qoriq-linux_1.7.bb renamed from recipes-kernel/cryptodev/cryptodev-linux_1.7.bb +5 -1
similarity index 74%
rename from recipes-kernel/cryptodev/cryptodev-linux_1.7.bb
rename to recipes-kernel/cryptodev/cryptodev-qoriq-linux_1.7.bb
index 92ccd71..58db505 100644
@@ -1,7 +1,9 @@
-require cryptodev_${PV}.inc
+require cryptodev-qoriq_${PV}.inc
 
 SUMMARY = "A /dev/crypto device driver header file"
 
+PROVIDES = "cryptodev-linux"
+
 do_compile[noexec] = "1"
 
 # Just install cryptodev.h which is the only header file needed to be exported
@@ -10,3 +12,5 @@ do_install() {
 }
 
 ALLOW_EMPTY_${PN} = "1"
+
+COMPATIBLE_MACHINE = "(qoriq)"
recipes-kernel/cryptodev/cryptodev-qoriq-module_1.7.bb renamed from recipes-kernel/cryptodev/cryptodev-module_1.7.bb +5 -1
similarity index 70%
rename from recipes-kernel/cryptodev/cryptodev-module_1.7.bb
rename to recipes-kernel/cryptodev/cryptodev-qoriq-module_1.7.bb
index e6b1f27..383b482 100644
@@ -1,10 +1,14 @@
-require cryptodev_${PV}.inc
+require cryptodev-qoriq_${PV}.inc
 
 SUMMARY = "A /dev/crypto device driver kernel module"
 
+PROVIDES = "cryptodev-module"
+
 inherit module qoriq_build_64bit_kernel
 
 # Header file provided by a separate package
 DEPENDS += "cryptodev-linux"
 
 EXTRA_OEMAKE='KERNEL_DIR="${STAGING_KERNEL_DIR}" PREFIX="${D}"'
+
+COMPATIBLE_MACHINE = "(qoriq)"
recipes-kernel/cryptodev/cryptodev-qoriq-tests_1.7.bb renamed from recipes-kernel/cryptodev/cryptodev-tests_1.7.bb +5 -1
similarity index 77%
rename from recipes-kernel/cryptodev/cryptodev-tests_1.7.bb
rename to recipes-kernel/cryptodev/cryptodev-qoriq-tests_1.7.bb
index 128ccc9..a60ea98 100644
@@ -1,8 +1,10 @@
-require cryptodev_${PV}.inc
+require cryptodev-qoriq_${PV}.inc
 
 SUMMARY = "A test suite for /dev/crypto device driver"
 DEPENDS = "openssl"
 
+PROVIDES = "cryptodev-tests"
+
 EXTRA_OEMAKE='KERNEL_DIR="${STAGING_KERNEL_DIR}" PREFIX="${D}"'
 
 do_compile() {
@@ -15,3 +17,5 @@ do_install() {
 
 FILES_${PN}-dbg += "${bindir}/tests_cryptodev/.debug"
 FILES_${PN} = "${bindir}/tests_cryptodev/*"
+
+COMPATIBLE_MACHINE = "(qoriq)"
recipes-kernel/cryptodev/cryptodev-qoriq_1.7.inc renamed from recipes-kernel/cryptodev/cryptodev_1.7.inc +10 -1
similarity index 84%
rename from recipes-kernel/cryptodev/cryptodev_1.7.inc
rename to recipes-kernel/cryptodev/cryptodev-qoriq_1.7.inc
index 2060ce3..e4700db 100644
@@ -6,6 +6,15 @@ RREPLACES_${PN} = "ocf-linux"
 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'))
+}
+
 SRC_URI = "http://download.gna.org/cryptodev-linux/cryptodev-linux-${PV}.tar.gz"
 SRC_URI[md5sum] = "0b63b3481cf2c90386b35f057481d36b"
 SRC_URI[sha256sum] = "41880533b53de4d7b3f054e230f576988dafb8eed7bef5ebcf6422bb2e3a3b25"
@@ -46,7 +55,7 @@ file://0024-fix-COMPAT_CIOCKEY-ioctl-command-number.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)}"
+SRC_URI_append = "${@bb.utils.contains('DISTRO_FEATURES', 'c29x_pkc', ' file://0001-don-t-advertise-RSA-keygen.patch', '', d)}"
 
 S = "${WORKDIR}/cryptodev-linux-${PV}"
 
Signature · 1 line
1.9.2
#2 lore raw

PATCH 2/5 cryptodev-qoriq: upgrade to 1.8 plus fsl patches

In reply to [email protected]

From: Cristian Stoica <[email protected]>

upstream commit: 87b56e04b24c6d4be145483477eff7d3153290e9 Also:
- move all fsl patches on top of cryptodev-1.8
- add CIOCHASH ioctl
- fix incorrect tests initializations
- modify yocto patches to match updated Makefiles

---
 ...q-linux_1.7.bb => cryptodev-qoriq-linux_1.8.bb} |   4 +-
 .../cryptodev/cryptodev-qoriq-module_1.7.bb        |  14 -
 .../cryptodev/cryptodev-qoriq-module_1.8.bb        |  19 ++
 ...q-tests_1.7.bb => cryptodev-qoriq-tests_1.8.bb} |  13 +-
 ...todev-qoriq_1.7.inc => cryptodev-qoriq_1.8.inc} |  40 ++-
 .../files/0001-don-t-advertise-RSA-keygen.patch    |  33 ---
 .../0001-fix-compilation-against-linux-3.19.patch  |  36 ---
 ...ests-Makefile-usage-of-LDLIBS-vs.-LDFLAGS.patch |  29 --
 ...ile-fix-arg-passing-to-CC-in-implicit-rul.patch |  28 --
 ...talling-header-file-provided-by-another-p.patch |  29 --
 ...pile-and-install-rules-for-cryptodev-test.patch |  65 -----
 ...-for-composite-TLS10-SHA1-AES-algorithm-o.patch |   6 +-
 ...dd-support-for-COMPAT_CIOCAUTHCRYPT-ioctl.patch |   6 +-
 ...003-PKC-support-added-in-cryptodev-module.patch |   6 +-
 .../0004-Compat-versions-of-PKC-IOCTLs.patch       |   6 +-
 ...ynchronous-interface-changes-in-cryptodev.patch |   6 +-
 ...and-DLC_KEYGEN-supported-in-cryptodev-mod.patch |   6 +-
 ...stall-fixed-in-PKC-asynchronous-interface.patch |   6 +-
 .../0008-Add-RSA-Key-generation-offloading.patch   |   6 +-
 ...lation-error-of-openssl-with-fsl-cryptode.patch |   6 +-
 ...-for-composite-TLS10-SHA1-3DES-algorithm-.patch |   6 +-
 ...11-add-support-for-TLSv1.1-record-offload.patch |   6 +-
 ...12-add-support-for-TLSv1.2-record-offload.patch |   6 +-
 .../0013-clean-up-code-layout.patch                |   6 +-
 ...ve-redundant-data-copy-for-pkc-operations.patch |   6 +-
 .../0015-fix-pkc-request-deallocation.patch        |   6 +-
 ...0016-add-basic-detection-of-asym-features.patch |   6 +-
 .../0017-remove-dead-code.patch                    |   4 +-
 .../0018-fix-compat-warnings.patch                 |   4 +-
 .../0019-fix-size_t-print-format.patch             |   4 +-
 ...x-uninitialized-variable-compiler-warning.patch |   4 +-
 ...urn-codes-for-copy-to-from-user-functions.patch |   4 +-
 .../0022-fix-double-free-pkc-req-on-error.patch    |   4 +-
 ...023-remove-MAY_BACKLOG-flag-from-requests.patch |   4 +-
 ...4-fix-COMPAT_CIOCKEY-ioctl-command-number.patch |   4 +-
 .../sdk_patches/0025-fix-benchmarks-linking.patch  |  25 ++
 ...file-to-allow-parallel-make-with-j-option.patch |  56 ++++
 ...kernel-conventions-for-Makefile-variables.patch |  47 +++
 ...nsistency-use-.-instead-of-.-in-makefiles.patch |  73 +++++
 ...p-on-error-path-for-crypto_create_session.patch | 117 ++++++++
 ...e-code-duplication-in-cryptodev_hash_init.patch |  59 ++++
 .../sdk_patches/0031-fix-comment-typo.patch        |  26 ++
 .../0032-avoid-calls-to-kmalloc-on-hotpaths.patch  | 220 ++++++++++++++
 ...void-unnecessary-checks-for-hash-clean-up.patch |  33 +++
 ...with-CIOCHASH-to-support-direct-hash-oper.patch | 114 ++++++++
 ...y-crypto-API-digest-operation-for-CIOCHAS.patch | 315 +++++++++++++++++++++
 .../0036-add-compat-for-CIOCHASH-operation.patch   | 120 ++++++++
 ...te-sha_speed.c-to-reduce-code-duplication.patch | 190 +++++++++++++
 .../0038-extend-sha_speed.c-to-test-CIOCHASH.patch | 143 ++++++++++
 ...x-memory-leaks-on-error-path-for-CIOCHASH.patch |  70 +++++
 ...0040-fix-structure-init-in-sha_speed-test.patch |  53 ++++
 ...41-add-separate-target-for-building-tests.patch |  38 +++
 .../0042-fix-destination-for-staged-installs.patch |  55 ++++
 .../0043-add-install-target-for-tests.patch        |  46 +++
 ...pile-and-install-rules-for-cryptodev-test.patch |  50 ++++
 ...talling-header-file-provided-by-another-p.patch |  29 ++
 56 files changed, 1998 insertions(+), 319 deletions(-)
 rename recipes-kernel/cryptodev/{cryptodev-qoriq-linux_1.7.bb => cryptodev-qoriq-linux_1.8.bb} (83%)
 delete mode 100644 recipes-kernel/cryptodev/cryptodev-qoriq-module_1.7.bb
 create mode 100644 recipes-kernel/cryptodev/cryptodev-qoriq-module_1.8.bb
 rename recipes-kernel/cryptodev/{cryptodev-qoriq-tests_1.7.bb => cryptodev-qoriq-tests_1.8.bb} (56%)
 rename recipes-kernel/cryptodev/{cryptodev-qoriq_1.7.inc => cryptodev-qoriq_1.8.inc} (62%)
 delete mode 100644 recipes-kernel/cryptodev/files/0001-don-t-advertise-RSA-keygen.patch
 delete mode 100644 recipes-kernel/cryptodev/files/0001-fix-compilation-against-linux-3.19.patch
 delete mode 100644 recipes-kernel/cryptodev/files/0002-Fix-tests-Makefile-usage-of-LDLIBS-vs.-LDFLAGS.patch
 delete mode 100644 recipes-kernel/cryptodev/files/0002-tests-Makefile-fix-arg-passing-to-CC-in-implicit-rul.patch
 delete mode 100644 recipes-kernel/cryptodev/files/0003-Disable-installing-header-file-provided-by-another-p.patch
 delete mode 100644 recipes-kernel/cryptodev/files/0004-Add-the-compile-and-install-rules-for-cryptodev-test.patch
 rename recipes-kernel/cryptodev/{files => sdk_patches}/0001-add-support-for-composite-TLS10-SHA1-AES-algorithm-o.patch (91%)
 rename recipes-kernel/cryptodev/{files => sdk_patches}/0002-add-support-for-COMPAT_CIOCAUTHCRYPT-ioctl.patch (97%)
 rename recipes-kernel/cryptodev/{files => sdk_patches}/0003-PKC-support-added-in-cryptodev-module.patch (99%)
 rename recipes-kernel/cryptodev/{files => sdk_patches}/0004-Compat-versions-of-PKC-IOCTLs.patch (97%)
 rename recipes-kernel/cryptodev/{files => sdk_patches}/0005-Asynchronous-interface-changes-in-cryptodev.patch (97%)
 rename recipes-kernel/cryptodev/{files => sdk_patches}/0006-ECC_KEYGEN-and-DLC_KEYGEN-supported-in-cryptodev-mod.patch (97%)
 rename recipes-kernel/cryptodev/{files => sdk_patches}/0007-RCU-stall-fixed-in-PKC-asynchronous-interface.patch (98%)
 rename recipes-kernel/cryptodev/{files => sdk_patches}/0008-Add-RSA-Key-generation-offloading.patch (97%)
 rename recipes-kernel/cryptodev/{files => sdk_patches}/0009-Fixed-compilation-error-of-openssl-with-fsl-cryptode.patch (97%)
 rename recipes-kernel/cryptodev/{files => sdk_patches}/0010-add-support-for-composite-TLS10-SHA1-3DES-algorithm-.patch (91%)
 rename recipes-kernel/cryptodev/{files => sdk_patches}/0011-add-support-for-TLSv1.1-record-offload.patch (94%)
 rename recipes-kernel/cryptodev/{files => sdk_patches}/0012-add-support-for-TLSv1.2-record-offload.patch (93%)
 rename recipes-kernel/cryptodev/{files => sdk_patches}/0013-clean-up-code-layout.patch (98%)
 rename recipes-kernel/cryptodev/{files => sdk_patches}/0014-remove-redundant-data-copy-for-pkc-operations.patch (99%)
 rename recipes-kernel/cryptodev/{files => sdk_patches}/0015-fix-pkc-request-deallocation.patch (90%)
 rename recipes-kernel/cryptodev/{files => sdk_patches}/0016-add-basic-detection-of-asym-features.patch (89%)
 rename recipes-kernel/cryptodev/{files => sdk_patches}/0017-remove-dead-code.patch (97%)
 rename recipes-kernel/cryptodev/{files => sdk_patches}/0018-fix-compat-warnings.patch (97%)
 rename recipes-kernel/cryptodev/{files => sdk_patches}/0019-fix-size_t-print-format.patch (98%)
 rename recipes-kernel/cryptodev/{files => sdk_patches}/0020-fix-uninitialized-variable-compiler-warning.patch (94%)
 rename recipes-kernel/cryptodev/{files => sdk_patches}/0021-check-return-codes-for-copy-to-from-user-functions.patch (99%)
 rename recipes-kernel/cryptodev/{files => sdk_patches}/0022-fix-double-free-pkc-req-on-error.patch (91%)
 rename recipes-kernel/cryptodev/{files => sdk_patches}/0023-remove-MAY_BACKLOG-flag-from-requests.patch (97%)
 rename recipes-kernel/cryptodev/{files => sdk_patches}/0024-fix-COMPAT_CIOCKEY-ioctl-command-number.patch (94%)
 create mode 100644 recipes-kernel/cryptodev/sdk_patches/0025-fix-benchmarks-linking.patch
 create mode 100644 recipes-kernel/cryptodev/sdk_patches/0026-fix-Makefile-to-allow-parallel-make-with-j-option.patch
 create mode 100644 recipes-kernel/cryptodev/sdk_patches/0027-use-Linux-kernel-conventions-for-Makefile-variables.patch
 create mode 100644 recipes-kernel/cryptodev/sdk_patches/0028-for-consistency-use-.-instead-of-.-in-makefiles.patch
 create mode 100644 recipes-kernel/cryptodev/sdk_patches/0029-fix-clean-up-on-error-path-for-crypto_create_session.patch
 create mode 100644 recipes-kernel/cryptodev/sdk_patches/0030-remove-code-duplication-in-cryptodev_hash_init.patch
 create mode 100644 recipes-kernel/cryptodev/sdk_patches/0031-fix-comment-typo.patch
 create mode 100644 recipes-kernel/cryptodev/sdk_patches/0032-avoid-calls-to-kmalloc-on-hotpaths.patch
 create mode 100644 recipes-kernel/cryptodev/sdk_patches/0033-avoid-unnecessary-checks-for-hash-clean-up.patch
 create mode 100644 recipes-kernel/cryptodev/sdk_patches/0034-extend-API-with-CIOCHASH-to-support-direct-hash-oper.patch
 create mode 100644 recipes-kernel/cryptodev/sdk_patches/0035-use-directly-crypto-API-digest-operation-for-CIOCHAS.patch
 create mode 100644 recipes-kernel/cryptodev/sdk_patches/0036-add-compat-for-CIOCHASH-operation.patch
 create mode 100644 recipes-kernel/cryptodev/sdk_patches/0037-rewrite-sha_speed.c-to-reduce-code-duplication.patch
 create mode 100644 recipes-kernel/cryptodev/sdk_patches/0038-extend-sha_speed.c-to-test-CIOCHASH.patch
 create mode 100644 recipes-kernel/cryptodev/sdk_patches/0039-fix-memory-leaks-on-error-path-for-CIOCHASH.patch
 create mode 100644 recipes-kernel/cryptodev/sdk_patches/0040-fix-structure-init-in-sha_speed-test.patch
 create mode 100644 recipes-kernel/cryptodev/sdk_patches/0041-add-separate-target-for-building-tests.patch
 create mode 100644 recipes-kernel/cryptodev/sdk_patches/0042-fix-destination-for-staged-installs.patch
 create mode 100644 recipes-kernel/cryptodev/sdk_patches/0043-add-install-target-for-tests.patch
 create mode 100644 recipes-kernel/cryptodev/yocto_patches/0001-Add-the-compile-and-install-rules-for-cryptodev-test.patch
 create mode 100644 recipes-kernel/cryptodev/yocto_patches/0001-Disable-installing-header-file-provided-by-another-p.patch
recipes-kernel/cryptodev/cryptodev-qoriq-linux_1.8.bb renamed from recipes-kernel/cryptodev/cryptodev-qoriq-linux_1.7.bb +1 -3
similarity index 83%
rename from recipes-kernel/cryptodev/cryptodev-qoriq-linux_1.7.bb
rename to recipes-kernel/cryptodev/cryptodev-qoriq-linux_1.8.bb
index 58db505..69fb622 100644
@@ -2,7 +2,7 @@ require cryptodev-qoriq_${PV}.inc
 
 SUMMARY = "A /dev/crypto device driver header file"
 
-PROVIDES = "cryptodev-linux"
+PROVIDES += "cryptodev-linux"
 
 do_compile[noexec] = "1"
 
@@ -12,5 +12,3 @@ do_install() {
 }
 
 ALLOW_EMPTY_${PN} = "1"
-
-COMPATIBLE_MACHINE = "(qoriq)"
recipes-kernel/cryptodev/cryptodev-qoriq-module_1.7.bb deleted +0 -14
deleted file mode 100644
index 383b482..0000000
@@ -1,14 +0,0 @@
-require cryptodev-qoriq_${PV}.inc
-
-SUMMARY = "A /dev/crypto device driver kernel module"
-
-PROVIDES = "cryptodev-module"
-
-inherit module qoriq_build_64bit_kernel
-
-# Header file provided by a separate package
-DEPENDS += "cryptodev-linux"
-
-EXTRA_OEMAKE='KERNEL_DIR="${STAGING_KERNEL_DIR}" PREFIX="${D}"'
-
-COMPATIBLE_MACHINE = "(qoriq)"
recipes-kernel/cryptodev/cryptodev-qoriq-module_1.8.bb new file +19 -0
new file mode 100644
index 0000000..e51c452
@@ -0,0 +1,19 @@
+require cryptodev-qoriq_${PV}.inc
+
+SUMMARY = "A /dev/crypto device driver kernel module"
+
+inherit module qoriq_build_64bit_kernel
+
+PROVIDES += "cryptodev-module"
+
+# Header file provided by a separate package
+DEPENDS += "cryptodev-linux"
+
+SRC_URI_append = " \
+file://0001-Disable-installing-header-file-provided-by-another-p.patch \
+"
+
+EXTRA_OEMAKE='KERNEL_DIR="${STAGING_KERNEL_DIR}" DESTDIR="${D}"'
+
+RCONFLICTS_${PN} = "ocf-linux"
+RREPLACES_${PN} = "ocf-linux"
recipes-kernel/cryptodev/cryptodev-qoriq-tests_1.8.bb renamed from recipes-kernel/cryptodev/cryptodev-qoriq-tests_1.7.bb +8 -5
similarity index 56%
rename from recipes-kernel/cryptodev/cryptodev-qoriq-tests_1.7.bb
rename to recipes-kernel/cryptodev/cryptodev-qoriq-tests_1.8.bb
index a60ea98..18bc3c5 100644
@@ -1,11 +1,16 @@
 require cryptodev-qoriq_${PV}.inc
 
 SUMMARY = "A test suite for /dev/crypto device driver"
-DEPENDS = "openssl"
 
-PROVIDES = "cryptodev-tests"
+DEPENDS += "openssl"
 
-EXTRA_OEMAKE='KERNEL_DIR="${STAGING_KERNEL_DIR}" PREFIX="${D}"'
+PROVIDES += "cryptodev-tests"
+
+SRC_URI_append = " \
+file://0001-Add-the-compile-and-install-rules-for-cryptodev-test.patch \
+"
+
+EXTRA_OEMAKE='KERNEL_DIR="${STAGING_EXECPREFIXDIR}" DESTDIR="${D}"'
 
 do_compile() {
 	oe_runmake testprogs
@@ -17,5 +22,3 @@ do_install() {
 
 FILES_${PN}-dbg += "${bindir}/tests_cryptodev/.debug"
 FILES_${PN} = "${bindir}/tests_cryptodev/*"
-
-COMPATIBLE_MACHINE = "(qoriq)"
recipes-kernel/cryptodev/cryptodev-qoriq_1.8.inc renamed from recipes-kernel/cryptodev/cryptodev-qoriq_1.7.inc +27 -13
similarity index 62%
rename from recipes-kernel/cryptodev/cryptodev-qoriq_1.7.inc
rename to recipes-kernel/cryptodev/cryptodev-qoriq_1.8.inc
index e4700db..7e9b4a6 100644
@@ -1,8 +1,5 @@
 HOMEPAGE = "http://cryptodev-linux.org/"
 
-RCONFLICTS_${PN} = "ocf-linux"
-RREPLACES_${PN} = "ocf-linux"
-
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
 
@@ -15,17 +12,14 @@ python() {
             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] = "0b63b3481cf2c90386b35f057481d36b"
-SRC_URI[sha256sum] = "41880533b53de4d7b3f054e230f576988dafb8eed7bef5ebcf6422bb2e3a3b25"
-
-# Upstream hotfixes and yocto specific patches
-SRC_URI_append = " \
-file://0001-fix-compilation-against-linux-3.19.patch \
-file://0002-tests-Makefile-fix-arg-passing-to-CC-in-implicit-rul.patch \
-file://0003-Disable-installing-header-file-provided-by-another-p.patch \
-file://0004-Add-the-compile-and-install-rules-for-cryptodev-test.patch \
-"
+
+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 \
@@ -51,6 +45,25 @@ 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 \
 "
 
 # NOTE: remove this patch and all traces of DISTRO_FEATURE c29x_pkc
@@ -60,3 +73,4 @@ SRC_URI_append = "${@bb.utils.contains('DISTRO_FEATURES', 'c29x_pkc', ' file://0
 S = "${WORKDIR}/cryptodev-linux-${PV}"
 
 CLEANBROKEN = "1"
+COMPATIBLE_MACHINE = "(qoriq)"
recipes-kernel/cryptodev/files/0001-don-t-advertise-RSA-keygen.patch deleted +0 -33
deleted file mode 100644
index 10d6c8b..0000000
@@ -1,33 +0,0 @@
-From d30c9c64aca4a7905e1b7eb3e28e1c616191bd34 Mon Sep 17 00:00:00 2001
-From: Cristian Stoica <[email protected]>
-Date: Tue, 9 Dec 2014 16:41:25 +0200
-Subject: [PATCH] don't advertise RSA keygen
-
-Disable RSA keygen operations when they are not available.
-
-Currently no testing can be done and this patch should be applied
-selectively on platforms that have incomplete support for RSA operations
-(for example pkc driver on C293)
-
-Change-Id: Ic8df014623410c3cf4b0b217a246efcea8f2eeef
-Signed-off-by: Cristian Stoica <[email protected]>
----
- ioctl.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/ioctl.c b/ioctl.c
-index 53dbf64..27dc66e 100644
---- a/ioctl.c
-+++ b/ioctl.c
-@@ -979,7 +979,7 @@ cryptodev_ioctl(struct file *filp, unsigned int cmd, unsigned long arg_)
- 	case CIOCASYMFEAT:
- 		ses = 0;
- 		if (crypto_has_alg("pkc(rsa)", 0, 0))
--			ses = CRF_MOD_EXP_CRT |	CRF_MOD_EXP | CRF_RSA_GENERATE_KEY;
-+			ses = CRF_MOD_EXP_CRT |	CRF_MOD_EXP ;
- 		if (crypto_has_alg("pkc(dsa)", 0, 0))
- 			ses |= CRF_DSA_SIGN | CRF_DSA_VERIFY | CRF_DSA_GENERATE_KEY;
- 		if (crypto_has_alg("pkc(dh)", 0, 0))
--- 
-2.3.5
-
recipes-kernel/cryptodev/files/0001-fix-compilation-against-linux-3.19.patch deleted +0 -36
deleted file mode 100644
index ab276d2..0000000
@@ -1,36 +0,0 @@
-From 5054d20d45571cc85339351fde52f872eeb82206 Mon Sep 17 00:00:00 2001
-From: Phil Sutter <[email protected]>
-Date: Tue, 10 Feb 2015 04:57:05 +0100
-Subject: [PATCH 1/4] fix compilation against linux-3.19
-
-Commit f938612dd97d481b8b5bf960c992ae577f081c17 in linux.git removes
-get_unused_fd() macro. This patch changes the calling code to use it's
-content 'get_unused_fd_flags(0)' instead. Checking for when
-get_unused_fd_flags was introduced shows it's been there since 2.6.23 at
-least, so probably no need to make this change conditional on the target
-kernel version.
-
-Original patch by Ricardo Ribalda Delgado for Open Embedded, reported by
-Oleg Rakhmanov.
-
-Signed-off-by: Phil Sutter <[email protected]>
----
- ioctl.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/ioctl.c b/ioctl.c
-index 5a55a76..b23f5fd 100644
---- a/ioctl.c
-+++ b/ioctl.c
-@@ -546,7 +546,7 @@ static int
- clonefd(struct file *filp)
- {
- 	int ret;
--	ret = get_unused_fd();
-+	ret = get_unused_fd_flags(0);
- 	if (ret >= 0) {
- 			get_file(filp);
- 			fd_install(ret, filp);
--- 
-2.3.5
-
recipes-kernel/cryptodev/files/0002-Fix-tests-Makefile-usage-of-LDLIBS-vs.-LDFLAGS.patch deleted +0 -29
deleted file mode 100644
index f5ab8b4..0000000
@@ -1,29 +0,0 @@
-From 47ff1eb9bb4f872c1d731b93d334ee5865bf3439 Mon Sep 17 00:00:00 2001
-From: Denys Dmytriyenko <[email protected]>
-Date: Sun, 6 Apr 2014 22:16:30 -0400
-Subject: [PATCH] Fix tests Makefile usage of LDLIBS vs. LDFLAGS
-
-Libraries must come after objects, as link order matters, especially
-when using linker flags like -Wl,--as-needed.
-
-Signed-off-by: Denys Dmytriyenko <[email protected]>
-
-Upstream-Status: Pending
----
- tests/Makefile | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/tests/Makefile b/tests/Makefile
-index cd202af..67c3c83 100644
---- a/tests/Makefile
-+++ b/tests/Makefile
-@@ -39,5 +39,5 @@ testprogs: $(hostprogs)
- clean:
- 	rm -f *.o *~ $(hostprogs)
- 
--${comp_progs}: LDFLAGS += -lssl -lcrypto
-+${comp_progs}: LDLIBS += -lssl -lcrypto
- ${comp_progs}: %: %.o openssl_wrapper.o
--- 
-1.9.1
-
recipes-kernel/cryptodev/files/0002-tests-Makefile-fix-arg-passing-to-CC-in-implicit-rul.patch deleted +0 -28
deleted file mode 100644
index 68c48e0..0000000
@@ -1,28 +0,0 @@
-From da730106c2558c8e0c8e1b1b1812d32ef9574ab7 Mon Sep 17 00:00:00 2001
-From: Phil Sutter <[email protected]>
-Date: Sat, 11 Apr 2015 12:45:05 +0200
-Subject: [PATCH 2/4] tests/Makefile: fix arg passing to CC in implicit rule
-
-GCC docs suggest passing -lfoo after object files referring to functions
-in libfoo. Therefore use LDLIBS to specify libraries, which puts them at
-the right place when make calls CC implicitly.
-
-Signed-off-by: Phil Sutter <[email protected]>
----
- tests/Makefile | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/tests/Makefile b/tests/Makefile
-index c9f04e8..20c52ba 100644
---- a/tests/Makefile
-+++ b/tests/Makefile
-@@ -31,5 +31,5 @@ check: $(hostprogs)
- clean:
- 	rm -f *.o *~ $(hostprogs)
- 
--${comp_progs}: LDFLAGS += -lssl -lcrypto
-+${comp_progs}: LDLIBS += -lssl -lcrypto
- ${comp_progs}: %: %.o openssl_wrapper.o
--- 
-2.3.5
-
recipes-kernel/cryptodev/files/0003-Disable-installing-header-file-provided-by-another-p.patch deleted +0 -29
deleted file mode 100644
index e384950..0000000
@@ -1,29 +0,0 @@
-From c618f882c283511dd4f7547113a1117c4785f56f Mon Sep 17 00:00:00 2001
-From: Denys Dmytriyenko <[email protected]>
-Date: Sun, 6 Apr 2014 19:51:39 -0400
-Subject: [PATCH 3/4] Disable installing header file provided by another
- package
-
-Signed-off-by: Denys Dmytriyenko <[email protected]>
-
-Upstream-Status: Inappropriate [ OE specific ]
----
- Makefile | 2 --
- 1 file changed, 2 deletions(-)
-
-diff --git a/Makefile b/Makefile
-index 31c4b3f..855bb54 100644
---- a/Makefile
-+++ b/Makefile
-@@ -31,8 +31,6 @@ install: modules_install
- 
- modules_install:
- 	make -C $(KERNEL_DIR) SUBDIRS=`pwd` modules_install
--	@echo "Installing cryptodev.h in $(PREFIX)/usr/include/crypto ..."
--	@install -D crypto/cryptodev.h $(PREFIX)/usr/include/crypto/cryptodev.h
- 
- clean:
- 	make -C $(KERNEL_DIR) SUBDIRS=`pwd` clean
--- 
-2.3.5
-
recipes-kernel/cryptodev/files/0004-Add-the-compile-and-install-rules-for-cryptodev-test.patch deleted +0 -65

65 lines not on this page · raw message

recipes-kernel/cryptodev/sdk_patches/0001-add-support-for-composite-TLS10-SHA1-AES-algorithm-o.patch renamed from recipes-kernel/cryptodev/files/0001-add-support-for-composite-TLS10-SHA1-AES-algorithm-o.patch +3 -3
similarity index 91%
rename from recipes-kernel/cryptodev/files/0001-add-support-for-composite-TLS10-SHA1-AES-algorithm-o.patch
rename to recipes-kernel/cryptodev/sdk_patches/0001-add-support-for-composite-TLS10-SHA1-AES-algorithm-o.patch
index 7d957ec..b8d2a00 100644
@@ -1,7 +1,7 @@
-From c653e3a70499c6bb66b57c1788d2d38ca9b8a07e Mon Sep 17 00:00:00 2001
+From 25a68839e3aab5acebcbe51f7fbe9d2d26216bc0 Mon Sep 17 00:00:00 2001
 From: Cristian Stoica <[email protected]>
 Date: Thu, 29 Aug 2013 16:52:30 +0300
-Subject: [PATCH 01/15] add support for composite TLS10(SHA1,AES) algorithm
+Subject: [PATCH 01/38] add support for composite TLS10(SHA1,AES) algorithm
  offload
 
 This adds support for composite algorithm offload as a primitive
@@ -48,5 +48,5 @@ index b23f5fd..a3f8379 100644
  		alg_name = "ecb(cipher_null)";
  		stream = 1;
 -- 
-2.3.5
+2.7.0
 
recipes-kernel/cryptodev/sdk_patches/0002-add-support-for-COMPAT_CIOCAUTHCRYPT-ioctl.patch renamed from recipes-kernel/cryptodev/files/0002-add-support-for-COMPAT_CIOCAUTHCRYPT-ioctl.patch +3 -3
similarity index 97%
rename from recipes-kernel/cryptodev/files/0002-add-support-for-COMPAT_CIOCAUTHCRYPT-ioctl.patch
rename to recipes-kernel/cryptodev/sdk_patches/0002-add-support-for-COMPAT_CIOCAUTHCRYPT-ioctl.patch
index 08d9231..d83da97 100644
@@ -1,7 +1,7 @@
-From 71b317347179225693c6d41b740d387ae2c25061 Mon Sep 17 00:00:00 2001
+From d9f27d08708556e22e1b1dc87b0495896879ca66 Mon Sep 17 00:00:00 2001
 From: Horia Geanta <[email protected]>
 Date: Wed, 4 Dec 2013 15:43:41 +0200
-Subject: [PATCH 02/15] add support for COMPAT_CIOCAUTHCRYPT ioctl()
+Subject: [PATCH 02/38] add support for COMPAT_CIOCAUTHCRYPT ioctl()
 
 Upstream-status: Pending
 
@@ -203,5 +203,5 @@ index a3f8379..5a44807 100644
  	case COMPAT_CIOCASYNCCRYPT:
  		if (unlikely(ret = compat_kcop_from_user(&kcop, fcr, arg)))
 -- 
-2.3.5
+2.7.0
 
recipes-kernel/cryptodev/sdk_patches/0003-PKC-support-added-in-cryptodev-module.patch renamed from recipes-kernel/cryptodev/files/0003-PKC-support-added-in-cryptodev-module.patch +3 -3
similarity index 99%
rename from recipes-kernel/cryptodev/files/0003-PKC-support-added-in-cryptodev-module.patch
rename to recipes-kernel/cryptodev/sdk_patches/0003-PKC-support-added-in-cryptodev-module.patch
index 46f2432..ffa0b45 100644
@@ -1,7 +1,7 @@
-From fc9ee6ed33c76372de6e3748d2e951fa10f7c47e Mon Sep 17 00:00:00 2001
+From 2bda43095b511e0052b3bc27b216ff9909cc03d2 Mon Sep 17 00:00:00 2001
 From: Yashpal Dutta <[email protected]>
 Date: Fri, 7 Mar 2014 06:16:09 +0545
-Subject: [PATCH 03/15] PKC support added in cryptodev module
+Subject: [PATCH 03/38] PKC support added in cryptodev module
 
 Upstream-status: Pending
 
@@ -894,5 +894,5 @@ index 57e5c38..0b7951e 100644
  {
  	struct csession *ses_ptr;
 -- 
-2.3.5
+2.7.0
 
recipes-kernel/cryptodev/sdk_patches/0004-Compat-versions-of-PKC-IOCTLs.patch renamed from recipes-kernel/cryptodev/files/0004-Compat-versions-of-PKC-IOCTLs.patch +3 -3
similarity index 97%
rename from recipes-kernel/cryptodev/files/0004-Compat-versions-of-PKC-IOCTLs.patch
rename to recipes-kernel/cryptodev/sdk_patches/0004-Compat-versions-of-PKC-IOCTLs.patch
index 2f35768..e963f58 100644
@@ -1,7 +1,7 @@
-From b109fbdb64de6be0dc2f0d2ef108cead34652495 Mon Sep 17 00:00:00 2001
+From e0e5c1bfb21888bf9f87f72ac8cdf7eee951f619 Mon Sep 17 00:00:00 2001
 From: Yashpal Dutta <[email protected]>
 Date: Fri, 7 Mar 2014 06:52:13 +0545
-Subject: [PATCH 04/15] Compat versions of PKC IOCTLs
+Subject: [PATCH 04/38] Compat versions of PKC IOCTLs
 
 Upstream-status: Pending
 
@@ -196,5 +196,5 @@ index 69980e3..9431025 100644
  		return -EINVAL;
  	}
 -- 
-2.3.5
+2.7.0
 
recipes-kernel/cryptodev/sdk_patches/0005-Asynchronous-interface-changes-in-cryptodev.patch renamed from recipes-kernel/cryptodev/files/0005-Asynchronous-interface-changes-in-cryptodev.patch +3 -3
similarity index 97%
rename from recipes-kernel/cryptodev/files/0005-Asynchronous-interface-changes-in-cryptodev.patch
rename to recipes-kernel/cryptodev/sdk_patches/0005-Asynchronous-interface-changes-in-cryptodev.patch
index 8827fb0..5b96e84 100644
@@ -1,7 +1,7 @@
-From 7594d5375d998eb25241750b623661ff021697d3 Mon Sep 17 00:00:00 2001
+From d98f979d76c30058da24e62220f19c5b8c627819 Mon Sep 17 00:00:00 2001
 From: Yashpal Dutta <[email protected]>
 Date: Fri, 7 Mar 2014 07:24:00 +0545
-Subject: [PATCH 05/15] Asynchronous interface changes in cryptodev
+Subject: [PATCH 05/38] Asynchronous interface changes in cryptodev
 
 Upstream-status: Pending
 
@@ -209,5 +209,5 @@ index 9431025..e2f407f 100644
  	return ret;
  	default:
 -- 
-2.3.5
+2.7.0
 
recipes-kernel/cryptodev/sdk_patches/0006-ECC_KEYGEN-and-DLC_KEYGEN-supported-in-cryptodev-mod.patch renamed from recipes-kernel/cryptodev/files/0006-ECC_KEYGEN-and-DLC_KEYGEN-supported-in-cryptodev-mod.patch +3 -3
similarity index 97%
rename from recipes-kernel/cryptodev/files/0006-ECC_KEYGEN-and-DLC_KEYGEN-supported-in-cryptodev-mod.patch
rename to recipes-kernel/cryptodev/sdk_patches/0006-ECC_KEYGEN-and-DLC_KEYGEN-supported-in-cryptodev-mod.patch
index 89cace3..978efd1 100644
@@ -1,7 +1,7 @@
-From eccd6277b067cd85094eb057225cc0a983300b9f Mon Sep 17 00:00:00 2001
+From b92d23a790d9634d52db3b9a5e1882fde620b073 Mon Sep 17 00:00:00 2001
 From: Yashpal Dutta <[email protected]>
 Date: Fri, 7 Mar 2014 07:53:53 +0545
-Subject: [PATCH 06/15] ECC_KEYGEN and DLC_KEYGEN supported in cryptodev module
+Subject: [PATCH 06/38] ECC_KEYGEN and DLC_KEYGEN supported in cryptodev module
 
 Upstream-status: Pending
 
@@ -208,5 +208,5 @@ index 0b7951e..c901bc7 100644
  err:
  	return ret;
 -- 
-2.3.5
+2.7.0
 
recipes-kernel/cryptodev/sdk_patches/0007-RCU-stall-fixed-in-PKC-asynchronous-interface.patch renamed from recipes-kernel/cryptodev/files/0007-RCU-stall-fixed-in-PKC-asynchronous-interface.patch +3 -3
similarity index 98%
rename from recipes-kernel/cryptodev/files/0007-RCU-stall-fixed-in-PKC-asynchronous-interface.patch
rename to recipes-kernel/cryptodev/sdk_patches/0007-RCU-stall-fixed-in-PKC-asynchronous-interface.patch
index a76aca4..cfaabae 100644
@@ -1,7 +1,7 @@
-From 78c01e1882def52c72966c0e86913950ec201af9 Mon Sep 17 00:00:00 2001
+From 00a8ac310a33767eac0a07e32597c1a6f467315f Mon Sep 17 00:00:00 2001
 From: Yashpal Dutta <[email protected]>
 Date: Fri, 7 Mar 2014 08:49:15 +0545
-Subject: [PATCH 07/15] RCU stall fixed in PKC asynchronous interface
+Subject: [PATCH 07/38] RCU stall fixed in PKC asynchronous interface
 
 Upstream-status: Pending
 
@@ -234,5 +234,5 @@ index c901bc7..2747706 100644
  	if (!buf)
  		return -ENOMEM;
 -- 
-2.3.5
+2.7.0
 
recipes-kernel/cryptodev/sdk_patches/0008-Add-RSA-Key-generation-offloading.patch renamed from recipes-kernel/cryptodev/files/0008-Add-RSA-Key-generation-offloading.patch +3 -3
similarity index 97%
rename from recipes-kernel/cryptodev/files/0008-Add-RSA-Key-generation-offloading.patch
rename to recipes-kernel/cryptodev/sdk_patches/0008-Add-RSA-Key-generation-offloading.patch
index d251c66..ef4ea09 100644
@@ -1,7 +1,7 @@
-From 5127db3483a2e4f6dc13330bea7237931c5f15a0 Mon Sep 17 00:00:00 2001
+From a2cbb5fcc2d6f3734b5ed2826e828d852cfdf8ba Mon Sep 17 00:00:00 2001
 From: Hou Zhiqiang <[email protected]>
 Date: Wed, 19 Mar 2014 14:02:46 +0800
-Subject: [PATCH 08/15] Add RSA Key generation offloading
+Subject: [PATCH 08/38] Add RSA Key generation offloading
 
 Upstream-status: Pending
 
@@ -166,5 +166,5 @@ index 2747706..14dcf40 100644
  err:
  	return ret;
 -- 
-2.3.5
+2.7.0
 
recipes-kernel/cryptodev/sdk_patches/0009-Fixed-compilation-error-of-openssl-with-fsl-cryptode.patch renamed from recipes-kernel/cryptodev/files/0009-Fixed-compilation-error-of-openssl-with-fsl-cryptode.patch +3 -3
similarity index 97%
rename from recipes-kernel/cryptodev/files/0009-Fixed-compilation-error-of-openssl-with-fsl-cryptode.patch
rename to recipes-kernel/cryptodev/sdk_patches/0009-Fixed-compilation-error-of-openssl-with-fsl-cryptode.patch
index 2213fae..47fd2e1 100644
@@ -1,7 +1,7 @@
-From 800af48d0c26830943ca2308dd426b5b09811750 Mon Sep 17 00:00:00 2001
+From 263483d1023f6c1c35b5488b9b79796ee2605e9b Mon Sep 17 00:00:00 2001
 From: Yashpal Dutta <[email protected]>
 Date: Thu, 17 Apr 2014 07:08:47 +0545
-Subject: [PATCH 09/15] Fixed compilation error of openssl with fsl cryptodev
+Subject: [PATCH 09/38] Fixed compilation error of openssl with fsl cryptodev
 
 Upstream-status: Pending
 
@@ -156,5 +156,5 @@ index 14dcf40..6365911 100644
   * This file is part of linux cryptodev.
   *
 -- 
-2.3.5
+2.7.0
 
recipes-kernel/cryptodev/sdk_patches/0010-add-support-for-composite-TLS10-SHA1-3DES-algorithm-.patch renamed from recipes-kernel/cryptodev/files/0010-add-support-for-composite-TLS10-SHA1-3DES-algorithm-.patch +3 -3
similarity index 91%
rename from recipes-kernel/cryptodev/files/0010-add-support-for-composite-TLS10-SHA1-3DES-algorithm-.patch
rename to recipes-kernel/cryptodev/sdk_patches/0010-add-support-for-composite-TLS10-SHA1-3DES-algorithm-.patch
index 2032159..352a45d 100644
@@ -1,7 +1,7 @@
-From 55ee0ae703a68db74a492f5910937260502b9602 Mon Sep 17 00:00:00 2001
+From 269564f4e00fa907388ccfa046b930b3c4eef4dc Mon Sep 17 00:00:00 2001
 From: Tudor Ambarus <[email protected]>
 Date: Tue, 10 Jun 2014 08:27:59 +0300
-Subject: [PATCH 10/15] add support for composite TLS10(SHA1,3DES) algorithm
+Subject: [PATCH 10/38] add support for composite TLS10(SHA1,3DES) algorithm
  offload
 
 This adds support for composite algorithm offload in a single crypto
@@ -50,5 +50,5 @@ index c97320b..574e913 100644
  		alg_name = "ecb(cipher_null)";
  		stream = 1;
 -- 
-2.3.5
+2.7.0
 
recipes-kernel/cryptodev/sdk_patches/0011-add-support-for-TLSv1.1-record-offload.patch renamed from recipes-kernel/cryptodev/files/0011-add-support-for-TLSv1.1-record-offload.patch +3 -3
similarity index 94%
rename from recipes-kernel/cryptodev/files/0011-add-support-for-TLSv1.1-record-offload.patch
rename to recipes-kernel/cryptodev/sdk_patches/0011-add-support-for-TLSv1.1-record-offload.patch
index 37862b5..34d6ade 100644
@@ -1,7 +1,7 @@
-From 06cca15fd0412ae872c2b2c5d50216e1eb34fc50 Mon Sep 17 00:00:00 2001
+From 73c20be9ae1ed57d8c428c86471f42d953e79fba Mon Sep 17 00:00:00 2001
 From: Tudor Ambarus <[email protected]>
 Date: Tue, 31 Mar 2015 16:15:47 +0300
-Subject: [PATCH 11/15] add support for TLSv1.1 record offload
+Subject: [PATCH 11/38] add support for TLSv1.1 record offload
 
 This adds support for composite algorithm offload in a single crypto
 (cipher + hmac) operation.
@@ -72,5 +72,5 @@ index 574e913..ba82387 100644
  		aead = 1;
  		break;
 -- 
-2.3.5
+2.7.0
 
recipes-kernel/cryptodev/sdk_patches/0012-add-support-for-TLSv1.2-record-offload.patch renamed from recipes-kernel/cryptodev/files/0012-add-support-for-TLSv1.2-record-offload.patch +3 -3
similarity index 93%
rename from recipes-kernel/cryptodev/files/0012-add-support-for-TLSv1.2-record-offload.patch
rename to recipes-kernel/cryptodev/sdk_patches/0012-add-support-for-TLSv1.2-record-offload.patch
index 6aa672a..b7a7268 100644
@@ -1,7 +1,7 @@
-From 15999e402dd7472cafe51be3fd0ce66433ca924b Mon Sep 17 00:00:00 2001
+From f1a519d9eed072bd45a45d251603c64f942814fb Mon Sep 17 00:00:00 2001
 From: Tudor Ambarus <[email protected]>
 Date: Tue, 31 Mar 2015 16:16:28 +0300
-Subject: [PATCH 12/15] add support for TLSv1.2 record offload
+Subject: [PATCH 12/38] add support for TLSv1.2 record offload
 
 This adds support for composite algorithm offload in a single crypto
 (cipher + hmac) operation.
@@ -68,5 +68,5 @@ index ba82387..fb4c4e3 100644
  		alg_name = "ecb(cipher_null)";
  		stream = 1;
 -- 
-2.3.5
+2.7.0
 
recipes-kernel/cryptodev/sdk_patches/0013-clean-up-code-layout.patch renamed from recipes-kernel/cryptodev/files/0013-clean-up-code-layout.patch +3 -3
similarity index 98%
rename from recipes-kernel/cryptodev/files/0013-clean-up-code-layout.patch
rename to recipes-kernel/cryptodev/sdk_patches/0013-clean-up-code-layout.patch
index 86cf6a2..a6884fa 100644
@@ -1,7 +1,7 @@
-From 39abcb9cea60540528e848d6c66169c36d666861 Mon Sep 17 00:00:00 2001
+From 5a87b9d5f2295ed0fd36a41c8376e01eb0df62b2 Mon Sep 17 00:00:00 2001
 From: Cristian Stoica <[email protected]>
 Date: Fri, 20 Feb 2015 12:46:58 +0200
-Subject: [PATCH 13/15] clean-up code layout
+Subject: [PATCH 13/38] clean-up code layout
 
 Signed-off-by: Cristian Stoica <[email protected]>
 Change-Id: I92c2f4baeed9470a2c3c42b592d878e65918b0af
@@ -182,5 +182,5 @@ index 6365911..af66553 100644
  		if (rc != -EINPROGRESS && rc != 0)
  			goto err;
 -- 
-2.3.5
+2.7.0
 
recipes-kernel/cryptodev/sdk_patches/0014-remove-redundant-data-copy-for-pkc-operations.patch renamed from recipes-kernel/cryptodev/files/0014-remove-redundant-data-copy-for-pkc-operations.patch +3 -3
similarity index 99%
rename from recipes-kernel/cryptodev/files/0014-remove-redundant-data-copy-for-pkc-operations.patch
rename to recipes-kernel/cryptodev/sdk_patches/0014-remove-redundant-data-copy-for-pkc-operations.patch
index b9e9d2b..58d37fa 100644
@@ -1,7 +1,7 @@
-From 34e765977633b5f81845c0183af6d388d8225f00 Mon Sep 17 00:00:00 2001
+From a4d88e5379ddb7d9bceac3141f508b8173d1e902 Mon Sep 17 00:00:00 2001
 From: Cristian Stoica <[email protected]>
 Date: Mon, 23 Feb 2015 12:14:07 +0200
-Subject: [PATCH 14/15] remove redundant data copy for pkc operations
+Subject: [PATCH 14/38] remove redundant data copy for pkc operations
 
 This patch removes a copy of a pkc request that was
 allocated on the hot-path. The copy was not necessary
@@ -490,5 +490,5 @@ index af66553..ed1c69a 100644
  
  int crypto_run(struct fcrypt *fcr, struct kernel_crypt_op *kcop)
 -- 
-2.3.5
+2.7.0
 
recipes-kernel/cryptodev/sdk_patches/0015-fix-pkc-request-deallocation.patch renamed from recipes-kernel/cryptodev/files/0015-fix-pkc-request-deallocation.patch +3 -3
similarity index 90%
rename from recipes-kernel/cryptodev/files/0015-fix-pkc-request-deallocation.patch
rename to recipes-kernel/cryptodev/sdk_patches/0015-fix-pkc-request-deallocation.patch
index 949fe12..ef18992 100644
@@ -1,7 +1,7 @@
-From 8361f99c940fbe270fca2112dae3d97c9a5776d6 Mon Sep 17 00:00:00 2001
+From 212e418fa7b70c8ba79446006001c574cb9d42f8 Mon Sep 17 00:00:00 2001
 From: Cristian Stoica <[email protected]>
 Date: Mon, 23 Feb 2015 15:28:22 +0200
-Subject: [PATCH 15/15] fix pkc request deallocation
+Subject: [PATCH 15/38] fix pkc request deallocation
 
 The request to be freed is actually pkc->req, and should be done inside
 the fetch ioctl for ASYNC (this patch) and in crypt ioctl for SYNC
@@ -36,5 +36,5 @@ index 797b73c..da3a842 100644
  			} else {
  				spin_unlock_bh(&pcr->completion_lock);
 -- 
-2.3.5
+2.7.0
 
recipes-kernel/cryptodev/sdk_patches/0016-add-basic-detection-of-asym-features.patch renamed from recipes-kernel/cryptodev/files/0016-add-basic-detection-of-asym-features.patch +3 -3
similarity index 89%
rename from recipes-kernel/cryptodev/files/0016-add-basic-detection-of-asym-features.patch
rename to recipes-kernel/cryptodev/sdk_patches/0016-add-basic-detection-of-asym-features.patch
index cefb6dc..9301349 100644
@@ -1,7 +1,7 @@
-From 586bc4a6cd1014c57364020013062f07a8861e38 Mon Sep 17 00:00:00 2001
+From 4ce4081d9abef651473e9d7e089a0748f77db631 Mon Sep 17 00:00:00 2001
 From: Cristian Stoica <[email protected]>
 Date: Mon, 20 Apr 2015 13:18:47 +0300
-Subject: [PATCH] add basic detection of asym features
+Subject: [PATCH 16/38] add basic detection of asym features
 
 Change-Id: I3b3ba8664bf631a63be1f11e715024509e20f841
 Signed-off-by: Cristian Stoica <[email protected]>
@@ -33,5 +33,5 @@ index da3a842..53dbf64 100644
  		fd = clonefd(filp);
  		ret = put_user(fd, p);
 -- 
-2.3.5
+2.7.0
 
recipes-kernel/cryptodev/sdk_patches/0017-remove-dead-code.patch renamed from recipes-kernel/cryptodev/files/0017-remove-dead-code.patch +2 -2
similarity index 97%
rename from recipes-kernel/cryptodev/files/0017-remove-dead-code.patch
rename to recipes-kernel/cryptodev/sdk_patches/0017-remove-dead-code.patch
index b3c36b3..07c389c 100644
@@ -1,7 +1,7 @@
 From 0ca641091b4113d73e75d30ef530c88836849308 Mon Sep 17 00:00:00 2001
 From: Tudor Ambarus <[email protected]>
 Date: Fri, 29 May 2015 15:28:47 +0300
-Subject: [PATCH 17/20] remove dead code
+Subject: [PATCH 17/38] remove dead code
 
 Functions kop_to_user and compat_kop_to_user are never used. Delete them
 to avoid compiler warnings.
@@ -63,5 +63,5 @@ index 53dbf64..39635a4 100644
  compat_to_session_op(struct compat_session_op *compat, struct session_op *sop)
  {
 -- 
-2.3.5
+2.7.0
 
recipes-kernel/cryptodev/sdk_patches/0018-fix-compat-warnings.patch renamed from recipes-kernel/cryptodev/files/0018-fix-compat-warnings.patch +2 -2
similarity index 97%
rename from recipes-kernel/cryptodev/files/0018-fix-compat-warnings.patch
rename to recipes-kernel/cryptodev/sdk_patches/0018-fix-compat-warnings.patch
index bf93f5b..b0fcf0f 100644
@@ -1,7 +1,7 @@
 From 596378a22532908487f2c5e4d717c5ae618c4c7d Mon Sep 17 00:00:00 2001
 From: Tudor Ambarus <[email protected]>
 Date: Tue, 2 Jun 2015 10:44:12 +0300
-Subject: [PATCH 18/20] fix compat warnings
+Subject: [PATCH 18/38] fix compat warnings
 
   CC [M]  crypto/../../cryptodev-linux/ioctl.o
 crypto/../../cryptodev-linux/ioctl.c: In function 'compat_to_crypt_kop':
@@ -60,5 +60,5 @@ index 39635a4..f3ce2f6 100644
  				kfree(pkc);
  			} else {
 -- 
-2.3.5
+2.7.0
 
recipes-kernel/cryptodev/sdk_patches/0019-fix-size_t-print-format.patch renamed from recipes-kernel/cryptodev/files/0019-fix-size_t-print-format.patch +2 -2
similarity index 98%
rename from recipes-kernel/cryptodev/files/0019-fix-size_t-print-format.patch
rename to recipes-kernel/cryptodev/sdk_patches/0019-fix-size_t-print-format.patch
index a71cff4..fdf8c5d 100644
@@ -1,7 +1,7 @@
 From 1d10f06bef0f07980a08b387850c1daf1d3a8e87 Mon Sep 17 00:00:00 2001
 From: Tudor Ambarus <[email protected]>
 Date: Tue, 2 Jun 2015 12:11:12 +0300
-Subject: [PATCH 19/20] fix size_t print format
+Subject: [PATCH 19/38] fix size_t print format
 
   CC [M]  crypto/../../cryptodev-linux/cryptlib.o
 crypto/../../cryptodev-linux/cryptlib.c: In function 'cryptodev_cipher_init':
@@ -57,5 +57,5 @@ index 5882a30..10f5e1a 100644
  			ret = -EINVAL;
  			goto error;
 -- 
-2.3.5
+2.7.0
 
recipes-kernel/cryptodev/sdk_patches/0020-fix-uninitialized-variable-compiler-warning.patch renamed from recipes-kernel/cryptodev/files/0020-fix-uninitialized-variable-compiler-warning.patch +2 -2
similarity index 94%
rename from recipes-kernel/cryptodev/files/0020-fix-uninitialized-variable-compiler-warning.patch
rename to recipes-kernel/cryptodev/sdk_patches/0020-fix-uninitialized-variable-compiler-warning.patch
index a97a2d4..dddd77e 100644
@@ -1,7 +1,7 @@
 From be9f6a0dc90847dbb00307d23f47b8b3fc3ff130 Mon Sep 17 00:00:00 2001
 From: Tudor Ambarus <[email protected]>
 Date: Fri, 29 May 2015 15:49:22 +0300
-Subject: [PATCH 20/20] fix uninitialized variable compiler warning
+Subject: [PATCH 20/38] fix uninitialized variable compiler warning
 
 crypto/../../cryptodev-linux/ioctl.c: In function 'cryptodev_compat_ioctl':
 crypto/../../cryptodev-linux/ioctl.c:1445:2: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized]
@@ -34,5 +34,5 @@ index f3ce2f6..7cd3c56 100644
  
  		for (i = 0; i < MAX_COOKIES; i++) {
 -- 
-2.3.5
+2.7.0
 
recipes-kernel/cryptodev/sdk_patches/0021-check-return-codes-for-copy-to-from-user-functions.patch renamed from recipes-kernel/cryptodev/files/0021-check-return-codes-for-copy-to-from-user-functions.patch +2 -2
similarity index 99%
rename from recipes-kernel/cryptodev/files/0021-check-return-codes-for-copy-to-from-user-functions.patch
rename to recipes-kernel/cryptodev/sdk_patches/0021-check-return-codes-for-copy-to-from-user-functions.patch
index 558d045..2cace5f 100644
@@ -1,7 +1,7 @@
 From 4078382cfc69c0f5e582d485fe8cc778f9e458d1 Mon Sep 17 00:00:00 2001
 From: Cristian Stoica <[email protected]>
 Date: Mon, 21 Sep 2015 16:39:52 +0300
-Subject: [PATCH 21/23] check return codes for copy to/from user functions
+Subject: [PATCH 21/38] check return codes for copy to/from user functions
 
 - these functions may fail and we should check their return codes.
 - fix an unintended fall-through in CRK_DSA_GENERATE_KEY
@@ -394,5 +394,5 @@ index ed1c69a..e5adb93 100644
  		if (rc != -EINPROGRESS && rc != 0)
  			goto err;
 -- 
-2.3.5
+2.7.0
 
recipes-kernel/cryptodev/sdk_patches/0022-fix-double-free-pkc-req-on-error.patch renamed from recipes-kernel/cryptodev/files/0022-fix-double-free-pkc-req-on-error.patch +2 -2
similarity index 91%
rename from recipes-kernel/cryptodev/files/0022-fix-double-free-pkc-req-on-error.patch
rename to recipes-kernel/cryptodev/sdk_patches/0022-fix-double-free-pkc-req-on-error.patch
index 6e747e0..7bc177e 100644
@@ -1,7 +1,7 @@
 From 85146b8429ba11bd0be68c24c17dd77b21ec8c25 Mon Sep 17 00:00:00 2001
 From: Cristian Stoica <[email protected]>
 Date: Mon, 12 Oct 2015 23:03:28 +0300
-Subject: [PATCH 22/23] fix double free pkc->req on error
+Subject: [PATCH 22/38] fix double free pkc->req on error
 
 Signed-off-by: Cristian Stoica <[email protected]>
 ---
@@ -22,5 +22,5 @@ index e5adb93..ec11129 100644
  
  	return err;
 -- 
-2.3.5
+2.7.0
 
recipes-kernel/cryptodev/sdk_patches/0023-remove-MAY_BACKLOG-flag-from-requests.patch renamed from recipes-kernel/cryptodev/files/0023-remove-MAY_BACKLOG-flag-from-requests.patch +2 -2
similarity index 97%
rename from recipes-kernel/cryptodev/files/0023-remove-MAY_BACKLOG-flag-from-requests.patch
rename to recipes-kernel/cryptodev/sdk_patches/0023-remove-MAY_BACKLOG-flag-from-requests.patch
index 32c3ddd..5674e03 100644
@@ -1,7 +1,7 @@
 From 7d0d0deb255f8c59b0cf6d3944ee2e3be4133b4c Mon Sep 17 00:00:00 2001
 From: Alex Porosanu <[email protected]>
 Date: Mon, 19 Oct 2015 11:53:11 +0300
-Subject: [PATCH 23/23] remove MAY_BACKLOG flag from requests
+Subject: [PATCH 23/38] remove MAY_BACKLOG flag from requests
 
 cryptodev doesn't implement the backlogging mechanism properly,
 since it misses the possibility of sleeping and waiting for
@@ -65,5 +65,5 @@ index 10f5e1a..eba4616 100644
  	if (ret != -EINPROGRESS && ret != 0)
  		goto error;
 -- 
-2.3.5
+2.7.0
 
recipes-kernel/cryptodev/sdk_patches/0024-fix-COMPAT_CIOCKEY-ioctl-command-number.patch renamed from recipes-kernel/cryptodev/files/0024-fix-COMPAT_CIOCKEY-ioctl-command-number.patch +2 -2
similarity index 94%
rename from recipes-kernel/cryptodev/files/0024-fix-COMPAT_CIOCKEY-ioctl-command-number.patch
rename to recipes-kernel/cryptodev/sdk_patches/0024-fix-COMPAT_CIOCKEY-ioctl-command-number.patch
index 8d0bd8b..7277086 100644
@@ -1,7 +1,7 @@
 From 53e4d0fe4a334dae3df32b2053e4ebdfda2e9148 Mon Sep 17 00:00:00 2001
 From: Tudor Ambarus <[email protected]>
 Date: Tue, 27 Oct 2015 15:51:02 +0200
-Subject: [PATCH] fix COMPAT_CIOCKEY ioctl command number
+Subject: [PATCH 24/38] fix COMPAT_CIOCKEY ioctl command number
 
 CIOCKEY and COMPAT_CIOCKEY had different command numbers,
 so that 32-bit applications got EINVAL error on 64-bit kernel.
@@ -25,5 +25,5 @@ index c83c885..cb005d7 100644
  #define COMPAT_CIOCASYNCFETCH  _IOR('c', 108, struct compat_crypt_op)
  #define COMPAT_CIOCAUTHCRYPT   _IOWR('c', 109, struct compat_crypt_auth_op)
 -- 
-2.3.3
+2.7.0
 
recipes-kernel/cryptodev/sdk_patches/0025-fix-benchmarks-linking.patch new file +25 -0
new file mode 100644
index 0000000..608c681
@@ -0,0 +1,25 @@
+From 978cfcf9253c409520c0f168f8caa249f50a8843 Mon Sep 17 00:00:00 2001
+From: Fridolin Pokorny <[email protected]>
+Date: Fri, 8 Jan 2016 09:38:29 +0100
+Subject: [PATCH 25/38] fix benchmarks linking
+
+---
+ lib/Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lib/Makefile b/lib/Makefile
+index af87795..3bedc34 100644
+--- a/lib/Makefile
++++ b/lib/Makefile
+@@ -3,7 +3,7 @@ CFLAGS=-g -O2 -Wall
+ all: benchmark
+ 
+ benchmark: main.c libthreshold.a
+-	gcc $(CFLAGS) -DDEBUG -o $@ $^ -lssl libthreshold.a
++	gcc $(CFLAGS) -DDEBUG -o $@ $^ -lssl -lcrypto libthreshold.a
+ 
+ .o:
+ 	gcc $(CCFLAGS) -c $< -o $@
+-- 
+2.7.0
+
recipes-kernel/cryptodev/sdk_patches/0026-fix-Makefile-to-allow-parallel-make-with-j-option.patch new file +56 -0

56 lines not on this page · raw message

recipes-kernel/cryptodev/sdk_patches/0027-use-Linux-kernel-conventions-for-Makefile-variables.patch new file +47 -0

47 lines not on this page · raw message

recipes-kernel/cryptodev/sdk_patches/0028-for-consistency-use-.-instead-of-.-in-makefiles.patch new file +73 -0

73 lines not on this page · raw message

recipes-kernel/cryptodev/sdk_patches/0029-fix-clean-up-on-error-path-for-crypto_create_session.patch new file +117 -0

117 lines not on this page · raw message

recipes-kernel/cryptodev/sdk_patches/0030-remove-code-duplication-in-cryptodev_hash_init.patch new file +59 -0

59 lines not on this page · raw message

recipes-kernel/cryptodev/sdk_patches/0031-fix-comment-typo.patch new file +26 -0
new file mode 100644
index 0000000..cde9552
@@ -0,0 +1,26 @@
+From 73a2489ba634503a0cc2bb6e84627ceeda0f059f Mon Sep 17 00:00:00 2001
+From: Cristian Stoica <[email protected]>
+Date: Tue, 12 Jan 2016 17:15:56 +0200
+Subject: [PATCH 31/38] fix comment typo
+
+Signed-off-by: Cristian Stoica <[email protected]>
+---
+ ioctl.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/ioctl.c b/ioctl.c
+index a537886..7adde75 100644
+--- a/ioctl.c
++++ b/ioctl.c
+@@ -397,7 +397,7 @@ session_error:
+ 	return ret;
+ }
+ 
+-/* Everything that needs to be done when remowing a session. */
++/* Everything that needs to be done when removing a session. */
+ static inline void
+ crypto_destroy_session(struct csession *ses_ptr)
+ {
+-- 
+2.7.0
+
recipes-kernel/cryptodev/sdk_patches/0032-avoid-calls-to-kmalloc-on-hotpaths.patch new file +220 -0

220 lines not on this page · raw message

recipes-kernel/cryptodev/sdk_patches/0033-avoid-unnecessary-checks-for-hash-clean-up.patch new file +33 -0
new file mode 100644
index 0000000..3ce8a5f
@@ -0,0 +1,33 @@
+From 774c6bd169b683ed54ebad164d0ff541e1381a64 Mon Sep 17 00:00:00 2001
+From: Cristian Stoica <[email protected]>
+Date: Tue, 12 Jan 2016 17:09:33 +0200
+Subject: [PATCH 33/38] avoid unnecessary checks for hash clean-up
+
+hdata->init is set only after all necessary allocations succeed. On
+clean-up is no longer necessary to make the allocation checks.
+
+Signed-off-by: Cristian Stoica <[email protected]>
+---
+ cryptlib.c | 6 ++----
+ 1 file changed, 2 insertions(+), 4 deletions(-)
+
+diff --git a/cryptlib.c b/cryptlib.c
+index 5972fc2..5d1a5a9 100644
+--- a/cryptlib.c
++++ b/cryptlib.c
+@@ -359,10 +359,8 @@ error:
+ void cryptodev_hash_deinit(struct hash_data *hdata)
+ {
+ 	if (hdata->init) {
+-		if (hdata->async.request)
+-			ahash_request_free(hdata->async.request);
+-		if (hdata->async.s)
+-			crypto_free_ahash(hdata->async.s);
++		ahash_request_free(hdata->async.request);
++		crypto_free_ahash(hdata->async.s);
+ 		hdata->init = 0;
+ 	}
+ }
+-- 
+2.7.0
+
recipes-kernel/cryptodev/sdk_patches/0034-extend-API-with-CIOCHASH-to-support-direct-hash-oper.patch new file +114 -0

114 lines not on this page · raw message

recipes-kernel/cryptodev/sdk_patches/0035-use-directly-crypto-API-digest-operation-for-CIOCHAS.patch new file +315 -0

315 lines not on this page · raw message

recipes-kernel/cryptodev/sdk_patches/0036-add-compat-for-CIOCHASH-operation.patch new file +120 -0

120 lines not on this page · raw message

recipes-kernel/cryptodev/sdk_patches/0037-rewrite-sha_speed.c-to-reduce-code-duplication.patch new file +190 -0

190 lines not on this page · raw message

recipes-kernel/cryptodev/sdk_patches/0038-extend-sha_speed.c-to-test-CIOCHASH.patch new file +143 -0

143 lines not on this page · raw message

recipes-kernel/cryptodev/sdk_patches/0039-fix-memory-leaks-on-error-path-for-CIOCHASH.patch new file +70 -0

70 lines not on this page · raw message

recipes-kernel/cryptodev/sdk_patches/0040-fix-structure-init-in-sha_speed-test.patch new file +53 -0

53 lines not on this page · raw message

recipes-kernel/cryptodev/sdk_patches/0041-add-separate-target-for-building-tests.patch new file +38 -0
new file mode 100644
index 0000000..ff73825
@@ -0,0 +1,38 @@
+From 0d58530f5c5970db9787a23aef4227c68f941fcc Mon Sep 17 00:00:00 2001
+From: Cristian Stoica <[email protected]>
+Date: Wed, 10 Feb 2016 16:22:05 +0200
+Subject: [PATCH 41/43] add separate target for building tests
+
+A separate target for build is useful with cross-compilation. In this
+case it makes sense to build the tests without running them on the host
+machine.
+
+The default target is now 'all' and only builds the tests
+
+Signed-off-by: Cristian Stoica <[email protected]>
+---
+ tests/Makefile | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/tests/Makefile b/tests/Makefile
+index 3155da9..89f88fe 100644
+--- a/tests/Makefile
++++ b/tests/Makefile
+@@ -19,6 +19,8 @@ example-async-hmac-objs := async_hmac.o
+ example-async-speed-objs := async_speed.o
+ example-hashcrypt-speed-objs := hashcrypt_speed.c
+ 
++all: $(hostprogs)
++
+ check: $(hostprogs)
+ 	./cipher
+ 	./hmac
+@@ -33,3 +35,5 @@ clean:
+ 
+ ${comp_progs}: LDLIBS += -lssl -lcrypto
+ ${comp_progs}: %: %.o openssl_wrapper.o
++
++.PHONY: all clean check
+-- 
+2.7.0
+
recipes-kernel/cryptodev/sdk_patches/0042-fix-destination-for-staged-installs.patch new file +55 -0

55 lines not on this page · raw message

recipes-kernel/cryptodev/sdk_patches/0043-add-install-target-for-tests.patch new file +46 -0

46 lines not on this page · raw message

recipes-kernel/cryptodev/yocto_patches/0001-Add-the-compile-and-install-rules-for-cryptodev-test.patch new file +50 -0

50 lines not on this page · raw message

recipes-kernel/cryptodev/yocto_patches/0001-Disable-installing-header-file-provided-by-another-p.patch new file +29 -0
new file mode 100644
index 0000000..6d8db4e
@@ -0,0 +1,29 @@
+From eedfa57953d2d6255d53cb098c3f81cbde9187f7 Mon Sep 17 00:00:00 2001
+From: Cristian Stoica <[email protected]>
+Date: Mon, 22 Feb 2016 11:47:27 +0200
+Subject: [PATCH 1/2] Disable installing header file provided by another
+ package
+
+(original patch Signed-off-by: Denys Dmytriyenko <[email protected]>)
+Signed-off-by: Cristian Stoica <[email protected]>
+
+Upstream-Status: Inappropriate [ OE specific ]
+---
+ Makefile | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/Makefile b/Makefile
+index 9871a8e..06202bd 100644
+--- a/Makefile
++++ b/Makefile
+@@ -33,7 +33,6 @@ install: modules_install
+ 
+ modules_install:
+ 	$(MAKE) -C $(KERNEL_DIR) M=$(PWD) modules_install
+-	install -m 644 -D crypto/cryptodev.h $(DESTDIR)/$(includedir)/crypto/cryptodev.h
+ 
+ clean:
+ 	$(MAKE) -C $(KERNEL_DIR) M=$(PWD) clean
+-- 
+2.7.0
+
Signature · 1 line
1.9.2
#3 lore raw

PATCH 3/5 openssl: rename to openssl-qoriq

In reply to [email protected]

From: Ting Liu <[email protected]>

The QorIQ version of openssl needs to use another recipe name and have a common provider, which is than choosen for QorIQ-based machines.

The recipe is now called 'openssl-qoriq' and it provides openssl so the preferrence is set just for QorIQ based machines.

---
 conf/machine/include/qoriq.inc                     |  2 +-
 .../openssl/{openssl.inc => openssl-qoriq.inc}     | 12 ++-
 .../configure-targets.patch                        |  0
 .../debian/c_rehash-compat.patch                   |  0
 .../{openssl => openssl-qoriq}/debian/ca.patch     |  0
 .../debian/debian-targets.patch                    |  0
 .../debian/make-targets.patch                      |  0
 .../debian/man-dir.patch                           |  0
 .../debian/man-section.patch                       |  0
 .../debian/no-rpath.patch                          |  0
 .../debian/no-symbolic.patch                       |  0
 .../{openssl => openssl-qoriq}/debian/pic.patch    |  0
 .../debian/version-script.patch                    |  0
 .../engines-install-in-libdir-ssl.patch            |  0
 .../openssl/{openssl => openssl-qoriq}/find.pl     |  0
 .../fix-cipher-des-ede3-cfb1.patch                 |  0
 .../initial-aarch64-bits.patch                     |  0
 .../{openssl => openssl-qoriq}/oe-ldflags.patch    |  0
 ...-pointer-dereference-in-EVP_DigestInit_ex.patch |  0
 ...NULL-pointer-dereference-in-dh_pub_encode.patch |  0
 .../openssl-fix-des.pod-error.patch                |  0
 .../openssl-fix-link.patch                         |  0
 .../openssl_fix_for_x32.patch                      |  0
 ...double-initialization-of-cryptodev-engine.patch |  0
 ...ev-add-support-for-TLS-algorithms-offload.patch |  0
 ...0003-cryptodev-fix-algorithm-registration.patch |  0
 ...ake-it-more-robust-and-recognize-KERNEL_B.patch |  0
 ...5-ECC-Support-header-for-Cryptodev-Engine.patch |  0
 .../0006-Fixed-private-key-support-for-DH.patch    |  0
 .../0007-Fixed-private-key-support-for-DH.patch    |  0
 ...itial-support-for-PKC-in-cryptodev-engine.patch |  0
 ...009-Added-hwrng-dev-file-as-source-of-RNG.patch |  0
 ...s-interface-added-for-PKC-cryptodev-inter.patch |  0
 ...gen-operation-and-support-gendsa-command-.patch |  0
 .../qoriq}/0012-RSA-Keygen-Fix.patch               |  0
 .../0013-Removed-local-copy-of-curve_t-type.patch  |  0
 ...us-parameter-is-not-populated-by-dhparams.patch |  0
 .../0015-SW-Backoff-mechanism-for-dsa-keygen.patch |  0
 .../0016-Fixed-DH-keygen-pair-generator.patch      |  0
 ...dd-support-for-aes-gcm-algorithm-offloadi.patch |  0
 ...ev-extend-TLS-offload-with-3des_cbc_hmac_.patch |  0
 ...ev-add-support-for-TLSv1.1-record-offload.patch |  0
 ...ev-add-support-for-TLSv1.2-record-offload.patch |  0
 .../0021-cryptodev-drop-redundant-function.patch   |  0
 ...yptodev-do-not-zero-the-buffer-before-use.patch |  0
 .../0023-cryptodev-clean-up-code-layout.patch      |  0
 ...odev-do-not-cache-file-descriptor-in-open.patch |  0
 ...cryptodev-put_dev_crypto-should-be-an-int.patch |  0
 ...todev-simplify-cryptodev-pkc-support-code.patch |  0
 .../{openssl => openssl-qoriq}/shared-libs.patch   |  0
 .../openssl/openssl-qoriq_1.0.1i.bb                | 96 ++++++++++++++++++++++
 recipes-connectivity/openssl/openssl_1.0.1i.bb     | 53 ------------
 .../openssl/openssl_1.0.1i.bbappend                | 40 ---------
 53 files changed, 108 insertions(+), 95 deletions(-)
 rename recipes-connectivity/openssl/{openssl.inc => openssl-qoriq.inc} (92%)
 rename recipes-connectivity/openssl/{openssl => openssl-qoriq}/configure-targets.patch (100%)
 rename recipes-connectivity/openssl/{openssl => openssl-qoriq}/debian/c_rehash-compat.patch (100%)
 rename recipes-connectivity/openssl/{openssl => openssl-qoriq}/debian/ca.patch (100%)
 rename recipes-connectivity/openssl/{openssl => openssl-qoriq}/debian/debian-targets.patch (100%)
 rename recipes-connectivity/openssl/{openssl => openssl-qoriq}/debian/make-targets.patch (100%)
 rename recipes-connectivity/openssl/{openssl => openssl-qoriq}/debian/man-dir.patch (100%)
 rename recipes-connectivity/openssl/{openssl => openssl-qoriq}/debian/man-section.patch (100%)
 rename recipes-connectivity/openssl/{openssl => openssl-qoriq}/debian/no-rpath.patch (100%)
 rename recipes-connectivity/openssl/{openssl => openssl-qoriq}/debian/no-symbolic.patch (100%)
 rename recipes-connectivity/openssl/{openssl => openssl-qoriq}/debian/pic.patch (100%)
 rename recipes-connectivity/openssl/{openssl => openssl-qoriq}/debian/version-script.patch (100%)
 rename recipes-connectivity/openssl/{openssl => openssl-qoriq}/engines-install-in-libdir-ssl.patch (100%)
 rename recipes-connectivity/openssl/{openssl => openssl-qoriq}/find.pl (100%)
 rename recipes-connectivity/openssl/{openssl => openssl-qoriq}/fix-cipher-des-ede3-cfb1.patch (100%)
 rename recipes-connectivity/openssl/{openssl => openssl-qoriq}/initial-aarch64-bits.patch (100%)
 rename recipes-connectivity/openssl/{openssl => openssl-qoriq}/oe-ldflags.patch (100%)
 rename recipes-connectivity/openssl/{openssl => openssl-qoriq}/openssl-avoid-NULL-pointer-dereference-in-EVP_DigestInit_ex.patch (100%)
 rename recipes-connectivity/openssl/{openssl => openssl-qoriq}/openssl-avoid-NULL-pointer-dereference-in-dh_pub_encode.patch (100%)
 rename recipes-connectivity/openssl/{openssl => openssl-qoriq}/openssl-fix-des.pod-error.patch (100%)
 rename recipes-connectivity/openssl/{openssl => openssl-qoriq}/openssl-fix-link.patch (100%)
 rename recipes-connectivity/openssl/{openssl => openssl-qoriq}/openssl_fix_for_x32.patch (100%)
 rename recipes-connectivity/openssl/{openssl-fsl => openssl-qoriq/qoriq}/0001-remove-double-initialization-of-cryptodev-engine.patch (100%)
 rename recipes-connectivity/openssl/{openssl-fsl => openssl-qoriq/qoriq}/0002-eng_cryptodev-add-support-for-TLS-algorithms-offload.patch (100%)
 rename recipes-connectivity/openssl/{openssl-fsl => openssl-qoriq/qoriq}/0003-cryptodev-fix-algorithm-registration.patch (100%)
 rename recipes-connectivity/openssl/{openssl-fsl => openssl-qoriq/qoriq}/0004-linux-pcc-make-it-more-robust-and-recognize-KERNEL_B.patch (100%)
 rename recipes-connectivity/openssl/{openssl-fsl => openssl-qoriq/qoriq}/0005-ECC-Support-header-for-Cryptodev-Engine.patch (100%)
 rename recipes-connectivity/openssl/{openssl-fsl => openssl-qoriq/qoriq}/0006-Fixed-private-key-support-for-DH.patch (100%)
 rename recipes-connectivity/openssl/{openssl-fsl => openssl-qoriq/qoriq}/0007-Fixed-private-key-support-for-DH.patch (100%)
 rename recipes-connectivity/openssl/{openssl-fsl => openssl-qoriq/qoriq}/0008-Initial-support-for-PKC-in-cryptodev-engine.patch (100%)
 rename recipes-connectivity/openssl/{openssl-fsl => openssl-qoriq/qoriq}/0009-Added-hwrng-dev-file-as-source-of-RNG.patch (100%)
 rename recipes-connectivity/openssl/{openssl-fsl => openssl-qoriq/qoriq}/0010-Asynchronous-interface-added-for-PKC-cryptodev-inter.patch (100%)
 rename recipes-connectivity/openssl/{openssl-fsl => openssl-qoriq/qoriq}/0011-Add-RSA-keygen-operation-and-support-gendsa-command-.patch (100%)
 rename recipes-connectivity/openssl/{openssl-fsl => openssl-qoriq/qoriq}/0012-RSA-Keygen-Fix.patch (100%)
 rename recipes-connectivity/openssl/{openssl-fsl => openssl-qoriq/qoriq}/0013-Removed-local-copy-of-curve_t-type.patch (100%)
 rename recipes-connectivity/openssl/{openssl-fsl => openssl-qoriq/qoriq}/0014-Modulus-parameter-is-not-populated-by-dhparams.patch (100%)
 rename recipes-connectivity/openssl/{openssl-fsl => openssl-qoriq/qoriq}/0015-SW-Backoff-mechanism-for-dsa-keygen.patch (100%)
 rename recipes-connectivity/openssl/{openssl-fsl => openssl-qoriq/qoriq}/0016-Fixed-DH-keygen-pair-generator.patch (100%)
 rename recipes-connectivity/openssl/{openssl-fsl => openssl-qoriq/qoriq}/0017-cryptodev-add-support-for-aes-gcm-algorithm-offloadi.patch (100%)
 rename recipes-connectivity/openssl/{openssl-fsl => openssl-qoriq/qoriq}/0018-eng_cryptodev-extend-TLS-offload-with-3des_cbc_hmac_.patch (100%)
 rename recipes-connectivity/openssl/{openssl-fsl => openssl-qoriq/qoriq}/0019-eng_cryptodev-add-support-for-TLSv1.1-record-offload.patch (100%)
 rename recipes-connectivity/openssl/{openssl-fsl => openssl-qoriq/qoriq}/0020-eng_cryptodev-add-support-for-TLSv1.2-record-offload.patch (100%)
 rename recipes-connectivity/openssl/{openssl-fsl => openssl-qoriq/qoriq}/0021-cryptodev-drop-redundant-function.patch (100%)
 rename recipes-connectivity/openssl/{openssl-fsl => openssl-qoriq/qoriq}/0022-cryptodev-do-not-zero-the-buffer-before-use.patch (100%)
 rename recipes-connectivity/openssl/{openssl-fsl => openssl-qoriq/qoriq}/0023-cryptodev-clean-up-code-layout.patch (100%)
 rename recipes-connectivity/openssl/{openssl-fsl => openssl-qoriq/qoriq}/0024-cryptodev-do-not-cache-file-descriptor-in-open.patch (100%)
 rename recipes-connectivity/openssl/{openssl-fsl => openssl-qoriq/qoriq}/0025-cryptodev-put_dev_crypto-should-be-an-int.patch (100%)
 rename recipes-connectivity/openssl/{openssl-fsl => openssl-qoriq/qoriq}/0026-cryptodev-simplify-cryptodev-pkc-support-code.patch (100%)
 rename recipes-connectivity/openssl/{openssl => openssl-qoriq}/shared-libs.patch (100%)
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq_1.0.1i.bb
 delete mode 100644 recipes-connectivity/openssl/openssl_1.0.1i.bb
 delete mode 100644 recipes-connectivity/openssl/openssl_1.0.1i.bbappend
conf/machine/include/qoriq.inc +1 -1
index 84b5abb..70cd56b 100644
@@ -6,9 +6,9 @@ PREFERRED_PROVIDER_u-boot ?= "u-boot-qoriq"
 PREFERRED_PROVIDER_cryptodev-linux = "cryptodev-qoriq-linux"
 PREFERRED_PROVIDER_cryptodev-module = "cryptodev-qoriq-module"
 PREFERRED_PROVIDER_cryptodev-tests = "cryptodev-qoriq-tests"
+PREFERRED_PROVIDER_openssl = "openssl-qoriq"
 
 PREFERRED_VERSION_qemu = "2.4.0+fsl"
-PREFERRED_VERSION_openssl = "1.0.1i"
 
 MACHINE_FEATURES = "keyboard pci ext2 ext3 serial"
 MACHINE_EXTRA_RRECOMMENDS += "udev-rules-qoriq kernel-modules"
recipes-connectivity/openssl/openssl-qoriq.inc renamed from recipes-connectivity/openssl/openssl.inc +11 -1
similarity index 92%
rename from recipes-connectivity/openssl/openssl.inc
rename to recipes-connectivity/openssl/openssl-qoriq.inc
index aa1143d..87ba1c3 100644
@@ -8,6 +8,17 @@ SECTION = "libs/network"
 LICENSE = "openssl"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=f9a8f968107345e0b75aa8c2ecaa7ec8"
 
+PROVIDES = "openssl"
+
+python() {
+    pkgs = d.getVar('PACKAGES', True).split()
+    for p in pkgs:
+        if 'openssl-qoriq' in p:
+            d.appendVar("RPROVIDES_%s" % p, p.replace('openssl-qoriq', 'openssl'))
+            d.appendVar("RCONFLICTS_%s" % p, p.replace('openssl-qoriq', 'openssl'))
+            d.appendVar("RREPLACES_%s" % p, p.replace('openssl-qoriq', 'openssl'))
+}
+
 DEPENDS = "perl-native-runtime"
 
 SRC_URI = "http://www.openssl.org/source/openssl-${PV}.tar.gz \
@@ -171,4 +182,3 @@ do_install () {
 }
 
 BBCLASSEXTEND = "native nativesdk"
-
recipes-connectivity/openssl/openssl-qoriq/configure-targets.patch renamed from recipes-connectivity/openssl/openssl/configure-targets.patch +0 -0
similarity index 100%
rename from recipes-connectivity/openssl/openssl/configure-targets.patch
rename to recipes-connectivity/openssl/openssl-qoriq/configure-targets.patch
recipes-connectivity/openssl/openssl-qoriq/debian/c_rehash-compat.patch renamed from recipes-connectivity/openssl/openssl/debian/c_rehash-compat.patch +0 -0
similarity index 100%
rename from recipes-connectivity/openssl/openssl/debian/c_rehash-compat.patch
rename to recipes-connectivity/openssl/openssl-qoriq/debian/c_rehash-compat.patch
recipes-connectivity/openssl/openssl-qoriq/debian/ca.patch renamed from recipes-connectivity/openssl/openssl/debian/ca.patch +0 -0
similarity index 100%
rename from recipes-connectivity/openssl/openssl/debian/ca.patch
rename to recipes-connectivity/openssl/openssl-qoriq/debian/ca.patch
recipes-connectivity/openssl/openssl-qoriq/debian/debian-targets.patch renamed from recipes-connectivity/openssl/openssl/debian/debian-targets.patch +0 -0
similarity index 100%
rename from recipes-connectivity/openssl/openssl/debian/debian-targets.patch
rename to recipes-connectivity/openssl/openssl-qoriq/debian/debian-targets.patch
recipes-connectivity/openssl/openssl-qoriq/debian/make-targets.patch renamed from recipes-connectivity/openssl/openssl/debian/make-targets.patch +0 -0
similarity index 100%
rename from recipes-connectivity/openssl/openssl/debian/make-targets.patch
rename to recipes-connectivity/openssl/openssl-qoriq/debian/make-targets.patch
recipes-connectivity/openssl/openssl-qoriq/debian/man-dir.patch renamed from recipes-connectivity/openssl/openssl/debian/man-dir.patch +0 -0
similarity index 100%
rename from recipes-connectivity/openssl/openssl/debian/man-dir.patch
rename to recipes-connectivity/openssl/openssl-qoriq/debian/man-dir.patch
recipes-connectivity/openssl/openssl-qoriq/debian/man-section.patch renamed from recipes-connectivity/openssl/openssl/debian/man-section.patch +0 -0
similarity index 100%
rename from recipes-connectivity/openssl/openssl/debian/man-section.patch
rename to recipes-connectivity/openssl/openssl-qoriq/debian/man-section.patch
recipes-connectivity/openssl/openssl-qoriq/debian/no-rpath.patch renamed from recipes-connectivity/openssl/openssl/debian/no-rpath.patch +0 -0
similarity index 100%
rename from recipes-connectivity/openssl/openssl/debian/no-rpath.patch
rename to recipes-connectivity/openssl/openssl-qoriq/debian/no-rpath.patch
recipes-connectivity/openssl/openssl-qoriq/debian/no-symbolic.patch renamed from recipes-connectivity/openssl/openssl/debian/no-symbolic.patch +0 -0
similarity index 100%
rename from recipes-connectivity/openssl/openssl/debian/no-symbolic.patch
rename to recipes-connectivity/openssl/openssl-qoriq/debian/no-symbolic.patch
recipes-connectivity/openssl/openssl-qoriq/debian/pic.patch renamed from recipes-connectivity/openssl/openssl/debian/pic.patch +0 -0
similarity index 100%
rename from recipes-connectivity/openssl/openssl/debian/pic.patch
rename to recipes-connectivity/openssl/openssl-qoriq/debian/pic.patch
recipes-connectivity/openssl/openssl-qoriq/debian/version-script.patch renamed from recipes-connectivity/openssl/openssl/debian/version-script.patch +0 -0
similarity index 100%
rename from recipes-connectivity/openssl/openssl/debian/version-script.patch
rename to recipes-connectivity/openssl/openssl-qoriq/debian/version-script.patch
recipes-connectivity/openssl/openssl-qoriq/engines-install-in-libdir-ssl.patch renamed from recipes-connectivity/openssl/openssl/engines-install-in-libdir-ssl.patch +0 -0
similarity index 100%
rename from recipes-connectivity/openssl/openssl/engines-install-in-libdir-ssl.patch
rename to recipes-connectivity/openssl/openssl-qoriq/engines-install-in-libdir-ssl.patch
recipes-connectivity/openssl/openssl-qoriq/find.pl renamed from recipes-connectivity/openssl/openssl/find.pl +0 -0
similarity index 100%
rename from recipes-connectivity/openssl/openssl/find.pl
rename to recipes-connectivity/openssl/openssl-qoriq/find.pl
recipes-connectivity/openssl/openssl-qoriq/fix-cipher-des-ede3-cfb1.patch renamed from recipes-connectivity/openssl/openssl/fix-cipher-des-ede3-cfb1.patch +0 -0
similarity index 100%
rename from recipes-connectivity/openssl/openssl/fix-cipher-des-ede3-cfb1.patch
rename to recipes-connectivity/openssl/openssl-qoriq/fix-cipher-des-ede3-cfb1.patch
recipes-connectivity/openssl/openssl-qoriq/initial-aarch64-bits.patch renamed from recipes-connectivity/openssl/openssl/initial-aarch64-bits.patch +0 -0
similarity index 100%
rename from recipes-connectivity/openssl/openssl/initial-aarch64-bits.patch
rename to recipes-connectivity/openssl/openssl-qoriq/initial-aarch64-bits.patch
recipes-connectivity/openssl/openssl-qoriq/oe-ldflags.patch renamed from recipes-connectivity/openssl/openssl/oe-ldflags.patch +0 -0
similarity index 100%
rename from recipes-connectivity/openssl/openssl/oe-ldflags.patch
rename to recipes-connectivity/openssl/openssl-qoriq/oe-ldflags.patch
recipes-connectivity/openssl/openssl-qoriq/openssl-avoid-NULL-pointer-dereference-in-EVP_DigestInit_ex.patch renamed from recipes-connectivity/openssl/openssl/openssl-avoid-NULL-pointer-dereference-in-EVP_DigestInit_ex.patch +0 -0
similarity index 100%
rename from recipes-connectivity/openssl/openssl/openssl-avoid-NULL-pointer-dereference-in-EVP_DigestInit_ex.patch
rename to recipes-connectivity/openssl/openssl-qoriq/openssl-avoid-NULL-pointer-dereference-in-EVP_DigestInit_ex.patch
recipes-connectivity/openssl/openssl-qoriq/openssl-avoid-NULL-pointer-dereference-in-dh_pub_encode.patch renamed from recipes-connectivity/openssl/openssl/openssl-avoid-NULL-pointer-dereference-in-dh_pub_encode.patch +0 -0
similarity index 100%
rename from recipes-connectivity/openssl/openssl/openssl-avoid-NULL-pointer-dereference-in-dh_pub_encode.patch
rename to recipes-connectivity/openssl/openssl-qoriq/openssl-avoid-NULL-pointer-dereference-in-dh_pub_encode.patch
recipes-connectivity/openssl/openssl-qoriq/openssl-fix-des.pod-error.patch renamed from recipes-connectivity/openssl/openssl/openssl-fix-des.pod-error.patch +0 -0
similarity index 100%
rename from recipes-connectivity/openssl/openssl/openssl-fix-des.pod-error.patch
rename to recipes-connectivity/openssl/openssl-qoriq/openssl-fix-des.pod-error.patch
recipes-connectivity/openssl/openssl-qoriq/openssl-fix-link.patch renamed from recipes-connectivity/openssl/openssl/openssl-fix-link.patch +0 -0
similarity index 100%
rename from recipes-connectivity/openssl/openssl/openssl-fix-link.patch
rename to recipes-connectivity/openssl/openssl-qoriq/openssl-fix-link.patch
recipes-connectivity/openssl/openssl-qoriq/openssl_fix_for_x32.patch renamed from recipes-connectivity/openssl/openssl/openssl_fix_for_x32.patch +0 -0
similarity index 100%
rename from recipes-connectivity/openssl/openssl/openssl_fix_for_x32.patch
rename to recipes-connectivity/openssl/openssl-qoriq/openssl_fix_for_x32.patch
recipes-connectivity/openssl/openssl-qoriq/qoriq/0001-remove-double-initialization-of-cryptodev-engine.patch renamed from recipes-connectivity/openssl/openssl-fsl/0001-remove-double-initialization-of-cryptodev-engine.patch +0 -0
similarity index 100%
rename from recipes-connectivity/openssl/openssl-fsl/0001-remove-double-initialization-of-cryptodev-engine.patch
rename to recipes-connectivity/openssl/openssl-qoriq/qoriq/0001-remove-double-initialization-of-cryptodev-engine.patch
recipes-connectivity/openssl/openssl-qoriq/qoriq/0002-eng_cryptodev-add-support-for-TLS-algorithms-offload.patch renamed from recipes-connectivity/openssl/openssl-fsl/0002-eng_cryptodev-add-support-for-TLS-algorithms-offload.patch +0 -0
similarity index 100%
rename from recipes-connectivity/openssl/openssl-fsl/0002-eng_cryptodev-add-support-for-TLS-algorithms-offload.patch
rename to recipes-connectivity/openssl/openssl-qoriq/qoriq/0002-eng_cryptodev-add-support-for-TLS-algorithms-offload.patch
recipes-connectivity/openssl/openssl-qoriq/qoriq/0003-cryptodev-fix-algorithm-registration.patch renamed from recipes-connectivity/openssl/openssl-fsl/0003-cryptodev-fix-algorithm-registration.patch +0 -0
similarity index 100%
rename from recipes-connectivity/openssl/openssl-fsl/0003-cryptodev-fix-algorithm-registration.patch
rename to recipes-connectivity/openssl/openssl-qoriq/qoriq/0003-cryptodev-fix-algorithm-registration.patch
recipes-connectivity/openssl/openssl-qoriq/qoriq/0004-linux-pcc-make-it-more-robust-and-recognize-KERNEL_B.patch renamed from recipes-connectivity/openssl/openssl-fsl/0004-linux-pcc-make-it-more-robust-and-recognize-KERNEL_B.patch +0 -0
similarity index 100%
rename from recipes-connectivity/openssl/openssl-fsl/0004-linux-pcc-make-it-more-robust-and-recognize-KERNEL_B.patch
rename to recipes-connectivity/openssl/openssl-qoriq/qoriq/0004-linux-pcc-make-it-more-robust-and-recognize-KERNEL_B.patch
recipes-connectivity/openssl/openssl-qoriq/qoriq/0005-ECC-Support-header-for-Cryptodev-Engine.patch renamed from recipes-connectivity/openssl/openssl-fsl/0005-ECC-Support-header-for-Cryptodev-Engine.patch +0 -0
similarity index 100%
rename from recipes-connectivity/openssl/openssl-fsl/0005-ECC-Support-header-for-Cryptodev-Engine.patch
rename to recipes-connectivity/openssl/openssl-qoriq/qoriq/0005-ECC-Support-header-for-Cryptodev-Engine.patch
recipes-connectivity/openssl/openssl-qoriq/qoriq/0006-Fixed-private-key-support-for-DH.patch renamed from recipes-connectivity/openssl/openssl-fsl/0006-Fixed-private-key-support-for-DH.patch +0 -0
similarity index 100%
rename from recipes-connectivity/openssl/openssl-fsl/0006-Fixed-private-key-support-for-DH.patch
rename to recipes-connectivity/openssl/openssl-qoriq/qoriq/0006-Fixed-private-key-support-for-DH.patch
recipes-connectivity/openssl/openssl-qoriq/qoriq/0007-Fixed-private-key-support-for-DH.patch renamed from recipes-connectivity/openssl/openssl-fsl/0007-Fixed-private-key-support-for-DH.patch +0 -0
similarity index 100%
rename from recipes-connectivity/openssl/openssl-fsl/0007-Fixed-private-key-support-for-DH.patch
rename to recipes-connectivity/openssl/openssl-qoriq/qoriq/0007-Fixed-private-key-support-for-DH.patch
recipes-connectivity/openssl/openssl-qoriq/qoriq/0008-Initial-support-for-PKC-in-cryptodev-engine.patch renamed from recipes-connectivity/openssl/openssl-fsl/0008-Initial-support-for-PKC-in-cryptodev-engine.patch +0 -0
similarity index 100%
rename from recipes-connectivity/openssl/openssl-fsl/0008-Initial-support-for-PKC-in-cryptodev-engine.patch
rename to recipes-connectivity/openssl/openssl-qoriq/qoriq/0008-Initial-support-for-PKC-in-cryptodev-engine.patch
recipes-connectivity/openssl/openssl-qoriq/qoriq/0009-Added-hwrng-dev-file-as-source-of-RNG.patch renamed from recipes-connectivity/openssl/openssl-fsl/0009-Added-hwrng-dev-file-as-source-of-RNG.patch +0 -0
similarity index 100%
rename from recipes-connectivity/openssl/openssl-fsl/0009-Added-hwrng-dev-file-as-source-of-RNG.patch
rename to recipes-connectivity/openssl/openssl-qoriq/qoriq/0009-Added-hwrng-dev-file-as-source-of-RNG.patch
recipes-connectivity/openssl/openssl-qoriq/qoriq/0010-Asynchronous-interface-added-for-PKC-cryptodev-inter.patch renamed from recipes-connectivity/openssl/openssl-fsl/0010-Asynchronous-interface-added-for-PKC-cryptodev-inter.patch +0 -0
similarity index 100%
rename from recipes-connectivity/openssl/openssl-fsl/0010-Asynchronous-interface-added-for-PKC-cryptodev-inter.patch
rename to recipes-connectivity/openssl/openssl-qoriq/qoriq/0010-Asynchronous-interface-added-for-PKC-cryptodev-inter.patch
recipes-connectivity/openssl/openssl-qoriq/qoriq/0011-Add-RSA-keygen-operation-and-support-gendsa-command-.patch renamed from recipes-connectivity/openssl/openssl-fsl/0011-Add-RSA-keygen-operation-and-support-gendsa-command-.patch +0 -0
similarity index 100%
rename from recipes-connectivity/openssl/openssl-fsl/0011-Add-RSA-keygen-operation-and-support-gendsa-command-.patch
rename to recipes-connectivity/openssl/openssl-qoriq/qoriq/0011-Add-RSA-keygen-operation-and-support-gendsa-command-.patch
recipes-connectivity/openssl/openssl-qoriq/qoriq/0012-RSA-Keygen-Fix.patch renamed from recipes-connectivity/openssl/openssl-fsl/0012-RSA-Keygen-Fix.patch +0 -0
similarity index 100%
rename from recipes-connectivity/openssl/openssl-fsl/0012-RSA-Keygen-Fix.patch
rename to recipes-connectivity/openssl/openssl-qoriq/qoriq/0012-RSA-Keygen-Fix.patch
recipes-connectivity/openssl/openssl-qoriq/qoriq/0013-Removed-local-copy-of-curve_t-type.patch renamed from recipes-connectivity/openssl/openssl-fsl/0013-Removed-local-copy-of-curve_t-type.patch +0 -0
similarity index 100%
rename from recipes-connectivity/openssl/openssl-fsl/0013-Removed-local-copy-of-curve_t-type.patch
rename to recipes-connectivity/openssl/openssl-qoriq/qoriq/0013-Removed-local-copy-of-curve_t-type.patch
recipes-connectivity/openssl/openssl-qoriq/qoriq/0014-Modulus-parameter-is-not-populated-by-dhparams.patch renamed from recipes-connectivity/openssl/openssl-fsl/0014-Modulus-parameter-is-not-populated-by-dhparams.patch +0 -0
similarity index 100%
rename from recipes-connectivity/openssl/openssl-fsl/0014-Modulus-parameter-is-not-populated-by-dhparams.patch
rename to recipes-connectivity/openssl/openssl-qoriq/qoriq/0014-Modulus-parameter-is-not-populated-by-dhparams.patch
recipes-connectivity/openssl/openssl-qoriq/qoriq/0015-SW-Backoff-mechanism-for-dsa-keygen.patch renamed from recipes-connectivity/openssl/openssl-fsl/0015-SW-Backoff-mechanism-for-dsa-keygen.patch +0 -0
similarity index 100%
rename from recipes-connectivity/openssl/openssl-fsl/0015-SW-Backoff-mechanism-for-dsa-keygen.patch
rename to recipes-connectivity/openssl/openssl-qoriq/qoriq/0015-SW-Backoff-mechanism-for-dsa-keygen.patch
recipes-connectivity/openssl/openssl-qoriq/qoriq/0016-Fixed-DH-keygen-pair-generator.patch renamed from recipes-connectivity/openssl/openssl-fsl/0016-Fixed-DH-keygen-pair-generator.patch +0 -0
similarity index 100%
rename from recipes-connectivity/openssl/openssl-fsl/0016-Fixed-DH-keygen-pair-generator.patch
rename to recipes-connectivity/openssl/openssl-qoriq/qoriq/0016-Fixed-DH-keygen-pair-generator.patch
recipes-connectivity/openssl/openssl-qoriq/qoriq/0017-cryptodev-add-support-for-aes-gcm-algorithm-offloadi.patch renamed from recipes-connectivity/openssl/openssl-fsl/0017-cryptodev-add-support-for-aes-gcm-algorithm-offloadi.patch +0 -0
similarity index 100%
rename from recipes-connectivity/openssl/openssl-fsl/0017-cryptodev-add-support-for-aes-gcm-algorithm-offloadi.patch
rename to recipes-connectivity/openssl/openssl-qoriq/qoriq/0017-cryptodev-add-support-for-aes-gcm-algorithm-offloadi.patch
recipes-connectivity/openssl/openssl-qoriq/qoriq/0018-eng_cryptodev-extend-TLS-offload-with-3des_cbc_hmac_.patch renamed from recipes-connectivity/openssl/openssl-fsl/0018-eng_cryptodev-extend-TLS-offload-with-3des_cbc_hmac_.patch +0 -0
similarity index 100%
rename from recipes-connectivity/openssl/openssl-fsl/0018-eng_cryptodev-extend-TLS-offload-with-3des_cbc_hmac_.patch
rename to recipes-connectivity/openssl/openssl-qoriq/qoriq/0018-eng_cryptodev-extend-TLS-offload-with-3des_cbc_hmac_.patch
recipes-connectivity/openssl/openssl-qoriq/qoriq/0019-eng_cryptodev-add-support-for-TLSv1.1-record-offload.patch renamed from recipes-connectivity/openssl/openssl-fsl/0019-eng_cryptodev-add-support-for-TLSv1.1-record-offload.patch +0 -0
similarity index 100%
rename from recipes-connectivity/openssl/openssl-fsl/0019-eng_cryptodev-add-support-for-TLSv1.1-record-offload.patch
rename to recipes-connectivity/openssl/openssl-qoriq/qoriq/0019-eng_cryptodev-add-support-for-TLSv1.1-record-offload.patch
recipes-connectivity/openssl/openssl-qoriq/qoriq/0020-eng_cryptodev-add-support-for-TLSv1.2-record-offload.patch renamed from recipes-connectivity/openssl/openssl-fsl/0020-eng_cryptodev-add-support-for-TLSv1.2-record-offload.patch +0 -0
similarity index 100%
rename from recipes-connectivity/openssl/openssl-fsl/0020-eng_cryptodev-add-support-for-TLSv1.2-record-offload.patch
rename to recipes-connectivity/openssl/openssl-qoriq/qoriq/0020-eng_cryptodev-add-support-for-TLSv1.2-record-offload.patch
recipes-connectivity/openssl/openssl-qoriq/qoriq/0021-cryptodev-drop-redundant-function.patch renamed from recipes-connectivity/openssl/openssl-fsl/0021-cryptodev-drop-redundant-function.patch +0 -0
similarity index 100%
rename from recipes-connectivity/openssl/openssl-fsl/0021-cryptodev-drop-redundant-function.patch
rename to recipes-connectivity/openssl/openssl-qoriq/qoriq/0021-cryptodev-drop-redundant-function.patch
recipes-connectivity/openssl/openssl-qoriq/qoriq/0022-cryptodev-do-not-zero-the-buffer-before-use.patch renamed from recipes-connectivity/openssl/openssl-fsl/0022-cryptodev-do-not-zero-the-buffer-before-use.patch +0 -0
similarity index 100%
rename from recipes-connectivity/openssl/openssl-fsl/0022-cryptodev-do-not-zero-the-buffer-before-use.patch
rename to recipes-connectivity/openssl/openssl-qoriq/qoriq/0022-cryptodev-do-not-zero-the-buffer-before-use.patch
recipes-connectivity/openssl/openssl-qoriq/qoriq/0023-cryptodev-clean-up-code-layout.patch renamed from recipes-connectivity/openssl/openssl-fsl/0023-cryptodev-clean-up-code-layout.patch +0 -0
similarity index 100%
rename from recipes-connectivity/openssl/openssl-fsl/0023-cryptodev-clean-up-code-layout.patch
rename to recipes-connectivity/openssl/openssl-qoriq/qoriq/0023-cryptodev-clean-up-code-layout.patch
recipes-connectivity/openssl/openssl-qoriq/qoriq/0024-cryptodev-do-not-cache-file-descriptor-in-open.patch renamed from recipes-connectivity/openssl/openssl-fsl/0024-cryptodev-do-not-cache-file-descriptor-in-open.patch +0 -0
similarity index 100%
rename from recipes-connectivity/openssl/openssl-fsl/0024-cryptodev-do-not-cache-file-descriptor-in-open.patch
rename to recipes-connectivity/openssl/openssl-qoriq/qoriq/0024-cryptodev-do-not-cache-file-descriptor-in-open.patch
recipes-connectivity/openssl/openssl-qoriq/qoriq/0025-cryptodev-put_dev_crypto-should-be-an-int.patch renamed from recipes-connectivity/openssl/openssl-fsl/0025-cryptodev-put_dev_crypto-should-be-an-int.patch +0 -0
similarity index 100%
rename from recipes-connectivity/openssl/openssl-fsl/0025-cryptodev-put_dev_crypto-should-be-an-int.patch
rename to recipes-connectivity/openssl/openssl-qoriq/qoriq/0025-cryptodev-put_dev_crypto-should-be-an-int.patch
recipes-connectivity/openssl/openssl-qoriq/qoriq/0026-cryptodev-simplify-cryptodev-pkc-support-code.patch renamed from recipes-connectivity/openssl/openssl-fsl/0026-cryptodev-simplify-cryptodev-pkc-support-code.patch +0 -0
similarity index 100%
rename from recipes-connectivity/openssl/openssl-fsl/0026-cryptodev-simplify-cryptodev-pkc-support-code.patch
rename to recipes-connectivity/openssl/openssl-qoriq/qoriq/0026-cryptodev-simplify-cryptodev-pkc-support-code.patch
recipes-connectivity/openssl/openssl-qoriq/shared-libs.patch renamed from recipes-connectivity/openssl/openssl/shared-libs.patch +0 -0
similarity index 100%
rename from recipes-connectivity/openssl/openssl/shared-libs.patch
rename to recipes-connectivity/openssl/openssl-qoriq/shared-libs.patch
recipes-connectivity/openssl/openssl-qoriq_1.0.1i.bb new file +96 -0

96 lines not on this page · raw message

recipes-connectivity/openssl/openssl_1.0.1i.bb deleted +0 -53

53 lines not on this page · raw message

recipes-connectivity/openssl/openssl_1.0.1i.bbappend deleted +0 -40
deleted file mode 100644
index 7b381ff..0000000
@@ -1,40 +0,0 @@
-FILESEXTRAPATHS_prepend := "${THISDIR}/openssl-fsl:"
-
-RDEPENDS_${PN}_class-target += "cryptodev-module"
-
-SRC_URI_append_class-target = " file://0001-remove-double-initialization-of-cryptodev-engine.patch \
-	file://0002-eng_cryptodev-add-support-for-TLS-algorithms-offload.patch \
-	file://0003-cryptodev-fix-algorithm-registration.patch \
-	file://0004-linux-pcc-make-it-more-robust-and-recognize-KERNEL_B.patch \
-	file://0005-ECC-Support-header-for-Cryptodev-Engine.patch \
-	file://0006-Fixed-private-key-support-for-DH.patch \
-	file://0007-Fixed-private-key-support-for-DH.patch \
-	file://0008-Initial-support-for-PKC-in-cryptodev-engine.patch \
-	file://0009-Added-hwrng-dev-file-as-source-of-RNG.patch \
-	file://0010-Asynchronous-interface-added-for-PKC-cryptodev-inter.patch \
-	file://0011-Add-RSA-keygen-operation-and-support-gendsa-command-.patch \
-	file://0012-RSA-Keygen-Fix.patch \
-	file://0013-Removed-local-copy-of-curve_t-type.patch \
-	file://0014-Modulus-parameter-is-not-populated-by-dhparams.patch \
-	file://0015-SW-Backoff-mechanism-for-dsa-keygen.patch \
-	file://0016-Fixed-DH-keygen-pair-generator.patch \
-	file://0017-cryptodev-add-support-for-aes-gcm-algorithm-offloadi.patch \
-	file://0018-eng_cryptodev-extend-TLS-offload-with-3des_cbc_hmac_.patch \
-	file://0019-eng_cryptodev-add-support-for-TLSv1.1-record-offload.patch \
-	file://0020-eng_cryptodev-add-support-for-TLSv1.2-record-offload.patch \
-	file://0021-cryptodev-drop-redundant-function.patch \
-	file://0022-cryptodev-do-not-zero-the-buffer-before-use.patch \
-	file://0023-cryptodev-clean-up-code-layout.patch \
-	file://0024-cryptodev-do-not-cache-file-descriptor-in-open.patch \
-	file://0025-cryptodev-put_dev_crypto-should-be-an-int.patch \
-	file://0026-cryptodev-simplify-cryptodev-pkc-support-code.patch \
-"
-
-# Digest offloading through cryptodev is not recommended because of the
-# performance penalty of the Openssl engine interface. Openssl generates a huge
-# number of calls to digest functions for even a small amount of work data.
-# For example there are 70 calls to cipher code and over 10000 to digest code
-# when downloading only 10 files of 700 bytes each.
-# Do not build OpenSSL with cryptodev digest support until engine digest
-# interface gets some rework:
-CFLAG_class-target := "${@'${CFLAG}'.replace('-DUSE_CRYPTODEV_DIGESTS', '')}"
Signature · 1 line
1.9.2
#4 lore raw

PATCH 4/5 openssl-qoriq: upgrade to 1.0.2h plus fsl patches

In reply to [email protected]

From: Cristian Stoica <[email protected]>

upstream recipe extended with patches from fsl and CIOCHASH feature.

---
 recipes-connectivity/openssl/openssl-qoriq.inc     |  127 +-
 .../openssl/openssl-qoriq/Makefiles-ptest.patch    |   77 +
 .../openssl-qoriq/configure-musl-target.patch      |   27 +
 .../openssl/openssl-qoriq/configure-targets.patch  |   39 +-
 .../crypto_use_bigint_in_x86-64_perl.patch         |   35 +
 .../openssl-qoriq/debian/c_rehash-compat.patch     |   62 +-
 .../openssl-qoriq/debian/debian-targets.patch      |   25 +-
 .../openssl-qoriq/debian/make-targets.patch        |   15 -
 .../openssl-qoriq/debian/version-script.patch      |  311 +-
 .../debian1.0.2/block_digicert_malaysia.patch      |   29 +
 .../debian1.0.2/block_diginotar.patch              |   68 +
 .../openssl-qoriq/debian1.0.2/version-script.patch | 4656 ++++++++++++++++++++
 .../engines-install-in-libdir-ssl.patch            |   42 +-
 .../openssl-qoriq/fix-cipher-des-ede3-cfb1.patch   |   21 +-
 .../openssl-qoriq/initial-aarch64-bits.patch       |  119 -
 .../openssl-qoriq/openssl-1.0.2a-x32-asm.patch     |   46 +
 ...-pointer-dereference-in-EVP_DigestInit_ex.patch |   22 +-
 ...NULL-pointer-dereference-in-dh_pub_encode.patch |   39 -
 .../openssl/openssl-qoriq/openssl-c_rehash.sh      |  210 +
 .../openssl/openssl-qoriq/openssl-fix-link.patch   |   35 -
 .../openssl-qoriq/openssl_fix_for_x32.patch        |   85 +-
 .../openssl/openssl-qoriq/parallel.patch           |  326 ++
 .../openssl/openssl-qoriq/ptest-deps.patch         |   34 +
 .../openssl-qoriq/ptest_makefile_deps.patch        |  248 ++
 ...double-initialization-of-cryptodev-engine.patch |   63 +-
 ...ev-add-support-for-TLS-algorithms-offload.patch |  508 ++-
 ...0003-cryptodev-fix-algorithm-registration.patch |   71 +-
 ...-ECC-Support-header-for-Cryptodev-Engine.patch} |   35 +-
 ...ake-it-more-robust-and-recognize-KERNEL_B.patch |   74 -
 ...itial-support-for-PKC-in-cryptodev-engine.patch | 1578 +++++++
 ...006-Added-hwrng-dev-file-as-source-of-RNG.patch |   28 +
 .../0006-Fixed-private-key-support-for-DH.patch    |   33 -
 ...s-interface-added-for-PKC-cryptodev-inter.patch | 2050 +++++++++
 .../0007-Fixed-private-key-support-for-DH.patch    |   35 -
 ...gen-operation-and-support-gendsa-command-.patch |  155 +
 ...itial-support-for-PKC-in-cryptodev-engine.patch | 1564 -------
 ...009-Added-hwrng-dev-file-as-source-of-RNG.patch |   28 -
 .../openssl-qoriq/qoriq/0009-RSA-Keygen-Fix.patch  |   64 +
 ...s-interface-added-for-PKC-cryptodev-inter.patch | 2039 ---------
 .../0010-Removed-local-copy-of-curve_t-type.patch  |  163 +
 ...gen-operation-and-support-gendsa-command-.patch |  153 -
 ...us-parameter-is-not-populated-by-dhparams.patch |   43 +
 .../openssl-qoriq/qoriq/0012-RSA-Keygen-Fix.patch  |   64 -
 .../0012-SW-Backoff-mechanism-for-dsa-keygen.patch |   53 +
 .../0013-Fixed-DH-keygen-pair-generator.patch      |  100 +
 .../0013-Removed-local-copy-of-curve_t-type.patch  |  164 -
 ...us-parameter-is-not-populated-by-dhparams.patch |   43 -
 ...dd-support-for-aes-gcm-algorithm-offloadi.patch |  321 ++
 .../0015-SW-Backoff-mechanism-for-dsa-keygen.patch |   53 -
 ...ev-extend-TLS-offload-with-3des_cbc_hmac_.patch |  199 +
 .../0016-Fixed-DH-keygen-pair-generator.patch      |  100 -
 ...ev-add-support-for-TLSv1.1-record-offload.patch |  338 ++
 ...dd-support-for-aes-gcm-algorithm-offloadi.patch |  309 --
 ...ev-add-support-for-TLSv1.2-record-offload.patch |  377 ++
 .../0018-cryptodev-drop-redundant-function.patch   |   72 +
 ...ev-extend-TLS-offload-with-3des_cbc_hmac_.patch |  193 -
 ...yptodev-do-not-zero-the-buffer-before-use.patch |   48 +
 ...ev-add-support-for-TLSv1.1-record-offload.patch |  355 --
 .../0020-cryptodev-clean-up-code-layout.patch      |   73 +
 ...ev-add-support-for-TLSv1.2-record-offload.patch |  359 --
 ...odev-do-not-cache-file-descriptor-in-open.patch |   93 +
 .../0021-cryptodev-drop-redundant-function.patch   |   75 -
 ...yptodev-do-not-zero-the-buffer-before-use.patch |   48 -
 ...ryptodev-put_dev_crypto-should-be-an-int.patch} |   18 +-
 .../0023-cryptodev-clean-up-code-layout.patch      |   72 -
 ...odev-simplify-cryptodev-pkc-support-code.patch} |  168 +-
 ...larify-code-remove-assignments-from-condi.patch |   37 +
 ...odev-do-not-cache-file-descriptor-in-open.patch |  100 -
 ...lean-up-context-state-before-anything-els.patch |   34 +
 ...emove-code-duplication-in-digest-operatio.patch |  155 +
 ...ut-all-digest-ioctls-into-a-single-functi.patch |  108 +
 .../0028-cryptodev-fix-debug-print-messages.patch  |   90 +
 ...-use-CIOCHASH-ioctl-for-digest-operations.patch |   91 +
 ...educe-duplicated-efforts-for-searching-in.patch |  106 +
 ...cryptodev-remove-not-used-local-variables.patch |   46 +
 ...odev-hide-not-used-variable-behind-ifndef.patch |   27 +
 ...3-cryptodev-fix-function-declaration-typo.patch |   26 +
 ...ryptodev-fix-incorrect-function-signature.patch |   26 +
 ...ix-warnings-on-excess-elements-in-struct-.patch |  110 +
 .../0036-cryptodev-fix-free-on-error-path.patch    |   46 +
 .../0037-cryptodev-fix-return-value-on-error.patch |   28 +
 ...38-cryptodev-match-types-with-cryptodev.h.patch |   29 +
 ...ptodev-explicitly-discard-const-qualifier.patch |   30 +
 .../0040-cryptodev-replace-caddr_t-with-void.patch |   95 +
 ...heck-for-errors-inside-cryptodev_rsa_mod_.patch |   49 +
 ...heck-for-errors-inside-cryptodev_rsa_mod_.patch |   69 +
 ...heck-for-errors-inside-cryptodev_dh_compu.patch |   52 +
 ...heck-for-errors-inside-cryptodev_dh_compu.patch |   76 +
 ...change-signature-for-conversion-functions.patch |   38 +
 ...add-explicit-cast-for-known-BIGNUM-values.patch |   26 +
 ...ptodev-treat-all-build-warnings-as-errors.patch |   28 +
 ...is-used-uninitialized-warning-on-some-com.patch |   29 +
 .../openssl/openssl-qoriq/run-ptest                |    2 +
 .../openssl/openssl-qoriq_1.0.1i.bb                |   96 -
 .../openssl/openssl-qoriq_1.0.2h.bb                |  111 +
 95 files changed, 13908 insertions(+), 6929 deletions(-)
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/Makefiles-ptest.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/configure-musl-target.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/crypto_use_bigint_in_x86-64_perl.patch
 delete mode 100644 recipes-connectivity/openssl/openssl-qoriq/debian/make-targets.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/debian1.0.2/block_digicert_malaysia.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/debian1.0.2/block_diginotar.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/debian1.0.2/version-script.patch
 delete mode 100644 recipes-connectivity/openssl/openssl-qoriq/initial-aarch64-bits.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/openssl-1.0.2a-x32-asm.patch
 delete mode 100644 recipes-connectivity/openssl/openssl-qoriq/openssl-avoid-NULL-pointer-dereference-in-dh_pub_encode.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/openssl-c_rehash.sh
 delete mode 100644 recipes-connectivity/openssl/openssl-qoriq/openssl-fix-link.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/parallel.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/ptest-deps.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/ptest_makefile_deps.patch
 rename recipes-connectivity/openssl/openssl-qoriq/qoriq/{0005-ECC-Support-header-for-Cryptodev-Engine.patch => 0004-ECC-Support-header-for-Cryptodev-Engine.patch} (92%)
 delete mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0004-linux-pcc-make-it-more-robust-and-recognize-KERNEL_B.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0005-Initial-support-for-PKC-in-cryptodev-engine.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0006-Added-hwrng-dev-file-as-source-of-RNG.patch
 delete mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0006-Fixed-private-key-support-for-DH.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0007-Asynchronous-interface-added-for-PKC-cryptodev-inter.patch
 delete mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0007-Fixed-private-key-support-for-DH.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0008-Add-RSA-keygen-operation-and-support-gendsa-command-.patch
 delete mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0008-Initial-support-for-PKC-in-cryptodev-engine.patch
 delete mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0009-Added-hwrng-dev-file-as-source-of-RNG.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0009-RSA-Keygen-Fix.patch
 delete mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0010-Asynchronous-interface-added-for-PKC-cryptodev-inter.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0010-Removed-local-copy-of-curve_t-type.patch
 delete mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0011-Add-RSA-keygen-operation-and-support-gendsa-command-.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0011-Modulus-parameter-is-not-populated-by-dhparams.patch
 delete mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0012-RSA-Keygen-Fix.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0012-SW-Backoff-mechanism-for-dsa-keygen.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0013-Fixed-DH-keygen-pair-generator.patch
 delete mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0013-Removed-local-copy-of-curve_t-type.patch
 delete mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0014-Modulus-parameter-is-not-populated-by-dhparams.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0014-cryptodev-add-support-for-aes-gcm-algorithm-offloadi.patch
 delete mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0015-SW-Backoff-mechanism-for-dsa-keygen.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0015-eng_cryptodev-extend-TLS-offload-with-3des_cbc_hmac_.patch
 delete mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0016-Fixed-DH-keygen-pair-generator.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0016-eng_cryptodev-add-support-for-TLSv1.1-record-offload.patch
 delete mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0017-cryptodev-add-support-for-aes-gcm-algorithm-offloadi.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0017-eng_cryptodev-add-support-for-TLSv1.2-record-offload.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0018-cryptodev-drop-redundant-function.patch
 delete mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0018-eng_cryptodev-extend-TLS-offload-with-3des_cbc_hmac_.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0019-cryptodev-do-not-zero-the-buffer-before-use.patch
 delete mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0019-eng_cryptodev-add-support-for-TLSv1.1-record-offload.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0020-cryptodev-clean-up-code-layout.patch
 delete mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0020-eng_cryptodev-add-support-for-TLSv1.2-record-offload.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0021-cryptodev-do-not-cache-file-descriptor-in-open.patch
 delete mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0021-cryptodev-drop-redundant-function.patch
 delete mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0022-cryptodev-do-not-zero-the-buffer-before-use.patch
 rename recipes-connectivity/openssl/openssl-qoriq/qoriq/{0025-cryptodev-put_dev_crypto-should-be-an-int.patch => 0022-cryptodev-put_dev_crypto-should-be-an-int.patch} (70%)
 delete mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0023-cryptodev-clean-up-code-layout.patch
 rename recipes-connectivity/openssl/openssl-qoriq/qoriq/{0026-cryptodev-simplify-cryptodev-pkc-support-code.patch => 0023-cryptodev-simplify-cryptodev-pkc-support-code.patch} (66%)
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0024-cryptodev-clarify-code-remove-assignments-from-condi.patch
 delete mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0024-cryptodev-do-not-cache-file-descriptor-in-open.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0025-cryptodev-clean-up-context-state-before-anything-els.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0026-cryptodev-remove-code-duplication-in-digest-operatio.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0027-cryptodev-put-all-digest-ioctls-into-a-single-functi.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0028-cryptodev-fix-debug-print-messages.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0029-cryptodev-use-CIOCHASH-ioctl-for-digest-operations.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0030-cryptodev-reduce-duplicated-efforts-for-searching-in.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0031-cryptodev-remove-not-used-local-variables.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0032-cryptodev-hide-not-used-variable-behind-ifndef.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0033-cryptodev-fix-function-declaration-typo.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0034-cryptodev-fix-incorrect-function-signature.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0035-cryptodev-fix-warnings-on-excess-elements-in-struct-.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0036-cryptodev-fix-free-on-error-path.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0037-cryptodev-fix-return-value-on-error.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0038-cryptodev-match-types-with-cryptodev.h.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0039-cryptodev-explicitly-discard-const-qualifier.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0040-cryptodev-replace-caddr_t-with-void.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0041-cryptodev-check-for-errors-inside-cryptodev_rsa_mod_.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0042-cryptodev-check-for-errors-inside-cryptodev_rsa_mod_.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0043-cryptodev-check-for-errors-inside-cryptodev_dh_compu.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0044-cryptodev-check-for-errors-inside-cryptodev_dh_compu.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0045-cryptodev-change-signature-for-conversion-functions.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0046-cryptodev-add-explicit-cast-for-known-BIGNUM-values.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0047-cryptodev-treat-all-build-warnings-as-errors.patch
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq/qoriq/0048-fix-maclen-is-used-uninitialized-warning-on-some-com.patch
 create mode 100755 recipes-connectivity/openssl/openssl-qoriq/run-ptest
 delete mode 100644 recipes-connectivity/openssl/openssl-qoriq_1.0.1i.bb
 create mode 100644 recipes-connectivity/openssl/openssl-qoriq_1.0.2h.bb
recipes-connectivity/openssl/openssl-qoriq.inc +87 -40
index 87ba1c3..8c8c036 100644
@@ -8,6 +8,9 @@ SECTION = "libs/network"
 LICENSE = "openssl"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=f9a8f968107345e0b75aa8c2ecaa7ec8"
 
+DEPENDS = "hostperl-runtime-native"
+DEPENDS_append_class-target = " openssl-native"
+
 PROVIDES = "openssl"
 
 python() {
@@ -19,8 +22,6 @@ python() {
             d.appendVar("RREPLACES_%s" % p, p.replace('openssl-qoriq', 'openssl'))
 }
 
-DEPENDS = "perl-native-runtime"
-
 SRC_URI = "http://www.openssl.org/source/openssl-${PV}.tar.gz \
           "
 S = "${WORKDIR}/openssl-${PV}"
@@ -28,37 +29,39 @@ S = "${WORKDIR}/openssl-${PV}"
 PACKAGECONFIG[perl] = ",,,"
 
 AR_append = " r"
+TERMIO_libc-musl = "-DTERMIOS"
+TERMIO ?= "-DTERMIO"
 # Avoid binaries being marked as requiring an executable stack since it 
 # doesn't(which causes and this causes issues with SELinux
 CFLAG = "${@base_conditional('SITEINFO_ENDIANNESS', 'le', '-DL_ENDIAN', '-DB_ENDIAN', d)} \
-	-DTERMIO ${CFLAGS} -Wall -Wa,--noexecstack"
-
-# -02 does not work on mipsel: ssh hangs when it tries to read /dev/urandom
-CFLAG_mtx-1 := "${@'${CFLAG}'.replace('-O2', '')}"
-CFLAG_mtx-2 := "${@'${CFLAG}'.replace('-O2', '')}"
+	 ${TERMIO} ${CFLAGS} -Wall -Wa,--noexecstack"
 
 export DIRS = "crypto ssl apps"
 export EX_LIBS = "-lgcc -ldl"
 export AS = "${CC} -c"
 EXTRA_OEMAKE = "-e MAKEFLAGS="
 
-inherit pkgconfig siteinfo multilib_header
+inherit pkgconfig siteinfo multilib_header ptest
 
-PACKAGES =+ "libcrypto libssl ${PN}-misc openssl-conf"
-FILES_libcrypto = "${base_libdir}/libcrypto${SOLIBS}"
-FILES_libssl = "${libdir}/libssl.so.*"
+PACKAGES =+ "libcrypto libssl ${PN}-misc ${PN}-conf"
+FILES_libcrypto = "${libdir}/libcrypto${SOLIBS}"
+FILES_libssl = "${libdir}/libssl${SOLIBS}"
 FILES_${PN} =+ " ${libdir}/ssl/*"
-FILES_${PN}-misc = "${libdir}/ssl/misc ${bindir}/c_rehash"
+FILES_${PN}-misc = "${libdir}/ssl/misc"
 RDEPENDS_${PN}-misc = "${@bb.utils.contains('PACKAGECONFIG', 'perl', 'perl', '', d)}"
-FILES_${PN}-dev += "${base_libdir}/libcrypto${SOLIBSDEV}"
 
 # Add the openssl.cnf file to the openssl-conf package.  Make the libcrypto
 # package RRECOMMENDS on this package.  This will enable the configuration
 # file to be installed for both the base openssl package and the libcrypto
 # package since the base openssl package depends on the libcrypto package.
-FILES_openssl-conf = "${libdir}/ssl/openssl.cnf"
-CONFFILES_openssl-conf = "${libdir}/ssl/openssl.cnf"
-RRECOMMENDS_libcrypto += "openssl-conf"
+FILES_${PN}-conf = "${sysconfdir}/ssl/openssl.cnf"
+CONFFILES_${PN}-conf = "${sysconfdir}/ssl/openssl.cnf"
+RRECOMMENDS_libcrypto += "${PN}-conf"
+RDEPENDS_${PN}-ptest += "${PN}-misc make perl perl-module-filehandle bc"
+
+# Remove this to enable SSLv3. SSLv3 is defaulted to disabled due to the POODLE
+# vulnerability
+EXTRA_OECONF = " -no-ssl3"
 
 do_configure_prepend_darwin () {
 	sed -i -e '/version-script=openssl\.ld/d' Configure
@@ -71,17 +74,18 @@ do_configure () {
 	ln -sf apps/openssl.pod crypto/crypto.pod ssl/ssl.pod doc/
 
 	os=${HOST_OS}
-	if [ "x$os" = "xlinux-uclibc" ]; then
-		os=linux
-	elif [ "x$os" = "xlinux-uclibceabi" ]; then
-		os=linux
-	elif [ "x$os" = "xlinux-uclibcspe" ]; then
-		os=linux
-	elif [ "x$os" = "xlinux-gnuspe" ]; then
+	case $os in
+	linux-uclibc |\
+	linux-uclibceabi |\
+	linux-gnueabi |\
+	linux-uclibcspe |\
+	linux-gnuspe |\
+	linux-musl*)
 		os=linux
-	elif [ "x$os" = "xlinux-gnueabi" ]; then
-		os=linux
-	fi
+		;;
+		*)
+		;;
+	esac
 	target="$os-${HOST_ARCH}"
 	case $target in
 	linux-arm)
@@ -91,7 +95,7 @@ do_configure () {
 		target=linux-elf-armeb
 		;;
 	linux-aarch64*)
-		target=linux-generic64
+		target=linux-aarch64
 		;;
 	linux-sh3)
 		target=debian-sh3
@@ -120,9 +124,12 @@ do_configure () {
 	linux-mipsel)
 		target=debian-mipsel
 		;;
-        linux-*-mips64)
+        linux-*-mips64 | linux-mips64)
                target=linux-mips
                 ;;
+	linux-microblaze*|linux-nios2*)
+		target=linux-generic32
+		;;
 	linux-powerpc)
 		target=linux-ppc
 		;;
@@ -148,37 +155,77 @@ do_configure () {
 	perl ./Configure ${EXTRA_OECONF} shared --prefix=$useprefix --openssldir=${libdir}/ssl --libdir=`basename ${libdir}` $target
 }
 
+do_compile_prepend_class-target () {
+    sed -i 's/\((OPENSSL=\)".*"/\1"openssl"/' Makefile
+}
+
 do_compile () {
 	oe_runmake
 }
 
+do_compile_ptest () {
+	oe_runmake buildtest
+}
+
 do_install () {
+	# Create ${D}/${prefix} to fix parallel issues
+	mkdir -p ${D}/${prefix}/
+
 	oe_runmake INSTALL_PREFIX="${D}" MANDIR="${mandir}" install
 
 	oe_libinstall -so libcrypto ${D}${libdir}
 	oe_libinstall -so libssl ${D}${libdir}
 
-	# Moving libcrypto to /lib
-	if [ ! ${D}${libdir} -ef ${D}${base_libdir} ]; then
-		mkdir -p ${D}/${base_libdir}/
-		mv ${D}${libdir}/libcrypto* ${D}${base_libdir}/
-		sed -i s#libdir=\$\{exec_prefix\}\/lib#libdir=${base_libdir}# ${D}/${libdir}/pkgconfig/libcrypto.pc
-	fi
-
 	install -d ${D}${includedir}
 	cp --dereference -R include/openssl ${D}${includedir}
 
+	install -Dm 0755 ${WORKDIR}/openssl-c_rehash.sh ${D}${bindir}/c_rehash
+	sed -i -e 's,/etc/openssl,${sysconfdir}/ssl,g' ${D}${bindir}/c_rehash
+
 	oe_multilib_header openssl/opensslconf.h
 	if [ "${@bb.utils.contains('PACKAGECONFIG', 'perl', 'perl', '', d)}" = "perl" ]; then
-		install -m 0755 ${S}/tools/c_rehash ${D}${bindir}
-		sed -i -e '1s,.*,#!${bindir}/env perl,' ${D}${bindir}/c_rehash
 		sed -i -e '1s,.*,#!${bindir}/env perl,' ${D}${libdir}/ssl/misc/CA.pl
 		sed -i -e '1s,.*,#!${bindir}/env perl,' ${D}${libdir}/ssl/misc/tsget
-		# The c_rehash utility isn't installed by the normal installation process.
 	else
-		rm -f ${D}${bindir}/c_rehash
 		rm -f ${D}${libdir}/ssl/misc/CA.pl ${D}${libdir}/ssl/misc/tsget
 	fi
+
+	# Create SSL structure
+	install -d ${D}${sysconfdir}/ssl/
+	mv ${D}${libdir}/ssl/openssl.cnf \
+	   ${D}${libdir}/ssl/certs \
+	   ${D}${libdir}/ssl/private \
+	   \
+	   ${D}${sysconfdir}/ssl/
+	ln -sf ${sysconfdir}/ssl/certs ${D}${libdir}/ssl/certs
+	ln -sf ${sysconfdir}/ssl/private ${D}${libdir}/ssl/private
+	ln -sf ${sysconfdir}/ssl/openssl.cnf ${D}${libdir}/ssl/openssl.cnf
+}
+
+do_install_ptest () {
+	cp -r -L Makefile.org Makefile test ${D}${PTEST_PATH}
+	cp Configure config e_os.h ${D}${PTEST_PATH}
+	cp -r -L include ${D}${PTEST_PATH}
+	ln -sf ${libdir}/libcrypto.a ${D}${PTEST_PATH}
+	ln -sf ${libdir}/libssl.a ${D}${PTEST_PATH}
+	mkdir -p ${D}${PTEST_PATH}/crypto
+	cp crypto/constant_time_locl.h ${D}${PTEST_PATH}/crypto
+	cp -r certs ${D}${PTEST_PATH}
+	mkdir -p ${D}${PTEST_PATH}/apps
+	ln -sf ${libdir}/ssl/misc/CA.sh  ${D}${PTEST_PATH}/apps
+	ln -sf ${sysconfdir}/ssl/openssl.cnf ${D}${PTEST_PATH}/apps
+	ln -sf ${bindir}/openssl         ${D}${PTEST_PATH}/apps
+	cp apps/server2.pem             ${D}${PTEST_PATH}/apps
+	mkdir -p ${D}${PTEST_PATH}/util
+	install util/opensslwrap.sh    ${D}${PTEST_PATH}/util
+	install util/shlib_wrap.sh     ${D}${PTEST_PATH}/util
+}
+
+do_install_append_class-native() {
+	create_wrapper ${D}${bindir}/openssl \
+	    OPENSSL_CONF=${libdir}/ssl/openssl.cnf \
+	    SSL_CERT_DIR=${libdir}/ssl/certs \
+	    SSL_CERT_FILE=${libdir}/ssl/cert.pem \
+	    OPENSSL_ENGINES=${libdir}/ssl/engines
 }
 
-BBCLASSEXTEND = "native nativesdk"
recipes-connectivity/openssl/openssl-qoriq/Makefiles-ptest.patch new file +77 -0

77 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/configure-musl-target.patch new file +27 -0
new file mode 100644
index 0000000..613dc7b
@@ -0,0 +1,27 @@
+Add musl triplet support
+
+Upstream-Status: Pending
+Signed-off-by: Khem Raj <[email protected]>
+
+Index: openssl-1.0.2a/Configure
+===================================================================
+--- openssl-1.0.2a.orig/Configure
++++ openssl-1.0.2a/Configure
+@@ -431,7 +431,7 @@ my %table=(
+ #
+ #       ./Configure linux-armv4 -march=armv6 -D__ARM_MAX_ARCH__=8
+ #
+-"linux-armv4",	"gcc: -O3 -Wall::-D_REENTRANT::-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL BF_PTR:${armv4_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
++"linux-armv4", "gcc: -O3 -Wall::-D_REENTRANT::-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL BF_PTR:${armv4_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
+ "linux-aarch64","gcc: -O3 -Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL BF_PTR:${aarch64_asm}:linux64:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
+ # Configure script adds minimally required -march for assembly support,
+ # if no -march was specified at command line. mips32 and mips64 below
+@@ -504,6 +504,8 @@ my %table=(
+ "linux-gnueabi-armeb","$ENV{'CC'}:-DB_ENDIAN -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
+ "linux-uclibceabi-arm","$ENV{'CC'}:-DL_ENDIAN -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
+ "linux-uclibceabi-armeb","$ENV{'CC'}:-DB_ENDIAN -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
++"linux-musleabi-arm","$ENV{'CC'}:-DL_ENDIAN -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
++"linux-musleabi-armeb","$ENV{'CC'}:-DB_ENDIAN -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
+ 
+ "linux-avr32","$ENV{'CC'}:-O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).",
+ 
recipes-connectivity/openssl/openssl-qoriq/configure-targets.patch +21 -18
index c1f3d08..691e74a 100644
@@ -7,28 +7,31 @@ The number of colons are important :)
  Configure |   16 ++++++++++++++++
  1 file changed, 16 insertions(+)
 
---- a/Configure
-+++ b/Configure
-@@ -403,6 +403,22 @@ my %table=(
- "linux-alpha-ccc","ccc:-fast -readonly_strings -DL_ENDIAN -DTERMIO::-D_REENTRANT:::SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT DES_PTR DES_RISC1 DES_UNROLL:${alpha_asm}",
- "linux-alpha+bwx-ccc","ccc:-fast -readonly_strings -DL_ENDIAN -DTERMIO::-D_REENTRANT:::SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_INT DES_PTR DES_RISC1 DES_UNROLL:${alpha_asm}",
+Index: openssl-1.0.2a/Configure
+===================================================================
+--- openssl-1.0.2a.orig/Configure
++++ openssl-1.0.2a/Configure
+@@ -443,6 +443,23 @@ my %table=(
+ "linux-alpha-ccc","ccc:-fast -readonly_strings -DL_ENDIAN::-D_REENTRANT:::SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT DES_PTR DES_RISC1 DES_UNROLL:${alpha_asm}",
+ "linux-alpha+bwx-ccc","ccc:-fast -readonly_strings -DL_ENDIAN::-D_REENTRANT:::SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_INT DES_PTR DES_RISC1 DES_UNROLL:${alpha_asm}",
  
-+ # Linux on ARM
-+"linux-elf-arm","$ENV{'CC'}:-DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
-+"linux-elf-armeb","$ENV{'CC'}:-DB_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
-+"linux-gnueabi-arm","$ENV{'CC'}:-DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
-+"linux-gnueabi-armeb","$ENV{'CC'}:-DB_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
-+"linux-uclibceabi-arm","$ENV{'CC'}:-DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
-+"linux-uclibceabi-armeb","$ENV{'CC'}:-DB_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
++ 
++# Linux on ARM
++"linux-elf-arm","$ENV{'CC'}:-DL_ENDIAN -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
++"linux-elf-armeb","$ENV{'CC'}:-DB_ENDIAN -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
++"linux-gnueabi-arm","$ENV{'CC'}:-DL_ENDIAN -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
++"linux-gnueabi-armeb","$ENV{'CC'}:-DB_ENDIAN -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
++"linux-uclibceabi-arm","$ENV{'CC'}:-DL_ENDIAN -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
++"linux-uclibceabi-armeb","$ENV{'CC'}:-DB_ENDIAN -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
 +
-+"linux-avr32","$ENV{'CC'}:-DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).",
++"linux-avr32","$ENV{'CC'}:-O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).",
 +
 +#### Linux on MIPS/MIPS64
-+"linux-mips","$ENV{'CC'}:-DB_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG RC2_CHAR RC4_INDEX DES_INT DES_UNROLL DES_RISC2:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
-+"linux-mips64","$ENV{'CC'}:-DB_ENDIAN -DTERMIO -mabi=64 -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC2_CHAR RC4_INDEX DES_INT DES_UNROLL DES_RISC2:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
-+"linux-mips64el","$ENV{'CC'}:-DL_ENDIAN -DTERMIO -mabi=64 -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC2_CHAR RC4_INDEX DES_INT DES_UNROLL DES_RISC2:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
-+"linux-mipsel","$ENV{'CC'}:-DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG RC2_CHAR RC4_INDEX DES_INT DES_UNROLL DES_RISC2:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
++"linux-mips","$ENV{'CC'}:-DB_ENDIAN -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG RC2_CHAR RC4_INDEX DES_INT DES_UNROLL DES_RISC2:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
++"linux-mips64","$ENV{'CC'}:-DB_ENDIAN -mabi=64 -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC2_CHAR RC4_INDEX DES_INT DES_UNROLL DES_RISC2:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
++"linux-mips64el","$ENV{'CC'}:-DL_ENDIAN -mabi=64 -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC2_CHAR RC4_INDEX DES_INT DES_UNROLL DES_RISC2:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
++"linux-mipsel","$ENV{'CC'}:-DL_ENDIAN -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG RC2_CHAR RC4_INDEX DES_INT DES_UNROLL DES_RISC2:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
 +
- # Android: linux-* but without -DTERMIO and pointers to headers and libs.
+ # Android: linux-* but without pointers to headers and libs.
  "android","gcc:-mandroid -I\$(ANDROID_DEV)/include -B\$(ANDROID_DEV)/lib -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL BF_PTR:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
  "android-x86","gcc:-mandroid -I\$(ANDROID_DEV)/include -B\$(ANDROID_DEV)/lib -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:".eval{my $asm=${x86_elf_asm};$asm=~s/:elf/:android/;$asm}.":dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
recipes-connectivity/openssl/openssl-qoriq/crypto_use_bigint_in_x86-64_perl.patch new file +35 -0
new file mode 100644
index 0000000..af3989f
@@ -0,0 +1,35 @@
+Upstream-Status: Backport
+
+When building on x32 systems where the default type is 32bit, make sure
+we can transparently represent 64bit integers.  Otherwise we end up with
+build errors like:
+/usr/bin/perl asm/ghash-x86_64.pl elf > ghash-x86_64.s
+Integer overflow in hexadecimal number at asm/../../perlasm/x86_64-xlate.pl line 201, <> line 890.
+...
+ghash-x86_64.s: Assembler messages:
+ghash-x86_64.s:890: Error: junk '.15473355479995e+19' after expression
+
+We don't enable this globally as there are some cases where we'd get
+32bit values interpreted as unsigned when we need them as signed.
+
+Reported-by: Bertrand Jacquin <[email protected]>
+URL: https://bugs.gentoo.org/542618
+
+Signed-off-By: Armin Kuster <[email protected]>
+
+Index: openssl-1.0.2a/crypto/perlasm/x86_64-xlate.pl
+===================================================================
+--- openssl-1.0.2a.orig/crypto/perlasm/x86_64-xlate.pl
++++ openssl-1.0.2a/crypto/perlasm/x86_64-xlate.pl
+@@ -194,7 +194,10 @@ my %globals;
+     }
+     sub out {
+     	my $self = shift;
+-
++	# When building on x32 ABIs, the expanded hex value might be too
++	# big to fit into 32bits. Enable transparent 64bit support here
++	# so we can safely print it out.
++	use bigint;
+ 	if ($gas) {
+ 	    # Solaris /usr/ccs/bin/as can't handle multiplications
+ 	    # in $self->{value}
recipes-connectivity/openssl/openssl-qoriq/debian/c_rehash-compat.patch +44 -18

88 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/debian/debian-targets.patch +16 -9
index 8101edf..39d4328 100644
@@ -1,12 +1,12 @@
 Upstream-Status: Backport [debian]
 
-Index: openssl-1.0.1/Configure
+Index: openssl-1.0.2/Configure
 ===================================================================
---- openssl-1.0.1.orig/Configure	2012-03-17 15:37:54.000000000 +0000
-+++ openssl-1.0.1/Configure	2012-03-17 16:13:49.000000000 +0000
-@@ -105,6 +105,10 @@
+--- openssl-1.0.2.orig/Configure
++++ openssl-1.0.2/Configure
+@@ -107,6 +107,10 @@ my $gcc_devteam_warn = "-Wall -pedantic
  
- my $gcc_devteam_warn = "-Wall -pedantic -DPEDANTIC -Wno-long-long -Wsign-compare -Wmissing-prototypes -Wshadow -Wformat -Werror -DCRYPTO_MDEBUG_ALL -DCRYPTO_MDEBUG_ABORT -DREF_CHECK -DOPENSSL_NO_DEPRECATED";
+ my $clang_disabled_warnings = "-Wno-language-extension-token -Wno-extended-offsetof -Wno-padded -Wno-shorten-64-to-32 -Wno-format-nonliteral -Wno-missing-noreturn -Wno-unused-parameter -Wno-sign-conversion -Wno-unreachable-code -Wno-conversion -Wno-documentation -Wno-missing-variable-declarations -Wno-cast-align -Wno-incompatible-pointer-types-discards-qualifiers -Wno-missing-variable-declarations -Wno-missing-field-initializers -Wno-unused-macros -Wno-disabled-macro-expansion -Wno-conditional-uninitialized -Wno-switch-enum";
  
 +# There are no separate CFLAGS/CPPFLAGS/LDFLAGS, set everything in CFLAGS
 +my $debian_cflags = `dpkg-buildflags --get CFLAGS` . `dpkg-buildflags --get CPPFLAGS` . `dpkg-buildflags --get LDFLAGS` . "-Wa,--noexecstack -Wall";
@@ -15,7 +15,7 @@ Index: openssl-1.0.1/Configure
  my $strict_warnings = 0;
  
  my $x86_gcc_des="DES_PTR DES_RISC1 DES_UNROLL";
-@@ -338,6 +342,48 @@
+@@ -343,6 +347,55 @@ my %table=(
  "osf1-alpha-cc",  "cc:-std1 -tune host -O4 -readonly_strings::(unknown):::SIXTY_FOUR_BIT_LONG RC4_CHUNK:${alpha_asm}:dlfcn:alpha-osf1-shared:::.so",
  "tru64-alpha-cc", "cc:-std1 -tune host -fast -readonly_strings::-pthread:::SIXTY_FOUR_BIT_LONG RC4_CHUNK:${alpha_asm}:dlfcn:alpha-osf1-shared::-msym:.so",
  
@@ -23,9 +23,9 @@ Index: openssl-1.0.1/Configure
 +"debian-alpha","gcc:-DTERMIO ${debian_cflags}::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_RISC1 DES_UNROLL:${alpha_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
 +"debian-alpha-ev4","gcc:-DTERMIO ${debian_cflags} -mcpu=ev4::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_RISC1 DES_UNROLL:${alpha_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
 +"debian-alpha-ev5","gcc:-DTERMIO ${debian_cflags} -mcpu=ev5::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_RISC1 DES_UNROLL:${alpha_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
-+"debian-armeb","gcc:-DB_ENDIAN -DTERMIO ${debian_cflags}::-D_REENTRANT::-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL BF_PTR:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
-+"debian-armel","gcc:-DL_ENDIAN -DTERMIO ${debian_cflags}::-D_REENTRANT::-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL BF_PTR:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
-+"debian-armhf","gcc:-DL_ENDIAN -DTERMIO ${debian_cflags}::-D_REENTRANT::-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL BF_PTR:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
++"debian-arm64","gcc:-DL_ENDIAN -DTERMIO ${debian_cflags}::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL BF_PTR:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
++"debian-armel","gcc:-DL_ENDIAN -DTERMIO ${debian_cflags}::-D_REENTRANT::-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL BF_PTR:${armv4_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
++"debian-armhf","gcc:-DL_ENDIAN -DTERMIO ${debian_cflags}::-D_REENTRANT::-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL BF_PTR:${armv4_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
 +"debian-amd64", "gcc:-m64 -DL_ENDIAN -DTERMIO ${debian_cflags} -DMD32_REG_T=int::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT DES_UNROLL:${x86_64_asm}:elf:dlfcn:linux-shared:-fPIC:-m64:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR):::",
 +"debian-avr32", "gcc:-DB_ENDIAN -DTERMIO ${debian_cflags} -fomit-frame-pointer::-D_REENTRANT::-ldl:BN_LLONG_BF_PTR:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
 +"debian-kfreebsd-amd64","gcc:-m64 -DL_ENDIAN -DTERMIOS ${debian_cflags} -DMD32_REG_T=int::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT DES_UNROLL:${x86_64_asm}:elf:dlfcn:linux-shared:-fPIC:-m64:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
@@ -40,15 +40,21 @@ Index: openssl-1.0.1/Configure
 +"debian-m68k","gcc:-DB_ENDIAN -DTERMIO ${debian_cflags}::-D_REENTRANT::-ldl:BN_LLONG MD2_CHAR RC4_INDEX:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
 +"debian-mips",   "gcc:-DB_ENDIAN -DTERMIO ${debian_cflags}::-D_REENTRANT::-ldl:BN_LLONG RC2_CHAR RC4_INDEX DES_INT DES_UNROLL DES_RISC2:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
 +"debian-mipsel",   "gcc:-DL_ENDIAN -DTERMIO ${debian_cflags}::-D_REENTRANT::-ldl:BN_LLONG RC2_CHAR RC4_INDEX DES_INT DES_UNROLL DES_RISC2:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
++"debian-mipsn32",   "mips64-linux-gnuabin32-gcc:-DB_ENDIAN -DTERMIO ${debian_cflags}::-D_REENTRANT::-ldl:BN_LLONG RC2_CHAR RC4_INDEX DES_INT DES_UNROLL DES_RISC2:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
++"debian-mipsn32el",   "mips64el-linux-gnuabin32-gcc:-DL_ENDIAN -DTERMIO ${debian_cflags}::-D_REENTRANT::-ldl:BN_LLONG RC2_CHAR RC4_INDEX DES_INT DES_UNROLL DES_RISC2:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
++"debian-mips64",   "mips64-linux-gnuabi64-gcc:-DB_ENDIAN -DTERMIO ${debian_cflags}::-D_REENTRANT::-ldl:BN_LLONG RC2_CHAR RC4_INDEX DES_INT DES_UNROLL DES_RISC2:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
++"debian-mips64el",   "mips64el-linux-gnuabi64-gcc:-DL_ENDIAN -DTERMIO ${debian_cflags}::-D_REENTRANT::-ldl:BN_LLONG RC2_CHAR RC4_INDEX DES_INT DES_UNROLL DES_RISC2:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
 +"debian-netbsd-i386",	"gcc:-DL_ENDIAN -DTERMIOS ${debian_cflags} -m486::(unknown):::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${no_asm}:dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
 +"debian-netbsd-m68k",	"gcc:-DB_ENDIAN -DTERMIOS ${debian_cflags}::(unknown):::BN_LLONG MD2_CHAR RC4_INDEX DES_UNROLL:${no_asm}:dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
 +"debian-netbsd-sparc",	"gcc:-DB_ENDIAN -DTERMIOS ${debian_cflags} -mv8::(unknown):::BN_LLONG MD2_CHAR RC4_INDEX DES_UNROLL:${no_asm}:dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
 +"debian-openbsd-alpha","gcc:-DTERMIOS ${debian_cflags}::(unknown):::SIXTY_FOUR_BIT_LONG DES_INT DES_PTR DES_RISC2:${no_asm}:dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
 +"debian-openbsd-i386",  "gcc:-DL_ENDIAN -DTERMIOS ${debian_cflags} -m486::(unknown):::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_asm}:a.out:dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
 +"debian-openbsd-mips","gcc:-DL_ENDIAN ${debian_cflags}::(unknown)::BN_LLONG MD2_CHAR RC4_INDEX RC4_CHAR DES_UNROLL DES_RISC2 DES_PTR BF_PTR:${no_asm}:dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
++"debian-or1k", "gcc:-DB_ENDIAN -DTERMIO ${debian_cflags}::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
 +"debian-powerpc","gcc:-DB_ENDIAN -DTERMIO ${debian_cflags}::-D_REENTRANT::-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_RISC1 DES_UNROLL:${ppc32_asm}:linux32:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
 +"debian-powerpcspe","gcc:-DB_ENDIAN -DTERMIO ${debian_cflags}::-D_REENTRANT::-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_RISC1 DES_UNROLL:${ppc32_asm}:linux32:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
 +"debian-ppc64","gcc:-m64 -DB_ENDIAN -DTERMIO ${debian_cflags}::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_RISC1 DES_UNROLL:${ppc64_asm}:linux64:dlfcn:linux-shared:-fPIC:-m64:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
++"debian-ppc64el","gcc:-m64 -DL_ENDIAN -DTERMIO ${debian_cflags}::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_RISC1 DES_UNROLL:${ppc64_asm}:linux64le:dlfcn:linux-shared:-fPIC:-m64:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
 +"debian-s390","gcc:-DB_ENDIAN -DTERMIO ${debian_cflags}::-D_REENTRANT::-ldl:RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", 
 +"debian-s390x","gcc:-DB_ENDIAN -DTERMIO ${debian_cflags}::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
 +"debian-sh3",   "gcc:-DL_ENDIAN -DTERMIO ${debian_cflags}::-D_REENTRANT::-ldl:BN_LLONG:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
@@ -60,6 +66,7 @@ Index: openssl-1.0.1/Configure
 +"debian-sparc-v8","gcc:-DB_ENDIAN -DTERMIO ${debian_cflags} -mcpu=v8 -DBN_DIV2W::-D_REENTRANT::-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:${sparcv8_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
 +"debian-sparc-v9","gcc:-DB_ENDIAN -DTERMIO ${debian_cflags} -mcpu=v9 -Wa,-Av8plus -DULTRASPARC -DBN_DIV2W::-D_REENTRANT::-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:${sparcv9_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
 +"debian-sparc64","gcc:-m64 -DB_ENDIAN -DTERMIO ${debian_cflags} -DULTRASPARC -DBN_DIV2W::-D_REENTRANT::-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_INT DES_PTR DES_RISC1 DES_UNROLL BF_PTR:${sparcv9_asm}:dlfcn:linux-shared:-fPIC:-m64:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
++"debian-x32","gcc:-mx32 -DL_ENDIAN -DTERMIO ${debian_cflags} -DMD32_REG_T=int::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT RC4_CHUNK DES_INT DES_UNROLL:${x86_64_asm}:elf:dlfcn:linux-shared:-fPIC:-mx32:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR):::x32",
 +
  ####
  #### Variety of LINUX:-)
recipes-connectivity/openssl/openssl-qoriq/debian/make-targets.patch deleted +0 -15
deleted file mode 100644
index ee0a62c..0000000
@@ -1,15 +0,0 @@
-Upstream-Status: Backport [debian]
-
-Index: openssl-1.0.1/Makefile.org
-===================================================================
---- openssl-1.0.1.orig/Makefile.org	2012-03-17 09:41:07.000000000 +0000
-+++ openssl-1.0.1/Makefile.org	2012-03-17 09:41:21.000000000 +0000
-@@ -135,7 +135,7 @@
- 
- BASEADDR=
- 
--DIRS=   crypto ssl engines apps test tools
-+DIRS=   crypto ssl engines apps tools
- ENGDIRS= ccgost
- SHLIBDIRS= crypto ssl
- 
recipes-connectivity/openssl/openssl-qoriq/debian/version-script.patch +152 -159

963 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/debian1.0.2/block_digicert_malaysia.patch new file +29 -0
new file mode 100644
index 0000000..c43bcd1
@@ -0,0 +1,29 @@
+From: Raphael Geissert <[email protected]>
+Description: make X509_verify_cert indicate that any certificate whose
+ name contains "Digicert Sdn. Bhd." (from Malaysia) is revoked.
+Forwarded: not-needed
+Origin: vendor
+Last-Update: 2011-11-05
+
+Upstream-Status: Backport [debian]
+
+
+Index: openssl-1.0.2~beta1/crypto/x509/x509_vfy.c
+===================================================================
+--- openssl-1.0.2~beta1.orig/crypto/x509/x509_vfy.c	2014-02-25 00:16:12.488028844 +0100
++++ openssl-1.0.2~beta1/crypto/x509/x509_vfy.c	2014-02-25 00:16:12.484028929 +0100
+@@ -964,10 +964,11 @@
+ 	for (i = sk_X509_num(ctx->chain) - 1; i >= 0; i--)
+ 		{
+ 		x = sk_X509_value(ctx->chain, i);
+-		/* Mark DigiNotar certificates as revoked, no matter
+-		 * where in the chain they are.
++		/* Mark certificates containing the following names as
++		 * revoked, no matter where in the chain they are.
+ 		 */
+-		if (x->name && strstr(x->name, "DigiNotar"))
++		if (x->name && (strstr(x->name, "DigiNotar") ||
++			strstr(x->name, "Digicert Sdn. Bhd.")))
+ 			{
+ 			ctx->error = X509_V_ERR_CERT_REVOKED;
+ 			ctx->error_depth = i;
recipes-connectivity/openssl/openssl-qoriq/debian1.0.2/block_diginotar.patch new file +68 -0

68 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/debian1.0.2/version-script.patch new file +4656 -0

1,376 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/engines-install-in-libdir-ssl.patch +25 -17

42 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/fix-cipher-des-ede3-cfb1.patch +10 -11
index f0e1778..06d1ea6 100644

Lines of this file are not shown. View the raw message.

recipes-connectivity/openssl/openssl-qoriq/initial-aarch64-bits.patch deleted +0 -119

119 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/openssl-1.0.2a-x32-asm.patch new file +46 -0

46 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/openssl-avoid-NULL-pointer-dereference-in-EVP_DigestInit_ex.patch +12 -10
index c161e62..f736e5c 100644

Lines of this file are not shown. View the raw message.

recipes-connectivity/openssl/openssl-qoriq/openssl-avoid-NULL-pointer-dereference-in-dh_pub_encode.patch deleted +0 -39
deleted file mode 100644
index 3e93fe4..0000000

Lines of this file are not shown. View the raw message.

recipes-connectivity/openssl/openssl-qoriq/openssl-c_rehash.sh new file +210 -0

210 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/openssl-fix-link.patch deleted +0 -35
deleted file mode 100644
index 154106c..0000000

Lines of this file are not shown. View the raw message.

recipes-connectivity/openssl/openssl-qoriq/openssl_fix_for_x32.patch +17 -68

85 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/parallel.patch new file +326 -0

326 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/ptest-deps.patch new file +34 -0
new file mode 100644
index 0000000..ef6d179

Lines of this file are not shown. View the raw message.

recipes-connectivity/openssl/openssl-qoriq/ptest_makefile_deps.patch new file +248 -0

248 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/qoriq/0001-remove-double-initialization-of-cryptodev-engine.patch +32 -31

63 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/qoriq/0002-eng_cryptodev-add-support-for-TLS-algorithms-offload.patch +267 -241

508 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/qoriq/0003-cryptodev-fix-algorithm-registration.patch +34 -37

71 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/qoriq/0004-ECC-Support-header-for-Cryptodev-Engine.patch renamed from recipes-connectivity/openssl/openssl-qoriq/qoriq/0005-ECC-Support-header-for-Cryptodev-Engine.patch +18 -17
similarity index 92%
rename from recipes-connectivity/openssl/openssl-qoriq/qoriq/0005-ECC-Support-header-for-Cryptodev-Engine.patch
rename to recipes-connectivity/openssl/openssl-qoriq/qoriq/0004-ECC-Support-header-for-Cryptodev-Engine.patch
index c9ff5aa..64a5c70 100644

Lines of this file are not shown. View the raw message.

recipes-connectivity/openssl/openssl-qoriq/qoriq/0004-linux-pcc-make-it-more-robust-and-recognize-KERNEL_B.patch deleted +0 -74

74 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/qoriq/0005-Initial-support-for-PKC-in-cryptodev-engine.patch new file +1578 -0

1,578 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/qoriq/0006-Added-hwrng-dev-file-as-source-of-RNG.patch new file +28 -0
new file mode 100644
index 0000000..61469dc

Lines of this file are not shown. View the raw message.

recipes-connectivity/openssl/openssl-qoriq/qoriq/0006-Fixed-private-key-support-for-DH.patch deleted +0 -33
deleted file mode 100644
index 01c268b..0000000

Lines of this file are not shown. View the raw message.

recipes-connectivity/openssl/openssl-qoriq/qoriq/0007-Asynchronous-interface-added-for-PKC-cryptodev-inter.patch new file +2050 -0

2,050 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/qoriq/0007-Fixed-private-key-support-for-DH.patch deleted +0 -35
deleted file mode 100644
index 12fcd7d..0000000

Lines of this file are not shown. View the raw message.

recipes-connectivity/openssl/openssl-qoriq/qoriq/0008-Add-RSA-keygen-operation-and-support-gendsa-command-.patch new file +155 -0

155 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/qoriq/0008-Initial-support-for-PKC-in-cryptodev-engine.patch deleted +0 -1564

1,564 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/qoriq/0009-Added-hwrng-dev-file-as-source-of-RNG.patch deleted +0 -28
deleted file mode 100644
index 0fb0182..0000000

Lines of this file are not shown. View the raw message.

recipes-connectivity/openssl/openssl-qoriq/qoriq/0009-RSA-Keygen-Fix.patch new file +64 -0

64 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/qoriq/0010-Asynchronous-interface-added-for-PKC-cryptodev-inter.patch deleted +0 -2039

2,039 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/qoriq/0010-Removed-local-copy-of-curve_t-type.patch new file +163 -0

163 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/qoriq/0011-Add-RSA-keygen-operation-and-support-gendsa-command-.patch deleted +0 -153

153 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/qoriq/0011-Modulus-parameter-is-not-populated-by-dhparams.patch new file +43 -0

43 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/qoriq/0012-RSA-Keygen-Fix.patch deleted +0 -64

64 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/qoriq/0012-SW-Backoff-mechanism-for-dsa-keygen.patch new file +53 -0

53 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/qoriq/0013-Fixed-DH-keygen-pair-generator.patch new file +100 -0

100 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/qoriq/0013-Removed-local-copy-of-curve_t-type.patch deleted +0 -164

164 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/qoriq/0014-Modulus-parameter-is-not-populated-by-dhparams.patch deleted +0 -43

43 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/qoriq/0014-cryptodev-add-support-for-aes-gcm-algorithm-offloadi.patch new file +321 -0

321 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/qoriq/0015-SW-Backoff-mechanism-for-dsa-keygen.patch deleted +0 -53

53 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/qoriq/0015-eng_cryptodev-extend-TLS-offload-with-3des_cbc_hmac_.patch new file +199 -0

199 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/qoriq/0016-Fixed-DH-keygen-pair-generator.patch deleted +0 -100

100 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/qoriq/0016-eng_cryptodev-add-support-for-TLSv1.1-record-offload.patch new file +338 -0

338 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/qoriq/0017-cryptodev-add-support-for-aes-gcm-algorithm-offloadi.patch deleted +0 -309

309 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/qoriq/0017-eng_cryptodev-add-support-for-TLSv1.2-record-offload.patch new file +377 -0

377 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/qoriq/0018-cryptodev-drop-redundant-function.patch new file +72 -0

72 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/qoriq/0018-eng_cryptodev-extend-TLS-offload-with-3des_cbc_hmac_.patch deleted +0 -193

193 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/qoriq/0019-cryptodev-do-not-zero-the-buffer-before-use.patch new file +48 -0

48 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/qoriq/0019-eng_cryptodev-add-support-for-TLSv1.1-record-offload.patch deleted +0 -355

355 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/qoriq/0020-cryptodev-clean-up-code-layout.patch new file +73 -0

73 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/qoriq/0020-eng_cryptodev-add-support-for-TLSv1.2-record-offload.patch deleted +0 -359

359 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/qoriq/0021-cryptodev-do-not-cache-file-descriptor-in-open.patch new file +93 -0

93 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/qoriq/0021-cryptodev-drop-redundant-function.patch deleted +0 -75

75 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/qoriq/0022-cryptodev-do-not-zero-the-buffer-before-use.patch deleted +0 -48

48 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/qoriq/0022-cryptodev-put_dev_crypto-should-be-an-int.patch renamed from recipes-connectivity/openssl/openssl-qoriq/qoriq/0025-cryptodev-put_dev_crypto-should-be-an-int.patch +9 -9
similarity index 70%
rename from recipes-connectivity/openssl/openssl-qoriq/qoriq/0025-cryptodev-put_dev_crypto-should-be-an-int.patch
rename to recipes-connectivity/openssl/openssl-qoriq/qoriq/0022-cryptodev-put_dev_crypto-should-be-an-int.patch
index a48dc6a..121123d 100644

Lines of this file are not shown. View the raw message.

recipes-connectivity/openssl/openssl-qoriq/qoriq/0023-cryptodev-clean-up-code-layout.patch deleted +0 -72

72 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/qoriq/0023-cryptodev-simplify-cryptodev-pkc-support-code.patch renamed from recipes-connectivity/openssl/openssl-qoriq/qoriq/0026-cryptodev-simplify-cryptodev-pkc-support-code.patch +89 -79

168 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/qoriq/0024-cryptodev-clarify-code-remove-assignments-from-condi.patch new file +37 -0
new file mode 100644
index 0000000..27ccd95

Lines of this file are not shown. View the raw message.

recipes-connectivity/openssl/openssl-qoriq/qoriq/0024-cryptodev-do-not-cache-file-descriptor-in-open.patch deleted +0 -100

100 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/qoriq/0025-cryptodev-clean-up-context-state-before-anything-els.patch new file +34 -0
new file mode 100644
index 0000000..ad5c303

Lines of this file are not shown. View the raw message.

recipes-connectivity/openssl/openssl-qoriq/qoriq/0026-cryptodev-remove-code-duplication-in-digest-operatio.patch new file +155 -0

155 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/qoriq/0027-cryptodev-put-all-digest-ioctls-into-a-single-functi.patch new file +108 -0

108 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/qoriq/0028-cryptodev-fix-debug-print-messages.patch new file +90 -0

90 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/qoriq/0029-cryptodev-use-CIOCHASH-ioctl-for-digest-operations.patch new file +91 -0

91 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/qoriq/0030-cryptodev-reduce-duplicated-efforts-for-searching-in.patch new file +106 -0

106 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/qoriq/0031-cryptodev-remove-not-used-local-variables.patch new file +46 -0

46 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/qoriq/0032-cryptodev-hide-not-used-variable-behind-ifndef.patch new file +27 -0
new file mode 100644
index 0000000..9ff4d36

Lines of this file are not shown. View the raw message.

recipes-connectivity/openssl/openssl-qoriq/qoriq/0033-cryptodev-fix-function-declaration-typo.patch new file +26 -0
new file mode 100644
index 0000000..82cceba

Lines of this file are not shown. View the raw message.

recipes-connectivity/openssl/openssl-qoriq/qoriq/0034-cryptodev-fix-incorrect-function-signature.patch new file +26 -0
new file mode 100644
index 0000000..84268c5

Lines of this file are not shown. View the raw message.

recipes-connectivity/openssl/openssl-qoriq/qoriq/0035-cryptodev-fix-warnings-on-excess-elements-in-struct-.patch new file +110 -0

110 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/qoriq/0036-cryptodev-fix-free-on-error-path.patch new file +46 -0

46 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/qoriq/0037-cryptodev-fix-return-value-on-error.patch new file +28 -0
new file mode 100644
index 0000000..2e9567b

Lines of this file are not shown. View the raw message.

recipes-connectivity/openssl/openssl-qoriq/qoriq/0038-cryptodev-match-types-with-cryptodev.h.patch new file +29 -0
new file mode 100644
index 0000000..6e083ba

Lines of this file are not shown. View the raw message.

recipes-connectivity/openssl/openssl-qoriq/qoriq/0039-cryptodev-explicitly-discard-const-qualifier.patch new file +30 -0
new file mode 100644
index 0000000..916c47e

Lines of this file are not shown. View the raw message.

recipes-connectivity/openssl/openssl-qoriq/qoriq/0040-cryptodev-replace-caddr_t-with-void.patch new file +95 -0

95 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/qoriq/0041-cryptodev-check-for-errors-inside-cryptodev_rsa_mod_.patch new file +49 -0

49 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/qoriq/0042-cryptodev-check-for-errors-inside-cryptodev_rsa_mod_.patch new file +69 -0

69 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/qoriq/0043-cryptodev-check-for-errors-inside-cryptodev_dh_compu.patch new file +52 -0

52 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/qoriq/0044-cryptodev-check-for-errors-inside-cryptodev_dh_compu.patch new file +76 -0

76 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq/qoriq/0045-cryptodev-change-signature-for-conversion-functions.patch new file +38 -0
new file mode 100644
index 0000000..11f1a54

Lines of this file are not shown. View the raw message.

recipes-connectivity/openssl/openssl-qoriq/qoriq/0046-cryptodev-add-explicit-cast-for-known-BIGNUM-values.patch new file +26 -0
new file mode 100644
index 0000000..e7a5aa3

Lines of this file are not shown. View the raw message.

recipes-connectivity/openssl/openssl-qoriq/qoriq/0047-cryptodev-treat-all-build-warnings-as-errors.patch new file +28 -0
new file mode 100644
index 0000000..2163998

Lines of this file are not shown. View the raw message.

recipes-connectivity/openssl/openssl-qoriq/qoriq/0048-fix-maclen-is-used-uninitialized-warning-on-some-com.patch new file +29 -0
new file mode 100644
index 0000000..d7b84e6

Lines of this file are not shown. View the raw message.

recipes-connectivity/openssl/openssl-qoriq/run-ptest new file +2 -0
new file mode 100755
index 0000000..3b20fce

Lines of this file are not shown. View the raw message.

recipes-connectivity/openssl/openssl-qoriq_1.0.1i.bb deleted +0 -96

96 lines not on this page · raw message

recipes-connectivity/openssl/openssl-qoriq_1.0.2h.bb new file +111 -0

111 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Signature · 1 line
1.9.2

Part of the diff is not shown here. View the raw message.

#5 lore raw

PATCH 5/5 qemu: rename to qemu-qoriq

In reply to [email protected]

From: Ting Liu <[email protected]>

---
 conf/machine/include/qoriq.inc                             |  3 +--
 .../qemu/{qemu => qemu-qoriq}/add-ptest-in-makefile.patch  |  0
 recipes-devtools/qemu/{qemu => qemu-qoriq}/run-ptest       |  0
 .../qemu/{qemu_fslgit.bb => qemu-qoriq_git.bb}             | 14 ++++++++++++--
 4 files changed, 13 insertions(+), 4 deletions(-)
 rename recipes-devtools/qemu/{qemu => qemu-qoriq}/add-ptest-in-makefile.patch (100%)
 rename recipes-devtools/qemu/{qemu => qemu-qoriq}/run-ptest (100%)
 rename recipes-devtools/qemu/{qemu_fslgit.bb => qemu-qoriq_git.bb} (84%)
conf/machine/include/qoriq.inc +1 -2
index 70cd56b..a32f1bc 100644
@@ -7,8 +7,7 @@ PREFERRED_PROVIDER_cryptodev-linux = "cryptodev-qoriq-linux"
 PREFERRED_PROVIDER_cryptodev-module = "cryptodev-qoriq-module"
 PREFERRED_PROVIDER_cryptodev-tests = "cryptodev-qoriq-tests"
 PREFERRED_PROVIDER_openssl = "openssl-qoriq"
-
-PREFERRED_VERSION_qemu = "2.4.0+fsl"
+PREFERRED_PROVIDER_qemu = "qemu-qoriq"
 
 MACHINE_FEATURES = "keyboard pci ext2 ext3 serial"
 MACHINE_EXTRA_RRECOMMENDS += "udev-rules-qoriq kernel-modules"
recipes-devtools/qemu/qemu-qoriq/add-ptest-in-makefile.patch renamed from recipes-devtools/qemu/qemu/add-ptest-in-makefile.patch +0 -0
similarity index 100%
rename from recipes-devtools/qemu/qemu/add-ptest-in-makefile.patch
rename to recipes-devtools/qemu/qemu-qoriq/add-ptest-in-makefile.patch
recipes-devtools/qemu/qemu-qoriq/run-ptest renamed from recipes-devtools/qemu/qemu/run-ptest +0 -0
similarity index 100%
rename from recipes-devtools/qemu/qemu/run-ptest
rename to recipes-devtools/qemu/qemu-qoriq/run-ptest
recipes-devtools/qemu/qemu-qoriq_git.bb renamed from recipes-devtools/qemu/qemu_fslgit.bb +12 -2
similarity index 84%
rename from recipes-devtools/qemu/qemu_fslgit.bb
rename to recipes-devtools/qemu/qemu-qoriq_git.bb
index 08a31a9..c70ed14 100644
@@ -5,8 +5,16 @@ require recipes-devtools/qemu/qemu.inc
 LIC_FILES_CHKSUM = "file://COPYING;md5=441c28d2cf86e15a37fa47e15a72fbac \
                     file://COPYING.LIB;endline=24;md5=c04def7ae38850e7d3ef548588159913"
 
-# This means QEMU v2.4.0 with FSL specific patches applied
-PV = "2.4.0+fsl"
+PROVIDES = "qemu"
+
+python() {
+    pkgs = d.getVar('PACKAGES', True).split()
+    for p in pkgs:
+        if 'qemu-qoriq' in p:
+            d.appendVar("RPROVIDES_%s" % p, p.replace('qemu-qoriq', 'qemu'))
+            d.appendVar("RCONFLICTS_%s" % p, p.replace('qemu-qoriq', 'qemu'))
+            d.appendVar("RREPLACES_%s" % p, p.replace('qemu-qoriq', 'qemu'))
+}
 
 # remove not supported PACKAGECONFIG by this recipe
 PACKAGECONFIG[gcrypt] = ""
@@ -34,6 +42,8 @@ EXTRA_OECONF_e500v2 = "--target-list=ppc-softmmu ${PPC_OECONF}"
 EXTRA_OECONF_e500mc = "--target-list=ppc-softmmu ${PPC_OECONF}"
 PACKAGECONFIG_append = " libusb"
 
+DISABLE_STATIC = ""
+
 do_configure_prepend() {
     export PKG_CONFIG=${STAGING_DIR_NATIVE}${bindir_native}/pkg-config
 }
Signature · 1 line
1.9.2