blob: 52f5cff81985ac0d011e0dff298be710ad44ab4c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
.. SPDX-License-Identifier: GPL-2.0+
Renesas 32-bit SH4 SoC build environment setup
==============================================
In order to cross-compile U-Boot for the SH4 32-bit target, it is necessary
to install a suitable toolchain. The toolchain is available in various
distribution repositories as ``sh4-linux-gnu-*`` or similar package.
Debian example:
.. code-block:: console
$ apt install binutils-sh4-linux-gnu cpp-sh4-linux-gnu gcc-sh4-linux-gnu
Alternatively, it is possible to download prebuilt toolchain from
kernel.org cross-development toolchains page
https://www.kernel.org/pub/tools/crosstool/ .
Once the toolchain is installed, add toolchain into ``PATH`` variable:
.. code-block:: console
$ export PATH=$PATH:<path/to/sh4/toolchain/bin/>
$ export CROSS_COMPILE=sh4-linux-gnu-
|