Board (Apple): use machine model indentifier as motherboard name

This commit is contained in:
李通洲
2023-11-28 11:00:50 +08:00
parent 167b130011
commit 00721630ce
2 changed files with 14 additions and 1 deletions
+13
View File
@@ -0,0 +1,13 @@
#include "board.h"
#include "common/sysctl.h"
const char* ffDetectBoard(FFBoardResult* result)
{
const char* error = ffSysctlGetString("hw.model", &result->name);
if (error)
return error;
ffStrbufSetStatic(&result->vendor, "Apple");
return NULL;
}