diff options
author | mwachs5 <megan@sifive.com> | 2017-05-17 13:42:39 -0700 |
---|---|---|
committer | mwachs5 <megan@sifive.com> | 2017-05-17 13:42:39 -0700 |
commit | 05cb35bb1700ce1b93a8502ce2d7e4ca3f22e3fd (patch) | |
tree | a412fd558fe4fe8e7129da815c05d3bc3b79c491 | |
parent | fdd2423815d27bc20be21f8a4bf7dd4a27fd0320 (diff) |
rename 'PREFIX' to 'PATH' for more intuitive naming
-rw-r--r-- | Makefile | 18 | ||||
-rw-r--r-- | README.md | 10 |
2 files changed, 14 insertions, 14 deletions
@@ -103,15 +103,15 @@ tools: riscv-gnu-toolchain openocd toolchain_builddir := $(builddir)/riscv-gnu-toolchain/riscv64-unknown-elf toolchain_prefix := $(toolchain_builddir)/prefix -RISCV_PREFIX ?= $(toolchain_prefix) +RISCV_PATH ?= $(toolchain_prefix) -RISCV_GCC := $(abspath $(RISCV_PREFIX)/bin/riscv64-unknown-elf-gcc) -RISCV_GXX := $(abspath $(RISCV_PREFIX)/bin/riscv64-unknown-elf-g++) -RISCV_OBJDUMP := $(abspath $(RISCV_PREFIX)/bin/riscv64-unknown-elf-objdump) -RISCV_GDB := $(abspath $(RISCV_PREFIX)/bin/riscv64-unknown-elf-gdb) -RISCV_AR := $(abspath $(RISCV_PREFIX)/bin/riscv64-unknown-elf-ar) +RISCV_GCC := $(abspath $(RISCV_PATH)/bin/riscv64-unknown-elf-gcc) +RISCV_GXX := $(abspath $(RISCV_PATH)/bin/riscv64-unknown-elf-g++) +RISCV_OBJDUMP := $(abspath $(RISCV_PATH)/bin/riscv64-unknown-elf-objdump) +RISCV_GDB := $(abspath $(RISCV_PATH)/bin/riscv64-unknown-elf-gdb) +RISCV_AR := $(abspath $(RISCV_PATH)/bin/riscv64-unknown-elf-ar) -PATH := $(abspath $(RISCV_PREFIX)/bin):$(PATH) +PATH := $(abspath $(RISCV_PATH)/bin):$(PATH) $(RISCV_GCC) $(RISCV_GXX) $(RISCV_OBJDUMP) $(RISCV_GDB) $(RISCV_AR): $(toolchain_builddir)/install.stamp touch -c $@ @@ -151,8 +151,8 @@ toolchain-clean: openocd_builddir := $(builddir)/openocd openocd_prefix := $(openocd_builddir)/prefix -RISCV_OPENOCD_PREFIX ?= $(openocd_prefix) -RISCV_OPENOCD ?= $(RISCV_OPENOCD_PREFIX)/bin/openocd +RISCV_OPENOCD_PATH ?= $(openocd_prefix) +RISCV_OPENOCD ?= $(RISCV_OPENOCD_PATH)/bin/openocd .PHONY: openocd openocd: $(RISCV_OPENOCD) @@ -49,17 +49,17 @@ https://sifive.com/products/tools For OpenOCD and/or RISC-V GNU Toolchain, download the .tar.gz for your platform, and unpack it to -your desired location. Then, use the `RISC_PREFIX` and `RISCV_OPENOCD_PREFIX` +your desired location. Then, use the `RISC_PATH` and `RISCV_OPENOCD_PATH` variables when attempting to use the tools: ``` cp openocd-<date>-<platform>.tar.gz /my/desired/location/ -cp riscv-gnu-toolchain-<date>-<platform>.tar.gz /my/desired/location +cp riscv64-unknown-elf-gcc-<date>-<platform>.tar.gz /my/desired/location cd /my/desired/location tar -xvf openocd-<date>-<platform>.tar.gz -tar -xvf riscv-gnu-toolchain-<date>-<platform>.tar.gz -export RISCV_OPENOCD_PREFIX /my/desired/location/openocd -export RISCV_PREFIX /my/desired/location/riscv-gnu-toolchain +tar -xvf riscv64-unknown-elf-gcc-<date>-<platform>.tar.gz +export RISCV_OPENOCD_PATH=/my/desired/location/openocd +export RISCV_PATH=/my/desired/location/riscv64-unknown-elf-gcc-<date>-<version> ``` ### Updating your SDK ### |