From 68b0c0e09ddf0dcb68886fb9100b3e825ed26279 Mon Sep 17 00:00:00 2001 From: Vandhiadevan Karunamoorthy Date: Thu, 26 May 2022 22:35:44 +0530 Subject: [PATCH] makefile: add fstack-protector for devsoc platform This changes enable fstack-protector flag for devsoc platform. Change-Id: I9726cf5020cbb74346a023b9f4eb8fa908bb417c Signed-off-by: Vandhiadevan Karunamoorthy --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 9b3069959b..54e68f3407 100644 --- a/Makefile +++ b/Makefile @@ -578,6 +578,9 @@ else ifdef CONFIG_ARCH_IPQ5018 KBUILD_CFLAGS += $(call cc-option,-fstack-protector) else +ifdef CONFIG_ARCH_DEVSOC +KBUILD_CFLAGS += $(call cc-option,-fstack-protector) +else ifdef CONFIG_ARCH_IPQ6018 KBUILD_CFLAGS += $(call cc-option,-fstack-protector) else @@ -589,6 +592,7 @@ endif endif endif endif +endif KBUILD_CFLAGS += $(call cc-option,-fno-delete-null-pointer-checks) KBUILD_CFLAGS += -g