]> code.delx.au - refind/blobdiff - BUILDING.txt
Improved TianoCore build procedure; can now build both x86-64 and x86
[refind] / BUILDING.txt
index 6933ef2db6746cc816eb634fb84ca346105614fe..f41a6665942910673e6526dada3f59d745cebfac 100644 (file)
@@ -156,9 +156,10 @@ installed the toolkit:
    drivers) must be typed in the shell you use for this step.
 
 9) Edit Conf/target.txt and change the following:
-   - ACTIVE_PLATFORM = MdeModulePkg/MdeModulePkg.dsc
+   - ACTIVE_PLATFORM = MdePkg/MdePkg.dsc
    - TARGET = RELEASE (DEBUG might work, but I've not tested it).
-   - TARGET_ARCH = X64 (on x86-64; leave this as IA32 on x86)
+   - TARGET_ARCH = X64 (on x86-64; leave this as IA32 on x86). If you plan
+     to build both architectures, you can set this to "IA32 X64".
    - TOOL_CHAIN_TAG = GCC46 (or other value depending on your GCC version;
      type "gcc -v" to learn your GCC version number). Note that GCC 4.7
      doesn't have its own entry, so use GCC46 for GCC 4.7.
@@ -178,7 +179,8 @@ installed the toolkit:
     *_GCC46_X64_ASM_FLAGS            = DEF(GCC46_ASM_FLAGS) -m64
 
 11) Type "make -C /usr/local/UDK2010/MyWorkSpace/BaseTools/Source/C".
-    (This step is not documented on the EDK Web page.)
+    (This step is not documented on the EDK Web page.) Note that this
+    requires the g++ compiler and UUID development libraries.
     
 10) Type "build" to build the main set of EDK2 files. This process is
     likely to take a few minutes.
@@ -206,7 +208,11 @@ With your development system set up, you can compile rEFInd as follows:
 4) Type "make gnuefi" to build with GNU-EFI, or either "make" alone or
    "make tiano" to build with TianoCore EDK2. With any luck, rEFInd will
    compile without error, leaving the "refind_ia32.efi" or "refind_x64.efi"
-   file, depending on your platform, in the "refind" subdirectory.
+   file, depending on your platform, in the "refind" subdirectory. If you
+   want to build IA32 binaries on an x86-64 (X64) system, type "ARCH=ia32
+   make". This works only if you're using the TianoCore build kit, and only
+   if you set TARGET_ARCH to either "IA32" or "IA32 X64" in target.txt when
+   you set up the TianoCore.
 
 5) The default build process does NOT build the filesystem drivers. If you
    want to build them, you must type "make fs" in the main rEFInd source