summaryrefslogtreecommitdiff
path: root/bsp/env/common.mk
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmer@dabbelt.com>2017-06-08 09:39:14 -0700
committerPalmer Dabbelt <palmer@dabbelt.com>2017-06-14 08:53:39 -0700
commit9b831bc77f8a7a0046899075aa0f0016478f5bf2 (patch)
tree9ecd6943e41ac54c233a86b4fb1551f31b3ad3e9 /bsp/env/common.mk
parent809711e87af06ca5c151a2fac568382330f2feb6 (diff)
Add linker scripts that target the scratchpad
Everything still defaults to the flash, but users can optionally select the scratchpad. Note that you have to be pretty careful about your scratchpad programs, most of them won't fit. For example, printf is too big to fit in the scratchpad.
Diffstat (limited to 'bsp/env/common.mk')
-rw-r--r--bsp/env/common.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/bsp/env/common.mk b/bsp/env/common.mk
index 32703a6..4566b80 100644
--- a/bsp/env/common.mk
+++ b/bsp/env/common.mk
@@ -15,7 +15,7 @@ ASM_SRCS += $(ENV_DIR)/start.S
ASM_SRCS += $(ENV_DIR)/entry.S
C_SRCS += $(PLATFORM_DIR)/init.c
-LINKER_SCRIPT := $(PLATFORM_DIR)/link.lds
+LINKER_SCRIPT := $(PLATFORM_DIR)/$(LINK_TARGET).lds
INCLUDES += -I$(BSP_BASE)/include
INCLUDES += -I$(BSP_BASE)/drivers/