- gmake -- For the GNU tools, NetBSD will use it's own make
- bison
- flex
- gsed
- gawk
- autoconf
- automake
- pkg-config
- libtool
- bash
pkg_add gmake bison flex gsed gawk autoconf automake pkg-config libtool bash
While the newer version from
riscv-tools will probably
work, the one that I've tested and built with is can be found in
riscv-tools-netbsd. At
the very least you'll probably want the netbsd_build.sh
script
from there to simplify building the tools.
git clone --depth 1 https://github.com/zmcgrew/riscv-tools-netbsd.git ~/riscv-tools-netbsd
cd riscv-tools-netbsd
You may want to put this in your shell's rc file.
PATH=$PATH:~/.riscv-tools/bin
export PATH
./netbsd_build.sh simulator
./netbsd_build.sh crosstools
mkdir ~/netbsd && cd ~/netbsd
git clone --depth 1 -b riscv https://github.com/zmcgrew/src.git src
ln -s src/build_riscv.sh ./build_riscv.sh
cd ~/netbsd
./build_riscv.sh tools
cd ~/netbsd
./build_riscv.sh kernel=GENERIC
spike bbl