summaryrefslogtreecommitdiff
path: root/BeagleBoardPkg
diff options
context:
space:
mode:
authoroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2011-07-06 16:46:44 +0000
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2011-07-06 16:46:44 +0000
commit63cea7c188ea9129d43ae8472c28cc7d46966c17 (patch)
tree2614517dc13514e2d54b5aaf0948c378b9d8e679 /BeagleBoardPkg
parentdbf6167688e16772919389bd767958418ffb20f0 (diff)
downloadedk2-platforms-63cea7c188ea9129d43ae8472c28cc7d46966c17.tar.xz
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
Diffstat (limited to 'BeagleBoardPkg')
-rw-r--r--BeagleBoardPkg/BeagleBoardPkg.fdf5
1 files changed, 4 insertions, 1 deletions
diff --git a/BeagleBoardPkg/BeagleBoardPkg.fdf b/BeagleBoardPkg/BeagleBoardPkg.fdf
index f963969d9c..e1e7479667 100644
--- a/BeagleBoardPkg/BeagleBoardPkg.fdf
+++ b/BeagleBoardPkg/BeagleBoardPkg.fdf
@@ -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