[toolchain] Temporarily install `device-tree-compiler` for riscv-isa-sim
@@ -78,6 +78,9 @@ tc-llvm:
riscv-isa-sim:
cd toolchain/riscv-isa-sim && mkdir -p build && cd build; \
+ [ -d dtc ] || git clone git://git.kernel.org/pub/scm/utils/dtc/dtc.git && cd dtc; \
+ make install SETUP_PREFIX=$$(pwd)/install PREFIX=$$(pwd)/install && \
+ PATH=$$(pwd)/install/bin:$$PATH; cd ..; \
../configure --prefix=$(ISA_SIM_INSTALL_DIR) && make && make install
# Helper targets
