Explorar el Código

[settings] Expose SMBIOS settings as global variables

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown hace 9 años
padre
commit
721302fa54
Se han modificado 2 ficheros con 11 adiciones y 1 borrados
  1. 10
    0
      src/include/ipxe/settings.h
  2. 1
    1
      src/interface/smbios/smbios_settings.c

+ 10
- 0
src/include/ipxe/settings.h Ver fichero

@@ -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 Ver fichero

@@ -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…
Cancelar
Guardar