]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ReleaseNotes.txt
Fixed the FfsAlignment issue
[mirror_edk2.git] / ReleaseNotes.txt
index 4f8c26a5e6c569cc88629904811efbb4ffbd5eb3..dd501a30e8f91759335b83242e998838d410293c 100644 (file)
@@ -192,6 +192,69 @@ many other POSIX-compliant host operating environments. To compile the custom
 gcc tool chain, you need the following tools on your host computer: bash, gcc, \r
 gmake, curl (or wget).\r
 \r
+Only the MdePkg and EdkModulePkg are currently supported by gcc builds. Other\r
+builds, such as the EdkNt32Pkg, will not compile with gcc. By default, the edk2\r
+will try to build the NT32.fpd, which is not supported by gcc. So, you need to\r
+change the Tools/Conf/target.txt.\r
+\r
+The platform to be built is identified by the Tools/Conf/target.txt file:\r
+\r
+#\r
+#  PROPERTY              Type       Use         Description\r
+#  ----------------      --------   --------    -----------------------------------------------------------\r
+#  ACTIVE_PLATFORM       Filename   Recommended Specify the WORKSPACE relative Path and Filename \r
+#                                               of the platform FPD file that will be used for the build\r
+#                                               This line is required if and only if the current working\r
+#                                               directory does not contain one or more FPD files.\r
+\r
+ACTIVE_PLATFORM       =\r
\r
+You can leave it black, as above, or set it to any .fpd file in the workspace.\r
+If you leave it blank, then you just cd to the dir that contains the .fpd that\r
+you would like to build (MdePkg/ or EdkModulePkg/) and then type build.\r
+\r
+----------------------------\r
+A Word on compiling on Linux\r
+----------------------------\r
+\r
+In order to compile on Linux, you will need to have the e2fsprogs-dev package\r
+installed.  Check your distribution for the rpm, deb or other package format.\r
+This package contains the uuid library and header that are used by some of the\r
+host tools.\r
+\r
+If you are running on x86_64 Linux, then you should install a 64 bit version of\r
+the Java JDK. The version that was used was jdk-1_5_0_07-linux-amd64-rpm.bin.\r
+It may be downloaded from sun.com.\r
+\r
+-----------------------------------------\r
+A Word on compiling under Cygwin with gcc\r
+-----------------------------------------\r
+\r
+Cygwin is a POSIX style operating environment for Windows. It is possible to\r
+compile the EDK 2 using gcc and cygwin. There are a few extra steps necessary\r
+to make this happen. There is a JNI (Java Native Interface) library in the\r
+Tools.  In order to compile this under Cygwin, the 'linux' java headers must be\r
+installed to the $JAVA_HOME dir on the windows system. To accomplish this, you\r
+must install the JDK on a linux system, and then copy\r
+linux:$JAVA_HOME/include/linux/ to windows:$JAVA_HOME/include. These are really\r
+typedefs needed by gcc.\r
+\r
+Compiling under cygwin is slow, because the underlying file accesses are slow\r
+in cygwin. For this reason, we do not encourage the use of cygwin. A true unix\r
+system will be a superior choice for those wishing to compile with gcc.\r
+\r
+Make sure that you select the e2fsprogs development package when you install\r
+cygwin. It is necessary for the GenFvImage tool.\r
+\r
+----------------------------------------\r
+A Word on gcc for Processor Architectures\r
+----------------------------------------\r
+\r
+Currently gcc support is limited to IA-32 builds, generating IA-32 PE32 images. \r
+\r
+The X64 bit (Intel 64, etc.) support under the gcc compiler does not support the EFIAPI calling convention (as defined in the UEFI 2.0 specification Chapter 2), so it is not possible to build a working EFI image for an X64 environment.  Since the x64 gcc does not support the EFIAPI calling convention the x64 tools do not support generating a PE32+ image.  The EFIAPI calling convention is very similar to the Microsoft x64 calling convention.\r
+\r
+On ItaniumĀ® Processors the gcc compiler does not support generating a PE32+ image.\r
 \r
 -----------------------\r
 Notes on Documentation\r
@@ -217,7 +280,7 @@ check out the entire EDK II source tree.
 In a command window, change to the top-level directory of the EDK II source.\r
 \r
 To test your tool chain setup and to build the supplied tools, execute:\r
-    c:\MyWork\edkii\> edksetup ForceBuild\r
+    c:\MyWork\edk2\> edksetup ForceRebuild\r
 \r
 (The edksetup script is referred to as the setup command throughout the \r
 rest of this document.)\r
@@ -230,7 +293,7 @@ script (without any arguments), any time you want to build.
 \r
   Set the WORKSPACE environment variable, e.g.:\r
 \r
-    c:\> set WORKSPACE=C:\MyWork\edkii\r
+    c:\> set WORKSPACE=C:\MyWork\edk2\r
 \r
 You may need to edit the text files Tools/Conf/target.txt and\r
 Tools/Conf/tools_def.txt (created by edksetup) using your favorite \r
@@ -240,7 +303,7 @@ paths (as per the default installation of the tools), so a customized
 install may require this manual process.\r
 \r
 Once this is completed, you are ready to test the build, by executing:\r
-    c:\MyWork\edkii\> build\r
+    c:\MyWork\edk2\> build\r
 \r
 This command builds the active platform specified in text file target.txt. If \r
 the active platform is not specified target.txt, you must execute the build \r
@@ -262,13 +325,20 @@ environment variable, TOOL_CHAIN to "gcc" before running the
 edksetup script.  Example: export TOOL_CHAIN=gcc\r
 \r
 To test your tool chain setup and to build the supplied tools, execute:\r
-    c:\MyWork\edkii\> edksetup ForceBuild\r
+    c:\MyWork\edk2\> edksetup ForceRebuild\r
 \r
 On Linux systems, you must source the edksetup.sh file to load the correct\r
 settings into your shell.\r
 \r
     . edksetup.sh # Note the dot.\r
 \r
+If you have recently updated your code from subversion, the tools will need to\r
+be rebuilt if there were any code changes made to them. You can request that\r
+the tools get rebuilt by typing:\r
+\r
+    . edksetup.sh Rebuild # Unix-like systems\r
+    edksetup.bat Rebuild  # Windows\r
+\r
 The edksetup script is referred to as the setup command throughout the \r
 rest of this document.\r
       NOTE: You should run the setup command at the start of every session.\r
@@ -277,14 +347,14 @@ rest of this document.
 \r
 Any changes to the tool source code or XML Schema documents require that\r
 you execute the following:\r
-   c:\MyWork\edkii\> edksetup ForceBuild\r
+   c:\MyWork\edk2\> edksetup ForceRebuild\r
 \r
 You must set the WORKSPACE environment variable, or run the edksetup\r
 script (without any arguments), any time you want to build.\r
 \r
   Set the WORKSPACE environment variable, e.g.:\r
 \r
-    c:\> set WORKSPACE=C:\MyWork\edkii\r
+    c:\> set WORKSPACE=C:\MyWork\edk2\r
 \r
 You may need to edit the text files Tools/Conf/target.txt and\r
 Tools/Conf/tools_def.txt (created by edksetup) using your favorite \r
@@ -294,7 +364,7 @@ paths (as per the default installation of the tools), so a customized
 tool installation may require this manual process.\r
 \r
 Once this is completed, you are ready to test the build, by executing:\r
-    c:\MyWork\edkii\> build\r
+    c:\MyWork\edk2\> build\r
 \r
 This command builds the active platform specified in text file target.txt. If \r
 the active platform is not specified, go to the sub-directory that contains FPD \r
@@ -311,7 +381,7 @@ In the command window:
     c:\<directory>\> build\r
 or\r
   cd to the platform (FPD file) that you want to build and execute this command:\r
-    c:\MyWork\edkii\EdkNt32Pkg\> build\r
+    c:\MyWork\edk2\EdkNt32Pkg\> build\r
 \r
   Note that the active platform specified in target.txt overrides the platform \r
   specified by any FPD file in the current directory. For more   information \r
@@ -348,7 +418,7 @@ Individual Module Builds
 After running the setup command, you can build individual modules.\r
   In the command window, cd to the module that you want to build, and\r
   execute the build command:\r
-    c:\MyWork\edkii\MdePkg\Library\BaseLib\> build\r
+    c:\MyWork\edk2\MdePkg\Library\BaseLib\> build\r
 \r
   You must set the active platform in target.txt for individual module builds. \r
 \r