]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BeagleBoardPkg: fold configuration header into FD build
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 12 Aug 2015 05:25:33 +0000 (05:25 +0000)
committerabiesheuvel <abiesheuvel@Edk2>
Wed, 12 Aug 2015 05:25:33 +0000 (05:25 +0000)
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 <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18210 6f19259b-4bc3-4df7-8a09-765794883524

BeagleBoardPkg/BeagleBoardPkg.fdf
BeagleBoardPkg/ConfigurationHeader.bin [new file with mode: 0644]

index a6392440e64f7fd4bbabcd939e13ccf3aa7e6555..fb1dc26de349f125e6fcfd9f4aa2b7928a902885 100644 (file)
@@ -27,7 +27,7 @@
 \r
 \r
 [FD.BeagleBoard_EFI]\r
-BaseAddress   = 0x80008000|gArmTokenSpaceGuid.PcdFdBaseAddress  #The base address of the FLASH Device.\r
+BaseAddress   = 0x80007DF8|gArmTokenSpaceGuid.PcdFdBaseAddress  #The base address of the FLASH Device.\r
 Size          = 0x000B0000|gArmTokenSpaceGuid.PcdFdSize         #The size in bytes of the FLASH Device\r
 ErasePolarity = 1\r
 BlockSize     = 0x1\r
@@ -48,7 +48,16 @@ NumBlocks     = 0xB0000
 # RegionType <FV, DATA, or FILE>\r
 #\r
 ################################################################################\r
-0x00000000|0x000B0000\r
+0x00000000|0x00000200\r
+FILE = BeagleBoardPkg/ConfigurationHeader.bin\r
+\r
+0x00000200|0x00000008\r
+DATA = {\r
+  0xF8, 0xFD, 0x0A, 0x00,   # image size:   0xB0000 - 0x208 == 0xAFDF8\r
+  0x00, 0x80, 0x00, 0x80    # entry point:  0x80008000\r
+}\r
+\r
+0x00000208|0x000AFDF8\r
 gArmTokenSpaceGuid.PcdFvBaseAddress|gArmTokenSpaceGuid.PcdFvSize\r
 FV = FVMAIN_COMPACT\r
 \r
diff --git a/BeagleBoardPkg/ConfigurationHeader.bin b/BeagleBoardPkg/ConfigurationHeader.bin
new file mode 100644 (file)
index 0000000..150b384
Binary files /dev/null and b/BeagleBoardPkg/ConfigurationHeader.bin differ