diff options
author | Yongxin Liu <yongxin.liu@windriver.com> | 2020-11-25 14:53:39 +0800 |
---|---|---|
committer | Anuj Mittal <anuj.mittal@intel.com> | 2020-11-25 23:39:11 +0800 |
commit | 8b151bae801d0f9a8be4aaf960531f020880714b (patch) | |
tree | 76e0c59ceea04334faac90c66752622d24e6b123 | |
parent | be5944b98b24920a194fff3bdb3971a2a16a209d (diff) | |
download | meta-intel-qat-8b151bae801d0f9a8be4aaf960531f020880714b.tar.gz |
qat17: set KBUILD_BUILTIN=1 when building kernel objects
Add qat17_4.7.0-00006-overwrite-KBUILD_BUILTIN-in-kernel-s-Makefile.patch
to fix QAT static library building issue with v5.10-rc1 or later, due to
kernel commit 6212804f2d78 ("kbuild: do not create built-in objects for
external module builds").
Signed-off-by: Yongxin Liu <yongxin.liu@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
-rw-r--r-- | recipes-extended/qat/files/qat17_4.7.0-00006-overwrite-KBUILD_BUILTIN-in-kernel-s-Makefile.patch | 33 | ||||
-rw-r--r-- | recipes-extended/qat/qat17_4.7.0-00006.bb | 1 |
2 files changed, 34 insertions, 0 deletions
diff --git a/recipes-extended/qat/files/qat17_4.7.0-00006-overwrite-KBUILD_BUILTIN-in-kernel-s-Makefile.patch b/recipes-extended/qat/files/qat17_4.7.0-00006-overwrite-KBUILD_BUILTIN-in-kernel-s-Makefile.patch new file mode 100644 index 0000000..6af5a6a --- /dev/null +++ b/recipes-extended/qat/files/qat17_4.7.0-00006-overwrite-KBUILD_BUILTIN-in-kernel-s-Makefile.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | From bf4053e4685bbbf84e6f91d18809dbf4487d03d9 Mon Sep 17 00:00:00 2001 | ||
2 | From: Yongxin Liu <yongxin.liu@windriver.com> | ||
3 | Date: Wed, 25 Nov 2020 07:58:07 +0800 | ||
4 | Subject: [PATCH] qat: overwrite KBUILD_BUILTIN in kernel's Makefile | ||
5 | |||
6 | Since kernel v5.10-rc1, commit 6212804f2d78 ("kbuild: do not create | ||
7 | built-in objects for external module builds"), QAT static libraries | ||
8 | cannot be created. So add KBUILD_BUILTIN=1 in command line to overwrite | ||
9 | it in kernel Makefile. | ||
10 | |||
11 | Upstream-Status: Inappropriate [Code released in tarball form only] | ||
12 | |||
13 | Signed-off-by: Yongxin Liu <yongxin.liu@windriver.com> | ||
14 | --- | ||
15 | quickassist/build_system/build_files/OS/linux_2.6_kernel_space_rules.mk | 2 +- | ||
16 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
17 | |||
18 | diff --git a/quickassist/build_system/build_files/OS/linux_2.6_kernel_space_rules.mk b/quickassist/build_system/build_files/OS/linux_2.6_kernel_space_rules.mk | ||
19 | index a692b37..302ae19 100644 | ||
20 | --- a/quickassist/build_system/build_files/OS/linux_2.6_kernel_space_rules.mk | ||
21 | +++ b/quickassist/build_system/build_files/OS/linux_2.6_kernel_space_rules.mk | ||
22 | @@ -72,7 +72,7 @@ endif | ||
23 | |||
24 | $(LIB_STATIC): dirs | ||
25 | @echo 'Creating static library ${LIB_STATIC}'; \ | ||
26 | - $(MAKE) -C $(KERNEL_SOURCE_ROOT)/ M=$(PWD) obj-m=""; \ | ||
27 | + $(MAKE) -C $(KERNEL_SOURCE_ROOT)/ M=$(PWD) obj-m="" KBUILD_BUILTIN=1; \ | ||
28 | echo 'Copying outputs';\ | ||
29 | test -f lib.a && (ar -t lib.a | xargs ar -rcsD $(LIB_STATIC)); \ | ||
30 | test -f $(LIB_STATIC) && mv -f $(LIB_STATIC) $($(PROG_ACY)_FINAL_OUTPUT_DIR)/$(LIB_STATIC); \ | ||
31 | -- | ||
32 | 2.14.4 | ||
33 | |||
diff --git a/recipes-extended/qat/qat17_4.7.0-00006.bb b/recipes-extended/qat/qat17_4.7.0-00006.bb index b6143ae..af292cf 100644 --- a/recipes-extended/qat/qat17_4.7.0-00006.bb +++ b/recipes-extended/qat/qat17_4.7.0-00006.bb | |||
@@ -25,6 +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 | file://qat17_4.7.0-00006-crypto-qat-adf_aer-Remove-pci_cleanup_aer_uncorrect_.patch \ | 26 | file://qat17_4.7.0-00006-crypto-qat-adf_aer-Remove-pci_cleanup_aer_uncorrect_.patch \ |
27 | file://qat17_4.7.0-00006-qat-replace-linux-cryptohash.h-with-crypto-sha.h-for.patch \ | 27 | file://qat17_4.7.0-00006-qat-replace-linux-cryptohash.h-with-crypto-sha.h-for.patch \ |
28 | file://qat17_4.7.0-00006-overwrite-KBUILD_BUILTIN-in-kernel-s-Makefile.patch \ | ||
28 | " | 29 | " |
29 | 30 | ||
30 | do_fetch[depends] += "virtual/kernel:do_shared_workdir" | 31 | do_fetch[depends] += "virtual/kernel:do_shared_workdir" |