makefile: add fstack-protector for devsoc platform

This changes enable fstack-protector flag for devsoc
platform.

Change-Id: I9726cf5020cbb74346a023b9f4eb8fa908bb417c
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
This commit is contained in:
Vandhiadevan Karunamoorthy 2022-05-26 22:35:44 +05:30 committed by Gerrit - the friendly Code Review server
parent 6761f6cf0d
commit 68b0c0e09d

View file

@ -578,6 +578,9 @@ else
ifdef CONFIG_ARCH_IPQ5018 ifdef CONFIG_ARCH_IPQ5018
KBUILD_CFLAGS += $(call cc-option,-fstack-protector) KBUILD_CFLAGS += $(call cc-option,-fstack-protector)
else else
ifdef CONFIG_ARCH_DEVSOC
KBUILD_CFLAGS += $(call cc-option,-fstack-protector)
else
ifdef CONFIG_ARCH_IPQ6018 ifdef CONFIG_ARCH_IPQ6018
KBUILD_CFLAGS += $(call cc-option,-fstack-protector) KBUILD_CFLAGS += $(call cc-option,-fstack-protector)
else else
@ -589,6 +592,7 @@ endif
endif endif
endif endif
endif endif
endif
KBUILD_CFLAGS += $(call cc-option,-fno-delete-null-pointer-checks) KBUILD_CFLAGS += $(call cc-option,-fno-delete-null-pointer-checks)
KBUILD_CFLAGS += -g KBUILD_CFLAGS += -g