Mac mini support: arm64 cross-build installed beside the binary and pushed by arch; ARM machine name from the device tree

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
Mitchell-Johnson
2026-09-18 14:13:09 -07:00
co-authored by Claude Fable 5.1
parent b6502ba362
commit a372378098
6 changed files with 28 additions and 4 deletions
+6
View File
@@ -914,6 +914,12 @@ var cpuModel = func() string {
}
}
}
// ARM boards don't put a model name in cpuinfo; the device tree names the machine.
for _, p := range []string{"/sys/firmware/devicetree/base/model", "/proc/device-tree/model", "/sys/devices/virtual/dmi/id/product_name"} {
if m := strings.TrimRight(strings.TrimSpace(readStr(p)), "\x00"); m != "" {
return m
}
}
return ""
}()