Makefile.lib (97acb6a8fcc4e5c2cdc2693a35acdc5a7461aaa3) Makefile.lib (f80be4571b19b9fd8dd1528cd2a2f123aff51f70)
1# SPDX-License-Identifier: GPL-2.0
2# Backward compatibility
3asflags-y += $(EXTRA_AFLAGS)
4ccflags-y += $(EXTRA_CFLAGS)
5cppflags-y += $(EXTRA_CPPFLAGS)
6ldflags-y += $(EXTRA_LDFLAGS)
7
8# flags that take effect in current and sub directories

--- 143 unchanged lines hidden (view full) ---

152ifeq ($(CONFIG_KASAN),y)
153ifneq ($(CONFIG_KASAN_HW_TAGS),y)
154_c_flags += $(if $(patsubst n%,, \
155 $(KASAN_SANITIZE_$(basetarget).o)$(KASAN_SANITIZE)y), \
156 $(CFLAGS_KASAN), $(CFLAGS_KASAN_NOSANITIZE))
157endif
158endif
159
1# SPDX-License-Identifier: GPL-2.0
2# Backward compatibility
3asflags-y += $(EXTRA_AFLAGS)
4ccflags-y += $(EXTRA_CFLAGS)
5cppflags-y += $(EXTRA_CPPFLAGS)
6ldflags-y += $(EXTRA_LDFLAGS)
7
8# flags that take effect in current and sub directories

--- 143 unchanged lines hidden (view full) ---

152ifeq ($(CONFIG_KASAN),y)
153ifneq ($(CONFIG_KASAN_HW_TAGS),y)
154_c_flags += $(if $(patsubst n%,, \
155 $(KASAN_SANITIZE_$(basetarget).o)$(KASAN_SANITIZE)y), \
156 $(CFLAGS_KASAN), $(CFLAGS_KASAN_NOSANITIZE))
157endif
158endif
159
160ifeq ($(CONFIG_KMSAN),y)
161_c_flags += $(if $(patsubst n%,, \
162 $(KMSAN_SANITIZE_$(basetarget).o)$(KMSAN_SANITIZE)y), \
163 $(CFLAGS_KMSAN))
164_c_flags += $(if $(patsubst n%,, \
165 $(KMSAN_ENABLE_CHECKS_$(basetarget).o)$(KMSAN_ENABLE_CHECKS)y), \
166 , -mllvm -msan-disable-checks=1)
167endif
168
160ifeq ($(CONFIG_UBSAN),y)
161_c_flags += $(if $(patsubst n%,, \
162 $(UBSAN_SANITIZE_$(basetarget).o)$(UBSAN_SANITIZE)$(CONFIG_UBSAN_SANITIZE_ALL)), \
163 $(CFLAGS_UBSAN))
164endif
165
166ifeq ($(CONFIG_KCOV),y)
167_c_flags += $(if $(patsubst n%,, \

--- 377 unchanged lines hidden ---
169ifeq ($(CONFIG_UBSAN),y)
170_c_flags += $(if $(patsubst n%,, \
171 $(UBSAN_SANITIZE_$(basetarget).o)$(UBSAN_SANITIZE)$(CONFIG_UBSAN_SANITIZE_ALL)), \
172 $(CFLAGS_UBSAN))
173endif
174
175ifeq ($(CONFIG_KCOV),y)
176_c_flags += $(if $(patsubst n%,, \

--- 377 unchanged lines hidden ---