summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2021-12-31 17:08:26 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2022-02-10 13:28:20 +0100
commit95503c0cd97957538b9e0110ab4d8b18037fbefc (patch)
treebed1458f319e021ff9919efd504a04bf9efc739f
parent8807b9b5b1aa82238f7e8bb47276c660dd1144f0 (diff)
disable fdpic mode for afboot-stm32
-rw-r--r--package/afboot-stm32/patches/patch-Makefile15
1 files changed, 11 insertions, 4 deletions
diff --git a/package/afboot-stm32/patches/patch-Makefile b/package/afboot-stm32/patches/patch-Makefile
index 8f543cc4e..c063052c9 100644
--- a/package/afboot-stm32/patches/patch-Makefile
+++ b/package/afboot-stm32/patches/patch-Makefile
@@ -1,11 +1,18 @@
---- afboot-stm32-3566acd582e5536fb60864281788a30f5527df2d.orig/Makefile 2021-04-09 08:03:07.000000000 +0200
-+++ afboot-stm32-3566acd582e5536fb60864281788a30f5527df2d/Makefile 2021-04-09 08:12:57.359735373 +0200
-@@ -13,7 +13,8 @@ DTB_ADDR?=0x08004000
+--- afboot-stm32-3566acd582e5536fb60864281788a30f5527df2d.orig/Makefile 2021-12-31 07:02:01.000000000 +0100
++++ afboot-stm32-3566acd582e5536fb60864281788a30f5527df2d/Makefile 2021-12-31 12:02:33.236273664 +0100
+@@ -7,13 +7,14 @@ OBJDUMP = $(CROSS_COMPILE)objdump
+ SIZE = $(CROSS_COMPILE)size
+ GDB = $(CROSS_COMPILE)gdb
+ OPENOCD = openocd
+-KERNEL_ADDR?=0x08008000
++KERNEL_ADDR?=0x0800C000
+ DTB_ADDR?=0x08004000
+
CFLAGS := -mthumb -mcpu=cortex-m4
CFLAGS += -ffunction-sections -fdata-sections
CFLAGS += -Os -std=gnu99 -Wall
-LINKERFLAGS := -nostartfiles --gc-sections
-+CFLAGS += -fno-builtin
++CFLAGS += -mno-fdpic -fno-builtin
+LINKERFLAGS := --gc-sections
obj-y += gpio.o mpu.o qspi.o start_kernel.o