From 9b831bc77f8a7a0046899075aa0f0016478f5bf2 Mon Sep 17 00:00:00 2001 From: Palmer Dabbelt Date: Thu, 8 Jun 2017 09:39:14 -0700 Subject: 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. --- bsp/env/common.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bsp/env/common.mk') 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/ -- cgit v1.2.1-18-gbd029