summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYunguo Wei <yunguo.wei@windriver.com>2020-04-23 17:31:50 +0800
committerAnuj Mittal <anuj.mittal@intel.com>2020-04-24 00:10:52 +0800
commitd5f6e317acbe3d6b0541c2c628568aa36748c064 (patch)
tree67673137df73137043ad1996604a97cfb533abc1
parentfe4ec71117c34f6e4b3b31b55dfbd528ca518955 (diff)
downloadmeta-intel-qat-d5f6e317acbe3d6b0541c2c628568aa36748c064.tar.gz
qat: make do_fetch depend on kernel do_shared_workdir
If the recipe qat17 was built, and kernel was re-configure(i.e set CONFIG_BACKTRACE_SELF_TEST=m), then rebuild the qat17 will trigger the following error: Exception: bb.process.ExecutionError: Execution of tmp-glibc/work/intel_x86_64-wrs-linux/qat17/4.7.0-00006-r0/temp/run.do_switch_to_skcipher_api.42824' failed with exit code 1: patching file quickassist/qat/drivers/crypto/qat/qat_common/qat_algs.c Reversed (or previously applied) patch detected! Assume -R? [n] Apply anyway? [n] Skipping patch. 32 out of 32 hunks ignored – saving rejects to file quickassist/qat/drivers/crypto/qat/qat_common/qat_algs.c.rej patching file quickassist/qat/drivers/crypto/qat/qat_common/qat_crypto.h Reversed (or previously applied) patch detected! Assume -R? [n] Apply anyway? [n] Skipping patch. 1 out of 1 hunk ignored – saving rejects to file quickassist/qat/drivers/crypto/qat/qat_common/qat_crypto.h.rej WARNING: exit code 1 from a shell command. This is due to inappropriate dependency, the qat reciepe is re-applying patch to the source code that do_patch has been executed. If virtual/kernel is changed, qat should build from code fetching rather than patching. Signed-off-by: Yunguo Wei <yunguo.wei@windriver.com> Signed-off-by: Jun Miao <jun.miao@windriver.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
-rw-r--r--recipes-extended/qat/qat17_4.7.0-00006.bb2
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes-extended/qat/qat17_4.7.0-00006.bb b/recipes-extended/qat/qat17_4.7.0-00006.bb
index 2f783f5..1d34ce2 100644
--- a/recipes-extended/qat/qat17_4.7.0-00006.bb
+++ b/recipes-extended/qat/qat17_4.7.0-00006.bb
@@ -25,7 +25,7 @@ SRC_URI = "https://01.org/sites/default/files/downloads/qat1.7.l.4.7.0-00006.tar
25 file://qat17_4.7.0-00006-make-it-compatible-with-kernel-5.6.patch;apply=0 \ 25 file://qat17_4.7.0-00006-make-it-compatible-with-kernel-5.6.patch;apply=0 \
26 " 26 "
27 27
28do_patch[depends] += "virtual/kernel:do_shared_workdir" 28do_fetch[depends] += "virtual/kernel:do_shared_workdir"
29 29
30do_patch_append () { 30do_patch_append () {
31 if d.getVar("KERNEL_VERSION") >= "5.5%": 31 if d.getVar("KERNEL_VERSION") >= "5.5%":