diff --git a/kernel.spec b/kernel.spec index b034680c305a7d8c5fc2d6d1f5304048811b8478..63c26d644e7c53de1132c833d0677e9e69cdc2e2 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