diff options
-rw-r--r-- | recipes-extended/qat/qat17_4.7.0-00006.bb | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/recipes-extended/qat/qat17_4.7.0-00006.bb b/recipes-extended/qat/qat17_4.7.0-00006.bb index 11082f9..8b222ed 100644 --- a/recipes-extended/qat/qat17_4.7.0-00006.bb +++ b/recipes-extended/qat/qat17_4.7.0-00006.bb | |||
@@ -30,7 +30,7 @@ SRC_URI = "https://01.org/sites/default/files/downloads/qat1.7.l.4.7.0-00006.tar | |||
30 | file://qat17_4.7.0-00006-qat-include-sha1.h-and-sha2.h-instead-of-sha.h-in-ke.patch \ | 30 | file://qat17_4.7.0-00006-qat-include-sha1.h-and-sha2.h-instead-of-sha.h-in-ke.patch \ |
31 | " | 31 | " |
32 | 32 | ||
33 | do_fetch[depends] += "virtual/kernel:do_shared_workdir" | 33 | do_patch[depends] += "virtual/kernel:do_shared_workdir" |
34 | 34 | ||
35 | do_patch_append () { | 35 | do_patch_append () { |
36 | kernel_version = int(d.getVar("KERNEL_VERSION").split(".")[0]) | 36 | kernel_version = int(d.getVar("KERNEL_VERSION").split(".")[0]) |
@@ -43,13 +43,19 @@ do_patch_append () { | |||
43 | } | 43 | } |
44 | 44 | ||
45 | do_switch_to_skcipher_api () { | 45 | do_switch_to_skcipher_api () { |
46 | cd "${S}" | 46 | if [ ! -e ${S}/patches/qat17_4.7.0-00006-Switch-to-skcipher-API.patch.applied ]; then |
47 | patch -p1 < "${WORKDIR}/qat17_4.7.0-00006-Switch-to-skcipher-API.patch" | 47 | cd "${S}" |
48 | patch -p1 < "${WORKDIR}/qat17_4.7.0-00006-Switch-to-skcipher-API.patch" | ||
49 | touch ${S}/patches/qat17_4.7.0-00006-Switch-to-skcipher-API.patch.applied | ||
50 | fi | ||
48 | } | 51 | } |
49 | 52 | ||
50 | do_patch_for_kernel_5_6 () { | 53 | do_patch_for_kernel_5_6 () { |
51 | cd "${S}" | 54 | if [ ! -e ${S}/patches/qat17_4.7.0-00006-make-it-compatible-with-kernel-5.6.patch.applied ]; then |
52 | patch -p1 < "${WORKDIR}/qat17_4.7.0-00006-make-it-compatible-with-kernel-5.6.patch" | 55 | cd "${S}" |
56 | patch -p1 < "${WORKDIR}/qat17_4.7.0-00006-make-it-compatible-with-kernel-5.6.patch" | ||
57 | touch ${S}/patches/qat17_4.7.0-00006-make-it-compatible-with-kernel-5.6.patch.applied | ||
58 | fi | ||
53 | } | 59 | } |
54 | 60 | ||
55 | 61 | ||