mirror of https://github.com/acidanthera/audk.git
OvmfPkg/SmbiosPlatformDxe: Fix build issue with VS2010
VS2010 doesn't accept an unsized array within a structure. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17090 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
08021523f8
commit
5f239ef794
|
@ -2,7 +2,7 @@
|
||||||
This driver installs SMBIOS information for OVMF
|
This driver installs SMBIOS information for OVMF
|
||||||
|
|
||||||
Copyright (c) 2011, Bei Guan <gbtju85@gmail.com>
|
Copyright (c) 2011, Bei Guan <gbtju85@gmail.com>
|
||||||
Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2011 - 2015, Intel Corporation. All rights reserved.<BR>
|
||||||
|
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
|
@ -16,13 +16,17 @@
|
||||||
|
|
||||||
#include "SmbiosPlatformDxe.h"
|
#include "SmbiosPlatformDxe.h"
|
||||||
|
|
||||||
|
#define TYPE0_STRINGS \
|
||||||
|
"EFI Development Kit II / OVMF\0" /* Vendor */ \
|
||||||
|
"0.0.0\0" /* BiosVersion */ \
|
||||||
|
"02/06/2015\0" /* BiosReleaseDate */
|
||||||
//
|
//
|
||||||
// Type definition and contents of the default Type 0 SMBIOS table.
|
// Type definition and contents of the default Type 0 SMBIOS table.
|
||||||
//
|
//
|
||||||
#pragma pack(1)
|
#pragma pack(1)
|
||||||
typedef struct {
|
typedef struct {
|
||||||
SMBIOS_TABLE_TYPE0 Base;
|
SMBIOS_TABLE_TYPE0 Base;
|
||||||
UINT8 Strings[];
|
UINT8 Strings[sizeof(TYPE0_STRINGS)];
|
||||||
} OVMF_TYPE0;
|
} OVMF_TYPE0;
|
||||||
#pragma pack()
|
#pragma pack()
|
||||||
|
|
||||||
|
@ -56,9 +60,7 @@ STATIC CONST OVMF_TYPE0 mOvmfDefaultType0 = {
|
||||||
0xFF // UINT8 EmbeddedControllerFirmwareMinorRelease
|
0xFF // UINT8 EmbeddedControllerFirmwareMinorRelease
|
||||||
},
|
},
|
||||||
// Text strings (unformatted area)
|
// Text strings (unformatted area)
|
||||||
"EFI Development Kit II / OVMF\0" // Vendor
|
TYPE0_STRINGS
|
||||||
"0.0.0\0" // BiosVersion
|
|
||||||
"02/06/2015\0" // BiosReleaseDate
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue