summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2020-09-25 08:06:15 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2020-09-25 08:06:15 +0200
commit47d4f7609270e81344abb78fa3658e917a9e9b8f (patch)
tree8fe021264f475abbab529b26e54bfe1c4892c0c7 /Makefile
parent555e0db0fa05432c36f9d4a0b9cbcaf7498ac238 (diff)
parent932ef7a02e2fff7fd7d6ee1cb3558593987c5b3e (diff)
downloadbarebox-47d4f7609270e81344abb78fa3658e917a9e9b8f.tar.gz
barebox-47d4f7609270e81344abb78fa3658e917a9e9b8f.tar.xz
Merge branch 'for-next/kasan' into master
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 73a4a576ff..bf3266e977 100644
--- a/Makefile
+++ b/Makefile
@@ -448,6 +448,7 @@ export LDFLAGS_barebox
export LDFLAGS_pbl
export CFLAGS_UBSAN
+export CFLAGS_KASAN CFLAGS_KASAN_NOSANITIZE
# Files to ignore in find ... statements
@@ -636,7 +637,10 @@ KBUILD_CFLAGS += $(call cc-option,-Wno-pointer-sign,)
# change __FILE__ to the relative path from the srctree
KBUILD_CFLAGS += $(call cc-option,-fmacro-prefix-map=$(srctree)/=)
-include $(srctree)/scripts/Makefile.ubsan
+include-y +=scripts/Makefile.ubsan
+include-$(CONFIG_KASAN) += scripts/Makefile.kasan
+
+include $(addprefix $(srctree)/, $(include-y))
# KBUILD_IMAGE: Default barebox image to build
# Depending on the architecture, this can be either compressed or not.