mirror of https://github.com/acidanthera/audk.git
OvmfPkg: Add CSM16 and related drivers if CSM_ENABLE is set
Note: The CSM16 binary must be copied into the tree at OvmfPkg/Csm/Csm16/Csm16.bin in order to use CSM_ENABLE. If CSM_ENABLE is set during the build, then the CSM16 binary and the CSM support (Legacy BIOS) drivers will be added to the build. Signed-off-by: jljusten Reviewed-by: geekboy15a git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12682 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
8016da21b5
commit
4b3d663f7b
|
@ -0,0 +1,23 @@
|
|||
## @file
|
||||
# CSM Binary
|
||||
#
|
||||
# Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
|
||||
# This program and the accompanying materials
|
||||
# are licensed and made available under the terms and conditions of the BSD License
|
||||
# which accompanies this distribution. The full text of the license may be found at
|
||||
# http://opensource.org/licenses/bsd-license.php
|
||||
#
|
||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
#
|
||||
##
|
||||
|
||||
[Defines]
|
||||
INF_VERSION = 0x00010005
|
||||
BASE_NAME = Csm16
|
||||
FILE_GUID = 1547B4F3-3E8A-4FEF-81C8-328ED647AB1A
|
||||
MODULE_TYPE = USER_DEFINED
|
||||
VERSION_STRING = 1.0
|
||||
|
||||
[Binaries]
|
||||
BIN|Csm16.bin|*
|
|
@ -0,0 +1,12 @@
|
|||
This module allows a CSM16 binary to be easily included
|
||||
in the OVMF.fd output file.
|
||||
|
||||
=== How to use Csm16.inf ===
|
||||
|
||||
1. Copy the CSM16 binary to OvmfPkg/Csm/Csm16/Csm16.bin
|
||||
2. Build OVMF with CSM_ENABLE defined.
|
||||
|
||||
For example:
|
||||
* build -D CSM_ENABLE, or
|
||||
* OvmfPkg/build.sh -D CSM_ENABLE
|
||||
|
|
@ -409,6 +409,12 @@
|
|||
MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
|
||||
MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
|
||||
|
||||
!ifdef $(CSM_ENABLE)
|
||||
IntelFrameworkModulePkg/Csm/BiosThunk/VideoDxe/VideoDxe.inf
|
||||
IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf
|
||||
OvmfPkg/Csm/Csm16/Csm16.inf
|
||||
!endif
|
||||
|
||||
!if $(BUILD_NEW_SHELL)
|
||||
ShellPkg/Application/Shell/Shell.inf {
|
||||
<LibraryClasses>
|
||||
|
|
|
@ -251,6 +251,12 @@ INF MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
|
|||
INF MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
|
||||
INF MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
|
||||
|
||||
!ifdef $(CSM_ENABLE)
|
||||
INF IntelFrameworkModulePkg/Csm/BiosThunk/VideoDxe/VideoDxe.inf
|
||||
INF IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf
|
||||
INF RuleOverride=CSM OvmfPkg/Csm/Csm16/Csm16.inf
|
||||
!endif
|
||||
|
||||
################################################################################
|
||||
|
||||
[FV.FVMAIN_COMPACT]
|
||||
|
@ -360,6 +366,11 @@ FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 {
|
|||
RAW ASL |.aml
|
||||
}
|
||||
|
||||
[Rule.Common.USER_DEFINED.CSM]
|
||||
FILE FREEFORM = $(NAMED_GUID) {
|
||||
RAW BIN |.bin
|
||||
}
|
||||
|
||||
[Rule.Common.SEC.RESET_VECTOR]
|
||||
FILE RAW = $(NAMED_GUID) {
|
||||
RAW RAW |.raw
|
||||
|
|
|
@ -411,6 +411,12 @@
|
|||
MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
|
||||
MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
|
||||
|
||||
!ifdef $(CSM_ENABLE)
|
||||
IntelFrameworkModulePkg/Csm/BiosThunk/VideoDxe/VideoDxe.inf
|
||||
IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf
|
||||
OvmfPkg/Csm/Csm16/Csm16.inf
|
||||
!endif
|
||||
|
||||
!if $(BUILD_NEW_SHELL)
|
||||
ShellPkg/Application/Shell/Shell.inf {
|
||||
<LibraryClasses>
|
||||
|
|
|
@ -251,6 +251,12 @@ INF MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
|
|||
INF MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
|
||||
INF MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
|
||||
|
||||
!ifdef $(CSM_ENABLE)
|
||||
INF IntelFrameworkModulePkg/Csm/BiosThunk/VideoDxe/VideoDxe.inf
|
||||
INF IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf
|
||||
INF RuleOverride=CSM OvmfPkg/Csm/Csm16/Csm16.inf
|
||||
!endif
|
||||
|
||||
################################################################################
|
||||
|
||||
[FV.FVMAIN_COMPACT]
|
||||
|
@ -360,6 +366,11 @@ FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 {
|
|||
RAW ASL |.aml
|
||||
}
|
||||
|
||||
[Rule.Common.USER_DEFINED.CSM]
|
||||
FILE FREEFORM = $(NAMED_GUID) {
|
||||
RAW BIN |.bin
|
||||
}
|
||||
|
||||
[Rule.Common.SEC.RESET_VECTOR]
|
||||
FILE RAW = $(NAMED_GUID) {
|
||||
RAW RAW |.raw
|
||||
|
|
|
@ -410,6 +410,12 @@
|
|||
MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
|
||||
MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
|
||||
|
||||
!ifdef $(CSM_ENABLE)
|
||||
IntelFrameworkModulePkg/Csm/BiosThunk/VideoDxe/VideoDxe.inf
|
||||
IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf
|
||||
OvmfPkg/Csm/Csm16/Csm16.inf
|
||||
!endif
|
||||
|
||||
!if $(BUILD_NEW_SHELL)
|
||||
ShellPkg/Application/Shell/Shell.inf {
|
||||
<LibraryClasses>
|
||||
|
|
|
@ -251,6 +251,12 @@ INF MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
|
|||
INF MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
|
||||
INF MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
|
||||
|
||||
!ifdef $(CSM_ENABLE)
|
||||
INF IntelFrameworkModulePkg/Csm/BiosThunk/VideoDxe/VideoDxe.inf
|
||||
INF IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf
|
||||
INF RuleOverride=CSM OvmfPkg/Csm/Csm16/Csm16.inf
|
||||
!endif
|
||||
|
||||
################################################################################
|
||||
|
||||
[FV.FVMAIN_COMPACT]
|
||||
|
@ -360,6 +366,11 @@ FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 {
|
|||
RAW ASL |.aml
|
||||
}
|
||||
|
||||
[Rule.Common.USER_DEFINED.CSM]
|
||||
FILE FREEFORM = $(NAMED_GUID) {
|
||||
RAW BIN |.bin
|
||||
}
|
||||
|
||||
[Rule.Common.SEC.RESET_VECTOR]
|
||||
FILE RAW = $(NAMED_GUID) {
|
||||
RAW RAW |.raw
|
||||
|
|
Loading…
Reference in New Issue