소스 검색

[settings] Expose SMBIOS settings as global variables

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 9 년 전
부모
커밋
721302fa54
2개의 변경된 파일11개의 추가작업 그리고 1개의 파일을 삭제
  1. 10
    0
      src/include/ipxe/settings.h
  2. 1
    1
      src/interface/smbios/smbios_settings.c

+ 10
- 0
src/include/ipxe/settings.h 파일 보기

@@ -452,6 +452,16 @@ extern const struct setting
452 452
 busid_setting __setting ( SETTING_NETDEV, busid );
453 453
 extern const struct setting
454 454
 user_class_setting __setting ( SETTING_HOST_EXTRA, user-class );
455
+extern const struct setting
456
+manufacturer_setting __setting ( SETTING_HOST_EXTRA, manufacturer );
457
+extern const struct setting
458
+product_setting __setting ( SETTING_HOST_EXTRA, product );
459
+extern const struct setting
460
+serial_setting __setting ( SETTING_HOST_EXTRA, serial );
461
+extern const struct setting
462
+asset_setting __setting ( SETTING_HOST_EXTRA, asset );
463
+extern const struct setting
464
+board_serial_setting __setting ( SETTING_HOST_EXTRA, board-serial );
455 465
 
456 466
 /**
457 467
  * Initialise a settings block

+ 1
- 1
src/interface/smbios/smbios_settings.c 파일 보기

@@ -248,7 +248,7 @@ const struct setting asset_setting __setting ( SETTING_HOST_EXTRA, asset ) = {
248 248
 
249 249
 /** Board serial number setting (may differ from chassis serial number) */
250 250
 const struct setting board_serial_setting __setting ( SETTING_HOST_EXTRA,
251
-						      board_serial ) = {
251
+						      board-serial ) = {
252 252
 	.name = "board-serial",
253 253
 	.description = "Base board serial",
254 254
 	.tag = SMBIOS_STRING_TAG ( SMBIOS_TYPE_BASE_BOARD_INFORMATION,

Loading…
취소
저장