diff options
author | 綺麗な賢狼ホロ <KireinaHoro@users.noreply.github.com> | 2020-03-25 05:45:04 +0800 |
---|---|---|
committer | Chih-Min Chao <chihmin.chao@sifive.com> | 2020-04-05 22:35:32 -0700 |
commit | 59847b98f014d1f672fa6e26f9f288ffa72ead7c (patch) | |
tree | d9b643a80ff35bdb904f7fed8f06addd9fcceaa3 /riscv | |
parent | 49ffb3ac6b775b1eb52bbccb1113db6088041b6f (diff) | |
download | spike-59847b98f014d1f672fa6e26f9f288ffa72ead7c.zip spike-59847b98f014d1f672fa6e26f9f288ffa72ead7c.tar.gz spike-59847b98f014d1f672fa6e26f9f288ffa72ead7c.tar.bz2 |
Allow PATH lookup for executing dtc (#432)
Diffstat (limited to 'riscv')
-rw-r--r-- | riscv/dts.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/riscv/dts.cc b/riscv/dts.cc index 246773e..5dbed86 100644 --- a/riscv/dts.cc +++ b/riscv/dts.cc @@ -127,7 +127,7 @@ std::string dts_compile(const std::string& dts) close(dts_pipe[1]); close(dtb_pipe[0]); close(dtb_pipe[1]); - execl(DTC, DTC, "-O", "dtb", 0); + execlp(DTC, DTC, "-O", "dtb", 0); std::cerr << "Failed to run " DTC ": " << strerror(errno) << std::endl; exit(1); } |