Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
25 lines
954 B
Makefile
25 lines
954 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
KASAN_SANITIZE := n
|
|
UBSAN_SANITIZE_common.o := n
|
|
UBSAN_SANITIZE_generic.o := n
|
|
UBSAN_SANITIZE_generic_report.o := n
|
|
UBSAN_SANITIZE_tags.o := n
|
|
KCOV_INSTRUMENT := n
|
|
|
|
CFLAGS_REMOVE_common.o = -pg
|
|
CFLAGS_REMOVE_generic.o = -pg
|
|
CFLAGS_REMOVE_generic_report.o = -pg
|
|
CFLAGS_REMOVE_tags.o = -pg
|
|
|
|
# Function splitter causes unnecessary splits in __asan_load1/__asan_store1
|
|
# see: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63533
|
|
|
|
CFLAGS_common.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector)
|
|
CFLAGS_generic.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector)
|
|
CFLAGS_generic_report.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector)
|
|
CFLAGS_tags.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector)
|
|
|
|
obj-$(CONFIG_KASAN) := common.o init.o report.o
|
|
obj-$(CONFIG_KASAN_GENERIC) += generic.o generic_report.o quarantine.o
|
|
obj-$(CONFIG_KASAN_SW_TAGS) += tags.o tags_report.o
|