Skip to content

Commit 1d05209

Browse files
committedJun 19, 2015
doc/manual/installing: minor cleanups
1 parent 645c650 commit 1d05209

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed
 

Diff for: ‎doc/manual/installing.rst

+15-12
Original file line numberDiff line numberDiff line change
@@ -91,19 +91,19 @@ These steps are required to generate bitstream (``.bit``) files, build the MiSoC
9191

9292
$ cd ~/artiq-dev
9393
$ git clone https://github.com/m-labs/migen
94-
$ cd ~/artiq-dev/migen
94+
$ cd migen
9595
$ python3 setup.py develop --user
9696

9797
.. note::
9898
The options ``develop`` and ``--user`` are for setup.py to install Migen in ``~/.local/lib/python3.4``.
9999

100100
* Install OpenRISC GCC/binutils toolchain (or1k-elf-...): ::
101101

102-
$ mkdir ~/artiq-dev
103102
$ cd ~/artiq-dev
104103
$ git clone https://github.com/openrisc/or1k-src
105-
$ mkdir ~/artiq-dev/or1k-src/build
106-
$ cd ~/artiq-dev/or1k-src/build
104+
$ cd or1k-src
105+
$ mkdir build
106+
$ cd build
107107
$ ../configure --target=or1k-elf --enable-shared --disable-itcl \
108108
--disable-tk --disable-tcl --disable-winsup \
109109
--disable-gdbtk --disable-libgui --disable-rda \
@@ -114,8 +114,9 @@ These steps are required to generate bitstream (``.bit``) files, build the MiSoC
114114

115115
$ cd ~/artiq-dev
116116
$ git clone https://github.com/openrisc/or1k-gcc
117-
$ mkdir ~/artiq-dev/or1k-gcc/build
118-
$ cd ~/artiq-dev/or1k-gcc/build
117+
$ cd or1k-gcc
118+
$ mkdir build
119+
$ cd build
119120
$ ../configure --target=or1k-elf --enable-languages=c \
120121
--disable-shared --disable-libssp
121122
$ make -j4
@@ -127,7 +128,7 @@ These steps are required to generate bitstream (``.bit``) files, build the MiSoC
127128

128129
$ cd ~/artiq-dev
129130
$ svn co https://xc3sprog.svn.sourceforge.net/svnroot/xc3sprog/trunk xc3sprog
130-
$ cd ~/artiq-dev/xc3sprog
131+
$ cd xc3sprog
131132
$ cmake . && make
132133
$ sudo make install
133134

@@ -155,8 +156,10 @@ These steps are required to generate bitstream (``.bit``) files, build the MiSoC
155156

156157
$ cd ~/artiq-dev
157158
$ git clone https://github.com/m-labs/bscan_spi_kc705
159+
$ cd bscan_spi_kc705
160+
$ make
158161

159-
Build the bitstream and copy it to one of the folders above.
162+
Then copy the generated ``bscan_spi_kc705.bit`` to ``~/.migen``, ``/usr/local/share/migen`` or ``/usr/share/migen``.
160163

161164
* Download MiSoC: ::
162165

@@ -276,19 +279,19 @@ Installing the host-side software
276279

277280
$ cd ~/artiq-dev
278281
$ git clone https://github.com/openrisc/llvm-or1k
279-
$ cd ~/artiq-dev/llvm-or1k/tools
282+
$ cd llvm-or1k/tools
280283
$ git clone https://github.com/openrisc/clang-or1k clang
281284

282-
$ cd ~/artiq-dev/llvm-or1k
285+
$ cd ..
283286
$ mkdir build
284-
$ cd ~/artiq-dev/llvm-or1k/build
287+
$ cd build
285288
$ cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local/llvm-or1k -DLLVM_TARGETS_TO_BUILD=OR1K -DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=ON
286289
$ make -j4
287290
$ sudo make install
288291

289292
$ cd ~/artiq-dev
290293
$ git clone https://github.com/numba/llvmlite
291-
$ cd ~/artiq-dev/llvmlite
294+
$ cd llvmlite
292295
$ patch -p1 < ~/artiq-dev/artiq/misc/llvmlite-add-all-targets.patch
293296
$ PATH=/usr/local/llvm-or1k/bin:$PATH sudo -E python3 setup.py install
294297

0 commit comments

Comments
 (0)