summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbrodkorb@infonline.de>2021-04-09 14:40:00 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2021-04-10 01:09:27 +0200
commitdf6fa37f8a536eaebcbe0ec5e8f967bd4e402b29 (patch)
treeea57f17392fa32b3928b9b00c410574399157f4b
parente0ed563df256ad6ed2ec42915b743c051a5e82c6 (diff)
af-boot: fix linking
-rw-r--r--package/afboot-stm32/patches/patch-Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/package/afboot-stm32/patches/patch-Makefile b/package/afboot-stm32/patches/patch-Makefile
index 6a7087c84..8f543cc4e 100644
--- a/package/afboot-stm32/patches/patch-Makefile
+++ b/package/afboot-stm32/patches/patch-Makefile
@@ -1,10 +1,12 @@
---- 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
+--- 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
CFLAGS := -mthumb -mcpu=cortex-m4
CFLAGS += -ffunction-sections -fdata-sections
CFLAGS += -Os -std=gnu99 -Wall
-+CFLAGS += -fno-builtin -mno-fdpic
- LINKERFLAGS := -nostartfiles --gc-sections
+-LINKERFLAGS := -nostartfiles --gc-sections
++CFLAGS += -fno-builtin
++LINKERFLAGS := --gc-sections
obj-y += gpio.o mpu.o qspi.o start_kernel.o
+ obj-f4 += $(obj-y) usart-f4.o