diff options
Diffstat (limited to 'recipes-extended/qat/files/qat17_4.7.0-00006-overwrite-KBUILD_BUILTIN-in-kernel-s-Makefile.patch')
-rw-r--r-- | recipes-extended/qat/files/qat17_4.7.0-00006-overwrite-KBUILD_BUILTIN-in-kernel-s-Makefile.patch | 33 |
1 files changed, 33 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 | |||