Browse Source

Allow PATH lookup for executing dtc (#432)

pull/409/head
綺麗な賢狼ホロ 6 years ago
committed by GitHub
parent
commit
66b44bfbed
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      riscv/dts.cc

2
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);
}

Loading…
Cancel
Save