diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2015-08-12 05:25:33 +0000 |
---|---|---|
committer | abiesheuvel <abiesheuvel@Edk2> | 2015-08-12 05:25:33 +0000 |
commit | a1123292a80608a69df89b6dd264c4656b618aec (patch) | |
tree | abf803758508f659d3cc39f975450cb85427b12d | |
parent | e01b4a8a9a9909dca98625236fd070fc6a4817ad (diff) | |
download | edk2-platforms-a1123292a80608a69df89b6dd264c4656b618aec.tar.xz |
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 <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
-rw-r--r-- | BeagleBoardPkg/BeagleBoardPkg.fdf | 13 | ||||
-rw-r--r-- | BeagleBoardPkg/ConfigurationHeader.bin | bin | 0 -> 512 bytes |
2 files changed, 11 insertions, 2 deletions
diff --git a/BeagleBoardPkg/BeagleBoardPkg.fdf b/BeagleBoardPkg/BeagleBoardPkg.fdf index a6392440e6..fb1dc26de3 100644 --- a/BeagleBoardPkg/BeagleBoardPkg.fdf +++ b/BeagleBoardPkg/BeagleBoardPkg.fdf @@ -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 @@ NumBlocks = 0xB0000 # 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
diff --git a/BeagleBoardPkg/ConfigurationHeader.bin b/BeagleBoardPkg/ConfigurationHeader.bin Binary files differnew file mode 100644 index 0000000000..150b3849fc --- /dev/null +++ b/BeagleBoardPkg/ConfigurationHeader.bin |