From 428e328b7e67a0112ed4810e6c2dfdb745726a81 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Fri, 24 Jul 2009 23:30:36 +0200 Subject: [PATCH] Install the ld script upon 'make install'. --- Makefile | 2 ++ lib/libopenstm32.ld | 1 + 2 files changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 2e1a1704..18dcc766 100644 --- a/Makefile +++ b/Makefile @@ -52,6 +52,8 @@ install: build $(Q)$(INSTALL) -m 0644 include/libopenstm32/*.h $(INCDIR)/libopenstm32 @printf " INSTALL lib\n" $(Q)$(INSTALL) -m 0644 lib/*.a $(LIBDIR) + @printf " INSTALL ldscript\n" + $(Q)$(INSTALL) -m 0644 lib/*.ld $(LIBDIR) clean: $(Q)$(MAKE) -C examples clean diff --git a/lib/libopenstm32.ld b/lib/libopenstm32.ld index 2d819a70..5f5e398a 100644 --- a/lib/libopenstm32.ld +++ b/lib/libopenstm32.ld @@ -20,6 +20,7 @@ /* Linker script for Olimex STM32-H103 (STM32F103RBT6, 128K flash, 20K RAM). */ /* Define memory regions. */ +/* TODO: Make this overridable by the application code, it's MCU specific. */ MEMORY { rom (rx) : ORIGIN = 0x00000000, LENGTH = 128K