summaryrefslogtreecommitdiff
path: root/package/afboot-stm32/patches
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2020-11-12 09:01:25 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2020-11-12 09:01:25 +0100
commita634eb27a9ee2309a0ddb45cac25829ece5adc05 (patch)
treef68fb9dc72a89fcd9fa1f29a93c37d164c1a261f /package/afboot-stm32/patches
parent424e08c39314556a1930204e1262118066f62fa6 (diff)
afboot-stm32: fix problem with fdpic toolchain
Diffstat (limited to 'package/afboot-stm32/patches')
-rw-r--r--package/afboot-stm32/patches/patch-Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/package/afboot-stm32/patches/patch-Makefile b/package/afboot-stm32/patches/patch-Makefile
new file mode 100644
index 000000000..6a7087c84
--- /dev/null
+++ b/package/afboot-stm32/patches/patch-Makefile
@@ -0,0 +1,10 @@
+--- afboot-stm32-3566acd582e5536fb60864281788a30f5527df2d.orig/Makefile 2020-11-11 22:52:18.000000000 +0100
++++ afboot-stm32-3566acd582e5536fb60864281788a30f5527df2d/Makefile 2020-11-11 22:56:16.737522477 +0100
+@@ -13,6 +13,7 @@ DTB_ADDR?=0x08004000
+ CFLAGS := -mthumb -mcpu=cortex-m4
+ CFLAGS += -ffunction-sections -fdata-sections
+ CFLAGS += -Os -std=gnu99 -Wall
++CFLAGS += -fno-builtin -mno-fdpic
+ LINKERFLAGS := -nostartfiles --gc-sections
+
+ obj-y += gpio.o mpu.o qspi.o start_kernel.o