summaryrefslogtreecommitdiff
path: root/software/shared/Makefile.shared
diff options
context:
space:
mode:
authormwachs5 <megan@sifive.com>2016-08-01 11:41:50 -0700
committerGitHub <noreply@github.com>2016-08-01 11:41:50 -0700
commit7d1de2c3d4a2cfa238540d073f9cd9dcb7f38e1d (patch)
treeb30c60f84368c8319a7f4beeb6834c84b776285f /software/shared/Makefile.shared
parent51bca217eabfcc90d21924241250eca63b860a91 (diff)
parentb80083544c12351a969a1ce7be83c88707db73e4 (diff)
Merge pull request #2 from sifive/new_riscv_tests
Bump Tool versions
Diffstat (limited to 'software/shared/Makefile.shared')
-rw-r--r--software/shared/Makefile.shared3
1 files changed, 2 insertions, 1 deletions
diff --git a/software/shared/Makefile.shared b/software/shared/Makefile.shared
index 5817826..70550a0 100644
--- a/software/shared/Makefile.shared
+++ b/software/shared/Makefile.shared
@@ -8,7 +8,8 @@ C_SRCS += $(SHARED_DIR)/init.c
C_SRCS += $(SHARED_DIR)/syscall.c
C_SRCS += $(SHARED_DIR)/drivers_sifive/plic.c
-LINKER_SCRIPT := $(SHARED_DIR)/link.lds
+PLATFORM ?= freedom-e300
+LINKER_SCRIPT := $(SWDIR)/../riscv-tests/debug/targets/$(PLATFORM)/link.lds
HEADERS += $(SHARED_DIR)/*.h
C_SRCS += $(TARGET).c