Use pico_rand for DHCP xid, run cmake in load command

This commit is contained in:
Ian Gulliver
2026-04-05 21:30:21 +09:00
parent 28caa2e590
commit 4989cfd8cb
3 changed files with 11 additions and 2 deletions

View File

@@ -26,6 +26,14 @@ func main() {
}
func run(buildDir string) error {
fmt.Println("Configuring...")
cmake := exec.Command("cmake", "-B", buildDir)
cmake.Stdout = os.Stdout
cmake.Stderr = os.Stderr
if err := cmake.Run(); err != nil {
return fmt.Errorf("cmake failed: %w", err)
}
fmt.Println("Building...")
cmd := exec.Command("make", "-C", buildDir)
cmd.Stdout = os.Stdout