diff options
author | Bunnaroath Sou <35707615+bsousi5@users.noreply.github.com> | 2019-03-18 15:06:06 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-18 15:06:06 -0700 |
commit | 0f8c780d82b2ec3eda351229e79953bbde7bb95a (patch) | |
tree | 9f9b0362f09e165cb767d3159fc9f52d6d22920c /scripts | |
parent | 732f4902aadcd5bda62c8ea0858112a06580406d (diff) | |
parent | 44c064f651cf4756f44fb96d542a8db2d4a33471 (diff) |
Merge pull request #202 from sifive/arty-19.2
Add ramrodata, scratchpad linker files, and correct timebase value
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/libmetal.mk | 2 | ||||
-rw-r--r-- | scripts/standalone.mk | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/scripts/libmetal.mk b/scripts/libmetal.mk index b50c599..c45972a 100644 --- a/scripts/libmetal.mk +++ b/scripts/libmetal.mk @@ -3,7 +3,7 @@ # Compiles an instance of Metal targeted at $(TARGET) ############################################################# METAL_SOURCE_PATH ?= freedom-metal -METAL_LDSCRIPT = $(BSP_DIR)/metal.lds +METAL_LDSCRIPT = $(BSP_DIR)/metal.$(LINK_TARGET).lds METAL_HEADER = $(BSP_DIR)/metal.h METAL_PREFIX = $(abspath $(BSP_DIR)/install) diff --git a/scripts/standalone.mk b/scripts/standalone.mk index fd7486b..06063b9 100644 --- a/scripts/standalone.mk +++ b/scripts/standalone.mk @@ -37,6 +37,10 @@ ifeq ($(RISCV_CMODEL),) RISCV_CMODEL = medany endif +ifeq ($(LINK_TARGET),) +LINK_TARGET = default +endif + # Determines the XLEN from the toolchain tuple ifeq ($(patsubst rv32%,rv32,$(RISCV_ARCH)),rv32) RISCV_XLEN := 32 @@ -131,7 +135,7 @@ $(PROGRAM_ELF): \ $(PROGRAM_SRCS) \ $(BSP_DIR)/install/lib/$(CONFIGURATION)/libmetal.a \ $(BSP_DIR)/install/lib/$(CONFIGURATION)/libmetal-gloss.a \ - $(BSP_DIR)/metal.lds + $(BSP_DIR)/metal.$(LINK_TARGET).lds mkdir -p $(dir $@) $(MAKE) -C $(SRC_DIR) $(basename $(notdir $@)) \ AR=$(RISCV_AR) \ |