aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmer@dabbelt.com>2017-05-03 17:35:38 -0700
committerGitHub <noreply@github.com>2017-05-03 17:35:38 -0700
commit8089bd3167ea205e0f7e27c6a9fe6877150b0fa9 (patch)
tree3ae314f306e3336abea5d05cd5bffaea79201963
parent25bb7e1305d9220dddfbded12c087e8f1372b952 (diff)
parentde3f9239356b6486552831a6605baa07b39348bd (diff)
downloadriscv-tools-8089bd3167ea205e0f7e27c6a9fe6877150b0fa9.zip
riscv-tools-8089bd3167ea205e0f7e27c6a9fe6877150b0fa9.tar.gz
riscv-tools-8089bd3167ea205e0f7e27c6a9fe6877150b0fa9.tar.bz2
Merge pull request #65 from riscv/openocd
Add OpenOCD
-rw-r--r--.gitmodules3
-rw-r--r--.travis.yml5
-rwxr-xr-xbuild-rv32ima.sh1
-rw-r--r--build.common8
-rwxr-xr-xbuild.sh1
m---------riscv-gnu-toolchain0
m---------riscv-openocd0
7 files changed, 18 insertions, 0 deletions
diff --git a/.gitmodules b/.gitmodules
index 2c44816..0ea42ca 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -19,3 +19,6 @@
[submodule "riscv-gnu-toolchain"]
path = riscv-gnu-toolchain
url = https://github.com/riscv/riscv-gnu-toolchain.git
+[submodule "riscv-openocd"]
+ path = riscv-openocd
+ url = https://github.com/riscv/riscv-openocd.git
diff --git a/.travis.yml b/.travis.yml
index 9ade992..3100a4b 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -23,6 +23,7 @@ addons:
- flex
- texinfo
- python-pexpect
+ - libusb-1.0-0-dev
env:
global:
@@ -37,6 +38,10 @@ before_install:
- cd riscv-tests
- git submodule update --init
- cd ..
+ # openocd also needs submodules
+ - cd riscv-openocd
+ - git submodule update --init
+ - cd ..
# actually use new gcc
- export CXX=g++-4.8 CC=gcc-4.8
diff --git a/build-rv32ima.sh b/build-rv32ima.sh
index 65e93ae..eaa0bb8 100755
--- a/build-rv32ima.sh
+++ b/build-rv32ima.sh
@@ -11,5 +11,6 @@ build_project riscv-fesvr --prefix=$RISCV
build_project riscv-isa-sim --prefix=$RISCV --with-fesvr=$RISCV --with-isa=rv32ima
build_project riscv-gnu-toolchain --prefix=$RISCV --with-arch=rv32ima --with-abi=ilp32
CC= CXX= build_project riscv-pk --prefix=$RISCV --host=riscv32-unknown-elf
+build_project riscv-openocd --prefix=$RISCV --enable-remote-bitbang
echo -e "\\nRISC-V Toolchain installation completed!"
diff --git a/build.common b/build.common
index 3b6a1c4..fadf6ef 100644
--- a/build.common
+++ b/build.common
@@ -24,6 +24,14 @@ function build_project {
echo "Removing existing $PROJECT/build directory"
rm -rf "$PROJECT/build"
fi
+ if [ ! -e "$PROJECT/configure" ]
+ then
+ (
+ cd "$PROJECT"
+ find . -iname configure.ac | sed s/configure.ac/m4/ | xargs mkdir -p
+ autoreconf -i
+ )
+ fi
mkdir -p "$PROJECT/build"
cd "$PROJECT/build"
echo "Configuring project $PROJECT"
diff --git a/build.sh b/build.sh
index ec5f003..1563b7f 100755
--- a/build.sh
+++ b/build.sh
@@ -7,6 +7,7 @@
echo "Starting RISC-V Toolchain build process"
+build_project riscv-openocd --prefix=$RISCV --enable-remote-bitbang
build_project riscv-fesvr --prefix=$RISCV
build_project riscv-isa-sim --prefix=$RISCV --with-fesvr=$RISCV
build_project riscv-gnu-toolchain --prefix=$RISCV
diff --git a/riscv-gnu-toolchain b/riscv-gnu-toolchain
-Subproject 8b16c6123d3dc9642ceeaa6ad371f494d597087
+Subproject 9f1f1971208d898705cb19e353e3da28c9f8c4a
diff --git a/riscv-openocd b/riscv-openocd
new file mode 160000
+Subproject ba3a56937bc921a72b672d666a60ea4292cff44