From cb199e0ecf1cf0e3e5c30b98d1a3e4d85f0e41fe Mon Sep 17 00:00:00 2001 From: Chao Wu Date: Thu, 24 Nov 2022 20:43:58 +0800 Subject: [PATCH] kernel: add CONFIG_X86_SGX into whitelist CONFIG_X86_SGX is introduced after kernel 5.11, and that config is a default x86_64 config for Kata build-kernel.sh script. But if we use -v to specify any kernel version below 5.11 will cause an inevitable error because CONFIG_X86_SGX is not supported in older kernels and that may cause problem for the situation if we need kernel version below 5.11. So I propose to put CONFIG_X86_SGX into whitelist.conf to avoid break building guest kernel below 5.11. fixes: #5741 Signed-off-by: Chao Wu --- tools/packaging/kernel/configs/fragments/whitelist.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/packaging/kernel/configs/fragments/whitelist.conf b/tools/packaging/kernel/configs/fragments/whitelist.conf index 6a56aab1a1..a9184b149c 100644 --- a/tools/packaging/kernel/configs/fragments/whitelist.conf +++ b/tools/packaging/kernel/configs/fragments/whitelist.conf @@ -14,3 +14,4 @@ CONFIG_MANDATORY_FILE_LOCKING CONFIG_ARM64_UAO CONFIG_VFIO_MDEV_DEVICE CONFIG_SPECULATION_MITIGATIONS +CONFIG_X86_SGX