forked from nodejs/node
-
Notifications
You must be signed in to change notification settings - Fork 4
Home
Brice Dobry edited this page Aug 31, 2020
·
12 revisions
To build Node.js for RISC-V, start off by cloning this repository, then follow the steps below.
Ensure that you have the RISC-V toolchain installed. If you do not have riscv64-unknown-linux-gnu-gcc
available in your path, install it following the directions here.
sudo apt install gawk texinfo zlib1g-dev flex bison
git clone https://github.com/riscv/riscv-gnu-toolchain
cd riscv-gnu-toolchain
git submodule update --init --recursive
./configure --prefix=/opt/riscv
sudo make linux -j8
Note -j8
specifies parallel build with 8 processes, and should be adjusted to the number of cores on your machines.
Be sure to add the path to this new toolchain to your path:
export PATH="/opt/riscv/bin:$PATH"
cd node
git submodule update --init --recursive
./build_riscv64.sh
make -j8