From 66b44bfbedda562a32e4a2cd0716afbf731b69cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=B6=BA=E9=BA=97=E3=81=AA=E8=B3=A2=E7=8B=BC=E3=83=9B?= =?UTF-8?q?=E3=83=AD?= Date: Wed, 25 Mar 2020 05:45:04 +0800 Subject: [PATCH] Allow PATH lookup for executing dtc (#432) --- riscv/dts.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/riscv/dts.cc b/riscv/dts.cc index 246773e0..5dbed86a 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); }