SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
31
sysutils/firmware/vmm/patches/patch-src_fw_smbios_c
Normal file
31
sysutils/firmware/vmm/patches/patch-src_fw_smbios_c
Normal file
|
@ -0,0 +1,31 @@
|
|||
Index: src/fw/smbios.c
|
||||
--- src/fw/smbios.c.orig
|
||||
+++ src/fw/smbios.c
|
||||
@@ -6,6 +6,7 @@
|
||||
//
|
||||
// This file may be distributed under the terms of the GNU LGPLv3 license.
|
||||
|
||||
+#include "autoversion.h"
|
||||
#include "config.h" // CONFIG_*
|
||||
#include "malloc.h" // free
|
||||
#include "output.h" // dprintf
|
||||
@@ -174,8 +175,8 @@ smbios_init_type_0(void *start)
|
||||
p->header.length = sizeof(struct smbios_type_0);
|
||||
p->header.handle = 0;
|
||||
|
||||
- load_str_field_with_default(0, vendor_str, BUILD_APPNAME);
|
||||
- load_str_field_with_default(0, bios_version_str, BUILD_APPNAME);
|
||||
+ load_str_field_with_default(0, vendor_str, BUILD_BIOSNAME);
|
||||
+ load_str_field_with_default(0, bios_version_str, BUILD_VERSION);
|
||||
|
||||
p->bios_starting_address_segment = 0xe800;
|
||||
|
||||
@@ -227,7 +228,7 @@ smbios_init_type_1(void *start)
|
||||
p->header.handle = 0x100;
|
||||
|
||||
load_str_field_with_default(1, manufacturer_str, BUILD_APPNAME);
|
||||
- load_str_field_with_default(1, product_name_str, BUILD_APPNAME);
|
||||
+ load_str_field_with_default(1, product_name_str, BUILD_PRODNAME);
|
||||
load_str_field_or_skip(1, version_str);
|
||||
load_str_field_or_skip(1, serial_number_str);
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue