]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmPlatformPkg/Documentation: Removed BaseTools-Pending-Patches.patch
authorOlivier Martin <olivier.martin@arm.com>
Wed, 29 Oct 2014 18:55:29 +0000 (18:55 +0000)
committeroliviermartin <oliviermartin@Edk2>
Wed, 29 Oct 2014 18:55:29 +0000 (18:55 +0000)
All the required pending BaseTools patches have been merged.
This patch is not required anymore.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16275 6f19259b-4bc3-4df7-8a09-765794883524

ArmPlatformPkg/Documentation/ArmRealViewRTSMInstructions.txt
ArmPlatformPkg/Documentation/ArmVExpressInstructions.txt
ArmPlatformPkg/Documentation/patches/BaseTools-Pending-Patches.patch [deleted file]

index dcc1ba4afd44dc478a1cd8fd43861e3e47abe0a4..5d86e9a662e28fc17c1d75916009adf8cb092329 100644 (file)
@@ -16,15 +16,12 @@ svn co https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2 edk2 --username
 cd edk2\r
 svn co https://edk2-fatdriver2.svn.sourceforge.net/svnroot/edk2-fatdriver2/trunk/FatPkg FatPkg --username guest\r
 \r
-3. Apply BaseTools patches (BaseTools-Pending-Patches.patch combines all the currently pending BaseTools patches)\r
-patch -p1 < ArmPlatformPkg/Documentation/patches/BaseTools-Pending-Patches.patch\r
-\r
-4. Set up the environment. And build the EDK2\92s tools\r
+3. Set up the environment. And build the EDK2\92s tools\r
 export EDK_TOOLS_PATH=`pwd`/BaseTools\r
 . edksetup.sh `pwd`/BaseTools/\r
 make -C $EDK_TOOLS_PATH\r
 \r
-5. Build the ARM RealView EB UEFI Firmware\r
+4. Build the ARM RealView EB UEFI Firmware\r
 build -a ARM -p ArmPlatformPkg/ArmRealViewEBPkg/ArmRealViewEb-RTSM-A8.dsc -t RVCTLINUX\r
 \r
 \r
index 4fce4a5548d5f7cc7cb96e6872af2e936b66aab5..a3fe9d77a123f476f079b5c59e73b44994ff730d 100644 (file)
@@ -38,21 +38,18 @@ svn co https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2 edk2 --username
 cd edk2\r
 svn co https://edk2-fatdriver2.svn.sourceforge.net/svnroot/edk2-fatdriver2/trunk/FatPkg FatPkg --username guest\r
 \r
-3. Apply BaseTools patches (BaseTools-Pending-Patches.patch combines all the currently pending BaseTools patches)\r
-patch -p1 < ArmPlatformPkg/Documentation/patches/BaseTools-Pending-Patches.patch\r
-\r
-4. Set up the environment. And build the EDK2\92s tools\r
+3. Set up the environment. And build the EDK2\92s tools\r
 export EDK_TOOLS_PATH=`pwd`/BaseTools\r
-. edksetup.sh `pwd`/BaseTools/\r
+. edksetup.sh\r
 make -C $EDK_TOOLS_PATH\r
 \r
-5. Ensure the ARMGCC toolchain is in your PATH environment variable or defined by the ARMGCC_TOOLS_PATH environment variable. Example:\r
+4. Ensure the ARMGCC toolchain is in your PATH environment variable or defined by the ARMGCC_TOOLS_PATH environment variable. Example:\r
 export ARMGCC_TOOLS_PATH=/opt/toolchains/arm-2010.09-arm-none-eabi-i686-pc-linux-gnu/bin/\r
 \r
-6. Build the ARM Versatile Express UEFI Firmware\r
+5. Build the ARM Versatile Express UEFI Firmware\r
 build -a ARM -p ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-CTA9x4.dsc -t ARMGCC\r
 \r
-7. Edit the ARM Versatile Express configuration file config.txt to declare the location of the UEFI firmware in NOR Flash\r
+6. Edit the ARM Versatile Express configuration file config.txt to declare the location of the UEFI firmware in NOR Flash\r
 TOTALIMAGES: 5                   ;Number of Images (Max : 32)\r
 NOR0UPDATE: AUTO                 ;Image Update:NONE/AUTO/FORCE\r
 NOR0ADDRESS: BOOT                ;Image Flash Address\r
@@ -77,20 +74,20 @@ NOR4ADDRESS: 40000000            ;Image Flash Address
 NOR4NAME: BOOTSCRIPT             ;Image Name\r
 NOR4FILE: \SOFTWARE\bootscr.txt  ;Image File Name\r
 \r
-8. To select second NOR Flash as a booting device, replace in the ARM Versatile Express file \SITE1\HBI0191B\board.txt:\r
+7. To select second NOR Flash as a booting device, replace in the ARM Versatile Express file \SITE1\HBI0191B\board.txt:\r
 SCC: 0x004 0x00001F09\r
 By:\r
 SCC: 0x004 0x10001F09\r
 \r
-9. Copy Build/ArmVExpress-CTA9x4/DEBUG_ARMGCC/FV/SEC_ARMVEXPRESS_EFI.fd to the ARM Versatile Express mass storage (available when the board is connected through USB to your host machine) under the folder SOTWARE and name sec_uefi.bin. Example for cygwin:\r
+8. Copy Build/ArmVExpress-CTA9x4/DEBUG_ARMGCC/FV/SEC_ARMVEXPRESS_EFI.fd to the ARM Versatile Express mass storage (available when the board is connected through USB to your host machine) under the folder SOTWARE and name sec_uefi.bin. Example for cygwin:\r
 cp Build/ArmVExpress-CTA9x4/DEBUG_ARMGCC/FV/SEC_ARMVEXPRESS_EFI.fd /cygdrive/e/SOFTWARE/sec_uefi.bin\r
 \r
-10. Start the ARM Versatile Express board. You should read \93Waiting for firmware at 0x80000000 ...\94 on the serial port. \r
+9. Start the ARM Versatile Express board. You should read \93Waiting for firmware at 0x80000000 ...\94 on the serial port. \r
 \r
-11. Copy ARMVEXPRESS_EFI.fd at 0x80000000 with RealView Debugger\r
+10. Copy ARMVEXPRESS_EFI.fd at 0x80000000 with RealView Debugger\r
 readfile,raw,nowarn "[EDK2_PATH]\Build\ArmVExpress-CTA9x4\DEBUG_ARMGCC\FV\ARMVEXPRESS_EFI.fd"=0x80000000\r
 \r
-12. Resume the execution from RealView Debugger\r
+11. Resume the execution from RealView Debugger\r
 \r
 For all subsequent times\r
 ************************\r
diff --git a/ArmPlatformPkg/Documentation/patches/BaseTools-Pending-Patches.patch b/ArmPlatformPkg/Documentation/patches/BaseTools-Pending-Patches.patch
deleted file mode 100755 (executable)
index 7bdc26d..0000000
+++ /dev/null
@@ -1,152 +0,0 @@
-From 7686eed1a9ed96791cfa65ec5b2f5fdaca538e53 Mon Sep 17 00:00:00 2001
-From: Olivier Martin <olivier.martin@arm.com>
-Date: Tue, 11 Jun 2013 10:56:12 +0100
-Subject: [PATCH 3/8] BaseTools/GenFw: Set the PE/COFF attribute BaseOfCode with the address of the first '.text' section
-
-Before this change the alignment of the first code section was not taken into account.
-
-Change-Id: I6e6b07edb2f7e7179c9467b43857c44a8309cb68
-Contributed-under: TianoCore Contribution Agreement 1.0
-Signed-off-by: Olivier Martin <olivier.martin@arm.com>
----
- BaseTools/Source/C/GenFw/Elf32Convert.c |   20 +++++++++++++++++++-
- BaseTools/Source/C/GenFw/Elf64Convert.c |   19 ++++++++++++++++++-
- 2 files changed, 37 insertions(+), 2 deletions(-)
- mode change 100644 => 100755 BaseTools/Source/C/GenFw/Elf32Convert.c
- mode change 100644 => 100755 BaseTools/Source/C/GenFw/Elf64Convert.c
-
-diff --git a/BaseTools/Source/C/GenFw/Elf32Convert.c b/BaseTools/Source/C/GenFw/Elf32Convert.c
-old mode 100644
-new mode 100755
-index ddb45ac..58ac333
---- a/BaseTools/Source/C/GenFw/Elf32Convert.c
-+++ b/BaseTools/Source/C/GenFw/Elf32Convert.c
-@@ -1,6 +1,7 @@
- /** @file
- Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>
-+Portions copyright (c) 2013, ARM Ltd. All rights reserved.<BR>
- This program and the accompanying materials are licensed and made available
- under the terms and conditions of the BSD License which accompanies this
-@@ -18,6 +19,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
- #include <windows.h>
- #include <io.h>
- #endif
-+#include <assert.h>
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
-@@ -264,9 +266,12 @@ ScanSections32 (
-   EFI_IMAGE_OPTIONAL_HEADER_UNION *NtHdr;
-   UINT32                          CoffEntry;
-   UINT32                          SectionCount;
-+  BOOLEAN                         FoundText;
-   CoffEntry = 0;
-   mCoffOffset = 0;
-+  mTextOffset = 0;
-+  FoundText = FALSE;
-   //
-   // Coff file start with a DOS header.
-@@ -291,7 +296,6 @@ ScanSections32 (
-   // First text sections.
-   //
-   mCoffOffset = CoffAlign(mCoffOffset);
--  mTextOffset = mCoffOffset;
-   SectionCount = 0;
-   for (i = 0; i < mEhdr->e_shnum; i++) {
-     Elf_Shdr *shdr = GetShdrByIndex(i);
-@@ -315,12 +319,26 @@ ScanSections32 (
-           (mEhdr->e_entry < shdr->sh_addr + shdr->sh_size)) {
-         CoffEntry = mCoffOffset + mEhdr->e_entry - shdr->sh_addr;
-       }
-+
-+      //
-+      // Set mTextOffset with the offset of the first '.text' section
-+      //
-+      if (!FoundText) {
-+        mTextOffset = mCoffOffset;
-+        FoundText = TRUE;
-+      }
-+
-       mCoffSectionsOffset[i] = mCoffOffset;
-       mCoffOffset += shdr->sh_size;
-       SectionCount ++;
-     }
-   }
-+  if (!FoundText) {
-+    Error (NULL, 0, 3000, "Invalid", "Did not find any '.text' section.");
-+    assert (FALSE);
-+  }
-+
-   if (mEhdr->e_machine != EM_ARM) {
-     mCoffOffset = CoffAlign(mCoffOffset);
-   }
-diff --git a/BaseTools/Source/C/GenFw/Elf64Convert.c b/BaseTools/Source/C/GenFw/Elf64Convert.c
-old mode 100644
-new mode 100755
-index 72d6cd1..713f8f7
---- a/BaseTools/Source/C/GenFw/Elf64Convert.c
-+++ b/BaseTools/Source/C/GenFw/Elf64Convert.c
-@@ -19,6 +19,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
- #include <windows.h>
- #include <io.h>
- #endif
-+#include <assert.h>
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
-@@ -258,9 +259,12 @@ ScanSections64 (
-   EFI_IMAGE_OPTIONAL_HEADER_UNION *NtHdr;
-   UINT32                          CoffEntry;
-   UINT32                          SectionCount;
-+  BOOLEAN                         FoundText;
-   CoffEntry = 0;
-   mCoffOffset = 0;
-+  mTextOffset = 0;
-+  FoundText = FALSE;
-   //
-   // Coff file start with a DOS header.
-@@ -286,7 +290,6 @@ ScanSections64 (
-   // First text sections.
-   //
-   mCoffOffset = CoffAlign(mCoffOffset);
--  mTextOffset = mCoffOffset;
-   SectionCount = 0;
-   for (i = 0; i < mEhdr->e_shnum; i++) {
-     Elf_Shdr *shdr = GetShdrByIndex(i);
-@@ -310,12 +313,26 @@ ScanSections64 (
-           (mEhdr->e_entry < shdr->sh_addr + shdr->sh_size)) {
-         CoffEntry = (UINT32) (mCoffOffset + mEhdr->e_entry - shdr->sh_addr);
-       }
-+
-+      //
-+      // Set mTextOffset with the offset of the first '.text' section
-+      //
-+      if (!FoundText) {
-+        mTextOffset = mCoffOffset;
-+        FoundText = TRUE;
-+      }
-+
-       mCoffSectionsOffset[i] = mCoffOffset;
-       mCoffOffset += (UINT32) shdr->sh_size;
-       SectionCount ++;
-     }
-   }
-+  if (!FoundText) {
-+    Error (NULL, 0, 3000, "Invalid", "Did not find any '.text' section.");
-+    assert (FALSE);
-+  }
-+
-   if (mEhdr->e_machine != EM_ARM) {
-     mCoffOffset = CoffAlign(mCoffOffset);
-   }
--- 
-1.7.0.4
-