Go to file
liangkangnan 0463f8d773 README: add linux build steps
Signed-off-by: liangkangnan <liangkangnan@163.com>
2021-11-11 09:56:11 +08:00
contrib loader: add tinyriscv 2021-11-11 09:55:02 +08:00
doc Document default values for some config options. (#461) 2020-03-27 11:21:02 -07:00
jimtcl@51f65c6d38 jimtcl: update to 0.77, the current version, enable only specific modules 2016-12-25 09:20:42 +00:00
src add tinyriscv_program command 2021-11-11 09:54:00 +08:00
tcl Improvements for the HiFive1 revB (#476) 2020-05-15 11:31:32 -07:00
testing From upstream (#286) 2018-08-20 14:55:30 -07:00
tools More carefully ignore line numbers/time stamps. (#365) 2019-04-02 13:40:39 -07:00
.gitignore git ignore release dir 2020-06-13 13:13:19 +08:00
.gitmodules submodule: use gitee jimtcl repo 2020-06-11 23:31:41 +08:00
.travis.yml Fix filterdiff line. 2019-09-30 12:47:34 -07:00
AUTHORS Add AUTHORS for 0.2.0 release. 2009-07-02 11:17:21 +00:00
AUTHORS.ChangeLog Add AUTHORS.ChangeLog file suitable to be passed to 'svn2cl --authors'. 2009-07-02 11:18:45 +00:00
BUGS docs: update OpenOCD url's to openocd.org domain 2015-04-16 20:28:21 +01:00
COPYING update files to correct FSF address 2013-06-05 19:52:42 +00:00
ChangeLog fix typos in documentation 2009-11-26 10:12:22 -08:00
Doxyfile.in doxygen: fix issues with recent Doxygen versions 2018-01-30 07:35:50 +00:00
HACKING Merge branch 'master' into from_upstream 2019-09-27 12:07:00 -07:00
Makefile.am jimtcl: update to 0.77, the current version, enable only specific modules 2016-12-25 09:20:42 +00:00
NEWS Restore normal development cycle 2017-01-23 00:46:51 +03:00
NEWS-0.2.0 whitespace cleanup, mostly for docs 2009-12-30 11:51:29 -08:00
NEWS-0.3.0 Version 0.4.0-dev 2009-11-04 19:44:36 -08:00
NEWS-0.4.0 Open the merge window for the 0.5.0 release cycle. 2010-02-21 13:27:37 -08:00
NEWS-0.5.0 Archive and recreate NEWS file. 2011-08-09 13:34:50 +08:00
NEWS-0.6.0 Restore -dev suffix, archive NEWS file, add new blank NEWS file - start 2012-09-07 11:04:05 +02:00
NEWS-0.7.0 Restore normal development cycle 2013-05-05 10:45:03 +02:00
NEWS-0.8.0 Restore normal development cycle 2014-04-27 15:07:08 +04:00
NEWS-0.9.0 Restore normal development cycle 2015-05-18 00:34:18 +03:00
NEWS-0.10.0 Restore normal development cycle 2017-01-23 00:46:51 +03:00
NEWTAPS Fix spelling of ARM Cortex 2016-05-20 21:38:03 +01:00
README add README.md 2020-06-13 13:29:05 +08:00
README.OSX README.OSX: mention Gentoo Prefix and clarify other options 2014-06-18 07:05:39 +00:00
README.Windows README.Windows: clarify the kernel drivers installation 2015-05-17 21:15:13 +01:00
README.md README: add linux build steps 2021-11-11 09:56:11 +08:00
TODO TODO: remove references to "ocd_" prefix in documentation 2019-05-14 19:39:19 +01:00
bootstrap Fix autogen.sh invocation of libjaylink 2016-11-05 20:40:18 +00:00
config_subdir.m4 Fix out-of-tree build 2013-07-30 11:56:57 +00:00
configure.ac Merge branch 'master' into from_upstream 2019-09-27 12:07:00 -07:00
guess-rev.sh guess-rev.sh: fix minor typo 2019-05-23 22:14:30 +01:00
rebuild.sh add rebuild.sh 2020-06-13 13:11:44 +08:00
release.sh add release.sh 2020-06-13 13:12:30 +08:00
uncrustify.cfg build: update uncrustify config 2012-02-06 10:40:25 +00:00

README.md

编译Windows版本

1.安装msys2

msys2官网下载安装最新的64位版本安装完成后打开mingw-32bit窗口执行以下命令安装依赖

pacman -S autoconf automake pkg-config libtool binutils gcc git make mingw-w64-i686-toolchain mingw-w64-i686-libusb mingw-w64-i686-hidapi mingw-w64-i686-libftdi

2.下载源码

下载本项目的所有代码到msys2的某个目录下

git clone --recursive https://gitee.com/liangkangnan/tinyriscv-openocd.git

3.编译源码

3.1第一次编译或者重新编译

在项目的根目录下,执行以下命令:

./rebuild.sh

3.2打包openocd.exe

编译完成后就可以打包了,执行以下命令进行打包:

./release.sh

打包后的文件在根目录下的release目录里可以把整个release目录拷贝到电脑的其他目录下使用。

3.3修改源码后编译

修改源码后只需要执行make命令即可编译。

make

编译完可以按照步骤3.2进行打包。

编译Linux版本

以ubuntu系统为例。

1.安装依赖

sudo apt-get install autoconf automake pkg-config libtool libusb-dev libusb-1.0-0-dev libhidapi-dev

2.编译

./bootstrap
./configure --enable-remote-bitbang --enable-cmsis-dap --enable-ftdi
make

编译完成后会在src/目录下生成openocd可执行文件。