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:
co-authored by
Claude Fable 5.1
parent
b6502ba362
commit
a372378098
@@ -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 ""
|
||||
}()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user