Browse Source

[settings] Expose SMBIOS settings as global variables

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 9 years ago
parent
commit
721302fa54
2 changed files with 11 additions and 1 deletions
  1. 10
    0
      src/include/ipxe/settings.h
  2. 1
    1
      src/interface/smbios/smbios_settings.c

+ 10
- 0
src/include/ipxe/settings.h View File

452
 busid_setting __setting ( SETTING_NETDEV, busid );
452
 busid_setting __setting ( SETTING_NETDEV, busid );
453
 extern const struct setting
453
 extern const struct setting
454
 user_class_setting __setting ( SETTING_HOST_EXTRA, user-class );
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
  * Initialise a settings block
467
  * Initialise a settings block

+ 1
- 1
src/interface/smbios/smbios_settings.c View File

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

Loading…
Cancel
Save