1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- #
- # Copyright (c) 2018, ARM Limited. All rights reserved.
- #
- # SPDX-License-Identifier: BSD-2-Clause-Patent
- #
- ################################################################################
- #
- # FD Section
- # The [FD] Section is made up of the definition statements and a
- # description of what goes into the Flash Device Image. Each FD section
- # defines one flash "device" image. A flash device image may be one of
- # the following: Removable media bootable image (like a boot floppy
- # image,) an Option ROM image (that would be "flashed" into an add-in
- # card,) a System "Flash" image (that would be burned into a system's
- # flash) or an Update ("Capsule") image that will be used to update and
- # existing system flash.
- #
- ################################################################################
- [FD.BL32_AP_MM]
- BaseAddress = 0xff200000|gArmTokenSpaceGuid.PcdFdBaseAddress # UEFI in DRAM + 128MB.
- Size = 0x00e00000|gArmTokenSpaceGuid.PcdFdSize # The size in bytes of the device (64MiB).
- ErasePolarity = 1
- BlockSize = 0x00001000
- NumBlocks = 0x0e00
- 0x00000000|0x00280000
- gArmTokenSpaceGuid.PcdFvBaseAddress|gArmTokenSpaceGuid.PcdFvSize
- FV = FVMAIN_COMPACT
- [FV.FVMAIN_COMPACT]
- FvAlignment = 16
- ERASE_POLARITY = 1
- MEMORY_MAPPED = TRUE
- STICKY_WRITE = TRUE
- LOCK_CAP = TRUE
- LOCK_STATUS = TRUE
- WRITE_DISABLED_CAP = TRUE
- WRITE_ENABLED_CAP = TRUE
- WRITE_STATUS = TRUE
- WRITE_LOCK_CAP = TRUE
- WRITE_LOCK_STATUS = TRUE
- READ_DISABLED_CAP = TRUE
- READ_ENABLED_CAP = TRUE
- READ_STATUS = TRUE
- READ_LOCK_CAP = TRUE
- READ_LOCK_STATUS = TRUE
- INF StandaloneMmPkg/Core/StandaloneMmCore.inf
- !if $(SECURE_STORAGE_ENABLE) == TRUE
- INF ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashStandaloneMm.inf
- INF MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteStandaloneMm.inf
- INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableStandaloneMm.inf
- !endif
- INF StandaloneMmPkg/Drivers/StandaloneMmCpu/StandaloneMmCpu.inf
- ################################################################################
- #
- # Rules are use with the [FV] section's module INF type to define
- # how an FFS file is created for a given INF file. The following Rule are the default
- # rules for the different module type. User can add the customized rules to define the
- # content of the FFS file.
- #
- ################################################################################
- ############################################################################
- # Example of a DXE_DRIVER FFS file with a Checksum encapsulation section #
- ############################################################################
- #
- #[Rule.Common.DXE_DRIVER]
- # FILE DRIVER = $(NAMED_GUID) {
- # DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
- # COMPRESS PI_STD {
- # GUIDED {
- # PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
- # UI STRING="$(MODULE_NAME)" Optional
- # VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
- # }
- # }
- # }
- #
- ############################################################################
- [Rule.Common.MM_CORE_STANDALONE]
- FILE SEC = $(NAMED_GUID) RELOCS_STRIPPED FIXED {
- PE32 PE32 Align = Auto $(INF_OUTPUT)/$(MODULE_NAME).efi
- }
- [Rule.Common.MM_STANDALONE]
- FILE MM_STANDALONE = $(NAMED_GUID) {
- SMM_DEPEX SMM_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
- PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
- UI STRING="$(MODULE_NAME)" Optional
- VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
- }
|