mirror of https://github.com/acidanthera/audk.git
BeagleBoardPkg: Introduce macro EDK2_SECOND_STAGE_BOOTOLADER
By setting this macro, the OMAP353x header is stripped from the UEFI firmware. Some boot loader (eg: x-loader) loads the second stage boot loader (u-boot or uefi) to a specific address and start the firmware from this address. This macro ensures the reset vector is located at the beginning of the image. To build the BeagleBoard with ./build.sh to enable this feature: ./build.sh -D EDK2_SECOND_STAGE_BOOTOLADER=1 Note: in this case, you must use BEAGLEBOARD_EFI.fd (and not BeagleBoard_EFI_flashboot.fd) git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11995 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
dbf6167688
commit
63cea7c188
|
@ -49,11 +49,14 @@ NumBlocks = 0x80000
|
|||
# RegionType <FV, DATA, or FILE>
|
||||
#
|
||||
################################################################################
|
||||
|
||||
!if $(EDK2_SECOND_STAGE_BOOTOLADER) == 1
|
||||
0x00000000|0x00080000
|
||||
!else
|
||||
# 512 bytes of configuration header & 8 bytes of image header
|
||||
0x00000000|0x00000208
|
||||
|
||||
0x00000208|0x0007FDF8
|
||||
!endif
|
||||
gEmbeddedTokenSpaceGuid.PcdFlashFvMainBase|gEmbeddedTokenSpaceGuid.PcdFlashFvMainSize
|
||||
FV = FVMAIN_COMPACT
|
||||
|
||||
|
|
Loading…
Reference in New Issue