From 63cea7c188ea9129d43ae8472c28cc7d46966c17 Mon Sep 17 00:00:00 2001 From: oliviermartin Date: Wed, 6 Jul 2011 16:46:44 +0000 Subject: 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 --- BeagleBoardPkg/BeagleBoardPkg.fdf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'BeagleBoardPkg/BeagleBoardPkg.fdf') 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 # ################################################################################ - +!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 -- cgit v1.2.3