From 7d058c4a562635ab8ffa2d79d2795fe225912c38 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Thu, 19 Jan 2017 06:57:39 +0100 Subject: Add experimental support for STM32F769 Add single/double precision support for Cortex-M7. Mostly from Alex, some minor cleanup and kernel mini config from me. Signed-off-by: Alex Brand --- package/afboot-stm32/Makefile | 9 +++++++-- package/afboot-stm32/patches/patch-Makefile | 6 +++--- 2 files changed, 10 insertions(+), 5 deletions(-) (limited to 'package/afboot-stm32') diff --git a/package/afboot-stm32/Makefile b/package/afboot-stm32/Makefile index 3cd774eb0..127b9c21a 100644 --- a/package/afboot-stm32/Makefile +++ b/package/afboot-stm32/Makefile @@ -4,13 +4,13 @@ include $(ADK_TOPDIR)/rules.mk PKG_NAME:= afboot-stm32 -PKG_VERSION:= f7f109f0c6f65534ae50f9243a7356c5002a9b87 +PKG_VERSION:= 8e9e03159ce47629d40dbed4c50c1879b69bb197 PKG_RELEASE:= 1 PKG_DESCR:= bootloader for stm32 devices PKG_SECTION:= base/boot PKG_SITES:= https://github.com/mcoquelin-stm32/afboot-stm32.git -PKG_SYSTEM_DEPENDS:= st-stm32f429 +PKG_SYSTEM_DEPENDS:= st-stm32f429 st-stm32f769 include $(ADK_TOPDIR)/mk/package.mk @@ -20,6 +20,11 @@ CONFIG_STYLE:= manual INSTALL_STYLE:= manual afboot-stm32-install: +ifeq ($(ADK_TARGET_SYSTEM_ST_STM32F429),y) $(CP) $(WRKBUILD)/stm32f429i-disco.bin $(FW_DIR) +endif +ifeq ($(ADK_TARGET_SYSTEM_ST_STM32F769),y) + $(CP) $(WRKBUILD)/stm32746g-eval.bin $(FW_DIR) +endif include $(ADK_TOPDIR)/mk/pkg-bottom.mk diff --git a/package/afboot-stm32/patches/patch-Makefile b/package/afboot-stm32/patches/patch-Makefile index 98ea48693..4fbb034c6 100644 --- a/package/afboot-stm32/patches/patch-Makefile +++ b/package/afboot-stm32/patches/patch-Makefile @@ -1,5 +1,5 @@ ---- afboot-stm32-f7f109f0c6f65534ae50f9243a7356c5002a9b87.orig/Makefile 2016-04-24 20:35:00.000000000 +0200 -+++ afboot-stm32-f7f109f0c6f65534ae50f9243a7356c5002a9b87/Makefile 2016-04-24 20:36:36.000000000 +0200 +--- afboot-stm32-8e9e03159ce47629d40dbed4c50c1879b69bb197.orig/Makefile 2017-01-19 06:54:21.000000000 +0100 ++++ afboot-stm32-8e9e03159ce47629d40dbed4c50c1879b69bb197/Makefile 2017-01-19 06:55:03.370200767 +0100 @@ -1,14 +1,15 @@ CROSS_COMPILE ?= arm-none-eabi- @@ -17,7 +17,7 @@ -CFLAGS := -mthumb -mcpu=cortex-m4 +CFLAGS ?= -+CFLAGS += -mthumb -mcpu=cortex-m4 ++CFLAGS += -mthumb CFLAGS += -ffunction-sections -fdata-sections CFLAGS += -Os -std=gnu99 -Wall LINKERFLAGS := -nostartfiles --gc-sections -- cgit v1.2.3