From 024518be096a9f6314548297b4a1ebb763fac61e Mon Sep 17 00:00:00 2001 From: jingduanyang <8376209+jingduanyang@user.noreply.gitee.com> Date: Mon, 11 Sep 2023 12:02:58 +0000 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95KASAN=20LLVM?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: jingduanyang <8376209+jingduanyang@user.noreply.gitee.com> --- kernel.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/kernel.spec b/kernel.spec index b034680c..63c26d64 100644 --- a/kernel.spec +++ b/kernel.spec @@ -1,8 +1,12 @@ +%global build_cflags %{nil} + +%global build_ldflags %{nil} + %define with_signmodules 1 %define with_kabichk 0 # Default without toolchain_clang -%bcond_with toolchain_clang +%bcond_without toolchain_clang %if %{with toolchain_clang} %global toolchain clang @@ -372,6 +376,8 @@ sed -i arch/arm64/configs/openeuler_defconfig -e 's/^CONFIG_ARM64_VA_BITS_.*/CON %{make} ARCH=%{Arch} openeuler_defconfig +scripts/config -e KASAN + %if %{with clang_lto} scripts/config -e LTO_CLANG_FULL sed -i 's/# CONFIG_LTO_CLANG_FULL is not set/CONFIG_LTO_CLANG_FULL=y/' .config -- Gitee