summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2022-01-19 09:26:42 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2022-01-19 09:26:42 +0100
commit5c3c23f10ac4a478e2f2ab3ff689422c19268022 (patch)
tree63f5c3ebd90fceda6d3574a57497a1941d8d0a0e /Makefile
parentbe1539b920302cfcde300f8e8607d548e1f75b8a (diff)
parent0d1fc926e8ad71d4f4626d58b3b447c1856d3703 (diff)
downloadbarebox-5c3c23f10ac4a478e2f2ab3ff689422c19268022.tar.gz
barebox-5c3c23f10ac4a478e2f2ab3ff689422c19268022.tar.xz
Merge branch 'for-next/riscv'
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index a74b95c275..3125d62811 100644
--- a/Makefile
+++ b/Makefile
@@ -632,6 +632,11 @@ endif # need-config
KBUILD_CFLAGS += -ggdb3
+ifdef CONFIG_FRAME_POINTER
+KBUILD_CFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls
+KBUILD_CFLAGS += $(call cc-disable-warning,frame-address,)
+endif
+
# Force gcc to behave correct even for buggy distributions
KBUILD_CFLAGS += $(call cc-option, -fno-stack-protector)