NorFlashQemuLib is one of the last remaining drivers in ArmVirtPkg that are not based on the device tree received from QEMU. For ArmVirtQemu, this does not really matter, given that the NOR flash banks are always the same: the PEI code is linked to execute in place from flash bank #0, and the fixed varstore PCDs refer to flash bank #1 directly. However, ArmVirtQemuKernel can execute at any offset, permitting it to be used as an intermediary loader when running QEMU with secure world emulation enabled, in which case NOR flash bank #0 is secure only and contains the secure world firmware. In this case, NorFlashQemuLib should not expose the first flash bank at all. To prevent introducing too much internal knowledge about which flash bank is accessible under which circumstances, let's switch to using the DTB to decide which flash banks to expose to the NOR flash driver. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Laszlo Ersek <lersek@redhat.com>
43 lines
1.2 KiB
INI
43 lines
1.2 KiB
INI
#/** @file
|
|
#
|
|
# Component description file for NorFlashQemuLib module
|
|
#
|
|
# Copyright (c) 2014, Linaro Ltd. 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 = NorFlashQemuLib
|
|
FILE_GUID = 339B7829-4C5F-4EFC-B2DD-5050E530DECE
|
|
MODULE_TYPE = DXE_DRIVER
|
|
VERSION_STRING = 1.0
|
|
LIBRARY_CLASS = NorFlashPlatformLib
|
|
|
|
[Sources.common]
|
|
NorFlashQemuLib.c
|
|
|
|
[Packages]
|
|
MdePkg/MdePkg.dec
|
|
ArmPlatformPkg/ArmPlatformPkg.dec
|
|
ArmVirtPkg/ArmVirtPkg.dec
|
|
|
|
[LibraryClasses]
|
|
BaseLib
|
|
DebugLib
|
|
UefiBootServicesTableLib
|
|
|
|
[Protocols]
|
|
gFdtClientProtocolGuid ## CONSUMES
|
|
|
|
[Depex]
|
|
gFdtClientProtocolGuid
|