Board (FreeBSD): add support

This commit is contained in:
李通洲 committed 2023-06-15 13:49:18 +08:00
1 parent 2e22b5f601
commit b5da203571
2 files changed
+13 -1

No files matched your search

+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);
}