Board (FreeBSD): add support

This commit is contained in:
李通洲
2023-06-15 10:12:05 +08:00
parent 2e22b5f601
commit b5da203571
2 changed files with 13 additions and 1 deletions
+1 -1
View File
@@ -429,7 +429,7 @@ elseif(BSD)
src/detection/battery/battery_bsd.c
src/detection/bios/bios_bsd.c
src/detection/bluetooth/bluetooth_linux.c
src/detection/board/board_nosupport.c
src/detection/board/board_bsd.c
src/detection/brightness/brightness_nosupport.c
src/detection/chassis/chassis_nosupport.c
src/detection/cpu/cpu_bsd.c
+12
View File
@@ -0,0 +1,12 @@
#include "board.h"
#include "common/settings.h"
void ffDetectBoard(FFBoardResult* board)
{
ffStrbufInit(&board->boardName);
ffStrbufInit(&board->boardVendor);
ffStrbufInit(&board->boardVersion);
ffSettingsGetFreeBSDKenv("smbios.planar.product", &board->boardName);
ffSettingsGetFreeBSDKenv("smbios.planar.maker", &board->boardVendor);
ffSettingsGetFreeBSDKenv("smbios.planar.version", &board->boardVersion);
}