Revision: 18210
          http://sourceforge.net/p/edk2/code/18210
Author:   abiesheuvel
Date:     2015-08-12 05:25:33 +0000 (Wed, 12 Aug 2015)
Log Message:
-----------
BeagleBoardPkg: fold configuration header into FD build

Since the configuration header never changes unless the board parameters
in ConfigurationHeader.dat are updated, we can take a snapshot of the
binary and add it to the FDF definition. This way, it will get emitted
by the EDK2 build system instead of having to use a separate
post-processing tool to add it to the flash image.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <[email protected]>
Reviewed-by: Leif Lindholm <[email protected]>

Modified Paths:
--------------
    trunk/edk2/BeagleBoardPkg/BeagleBoardPkg.fdf

Added Paths:
-----------
    trunk/edk2/BeagleBoardPkg/ConfigurationHeader.bin

Modified: trunk/edk2/BeagleBoardPkg/BeagleBoardPkg.fdf
===================================================================
--- trunk/edk2/BeagleBoardPkg/BeagleBoardPkg.fdf        2015-08-12 05:25:26 UTC 
(rev 18209)
+++ trunk/edk2/BeagleBoardPkg/BeagleBoardPkg.fdf        2015-08-12 05:25:33 UTC 
(rev 18210)
@@ -27,7 +27,7 @@
 
 
 [FD.BeagleBoard_EFI]
-BaseAddress   = 0x80008000|gArmTokenSpaceGuid.PcdFdBaseAddress  #The base 
address of the FLASH Device.
+BaseAddress   = 0x80007DF8|gArmTokenSpaceGuid.PcdFdBaseAddress  #The base 
address of the FLASH Device.
 Size          = 0x000B0000|gArmTokenSpaceGuid.PcdFdSize         #The size in 
bytes of the FLASH Device
 ErasePolarity = 1
 BlockSize     = 0x1
@@ -48,7 +48,16 @@
 # RegionType <FV, DATA, or FILE>
 #
 
################################################################################
-0x00000000|0x000B0000
+0x00000000|0x00000200
+FILE = BeagleBoardPkg/ConfigurationHeader.bin
+
+0x00000200|0x00000008
+DATA = {
+  0xF8, 0xFD, 0x0A, 0x00,   # image size:   0xB0000 - 0x208 == 0xAFDF8
+  0x00, 0x80, 0x00, 0x80    # entry point:  0x80008000
+}
+
+0x00000208|0x000AFDF8
 gArmTokenSpaceGuid.PcdFvBaseAddress|gArmTokenSpaceGuid.PcdFvSize
 FV = FVMAIN_COMPACT
 

Added: trunk/edk2/BeagleBoardPkg/ConfigurationHeader.bin
===================================================================
--- trunk/edk2/BeagleBoardPkg/ConfigurationHeader.bin                           
(rev 0)
+++ trunk/edk2/BeagleBoardPkg/ConfigurationHeader.bin   2015-08-12 05:25:33 UTC 
(rev 18210)
@@ -0,0 +1,4 @@
+\xA0+
++\ No newline at end of file


------------------------------------------------------------------------------
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to