aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Hermann2009-07-24 23:30:36 +0200
committerUwe Hermann2009-07-24 23:30:36 +0200
commit428e328b7e67a0112ed4810e6c2dfdb745726a81 (patch)
tree555538d97dafa18737eb565377c299b75a6cbbff
parent50ba77bea9ff670767a02fef374f8c124199fe22 (diff)
Install the ld script upon 'make install'.
-rw-r--r--Makefile2
-rw-r--r--lib/libopenstm32.ld1
2 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 2e1a170..18dcc76 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 2d819a7..5f5e398 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