]> git.proxmox.com Git - mirror_edk2.git/blame - DuetPkg/ReadMe.txt
CorebootPayloadPkg: Use extra braces to prevent gcc compile fail
[mirror_edk2.git] / DuetPkg / ReadMe.txt
CommitLineData
4176aa9f 1Developer's UEFI Emulation (DUET) on Edk2\r
2\r
0141c701 3A. Build DUET image on Windows Platform\r
4========================================\r
4176aa9f 51. Tools preparation\r
6\r
7To build DUET image, following tools are required:\r
8\r
9 1). *Visual Studio 2005*\r
10 Assume installed at <VS_PATH>, \r
11 e.g.: C:\Program Files\Microsoft Visual Studio .NET 2003\.\r
12 2). WinDDK\r
13 Assume installed at <WIN_DDK_PATH>, e.g.: C:\WINDDK\3790.1830\.\r
14 \r
152. Build steps\r
16\r
172.1 Build Duet Platform module \r
18\r
19 1). run cmd.exe to open command line window.\r
20 2). enter workspace root directory such as c:\edk2_tree\r
21 2). run "edksetup.bat"\r
22 3). run "build -p DuetPkg\DuetPkg.dsc -a IA32" for IA32 architecture platform or \r
23 "build -p DuetPkg\DuetPkg.dsc -a X64" for X64 architecture platform.\r
4b37cc04 24 \r
252.2 Execute post build actions \r
4176aa9f 26 1). enter <Workspace>\DuetPkg directory.\r
27 2). run "PostBuild.bat IA32" for IA32 architecture platform or \r
28 "PostBuild.bat X64" for X64 architecture platform.\r
29\r
30Create bootable disk\r
31======================\r
32 \r
333. Create boot disk\r
0141c701 34 The following steps are same for IA32 architecture platform or X64 architecture platform.\r
4176aa9f 35 \r
363.1 Create floppy boot disk\r
37 1). enter <Workspace>\DuetPkg directory.\r
38 2). Insert a floppy disk to drive\r
e843cdd7 39 3). run "CreateBootDisk.bat floppy a: FAT12 IA32" if floppy drive is a: disk and Arch to boot is IA32.\r
40 or\r
41 run "CreateBootDisk.bat floppy a: FAT12 X64" if floppy drive is a: disk and Arch to boot is X64.\r
4176aa9f 423.2 Create usb boot disk\r
43 1). enter <Workspace>\DuetPkg directory.\r
44 2). Plugin usb disk\r
e843cdd7 45 3). run "CreateBootDisk.bat usb e: FAT16 IA32" if usb drive is e: and FAT format is FAT16 and Arch to boot is IA32.\r
46 or "CreateBootDisk.bat usb e: FAT16 X64" if usb drive is e: and FAT format is FAT16 and Arch to boot is X64.\r
47 or "CreateBootDisk.bat usb e: FAT32 IA32" if usb drive is e: and FAT format is FAT32 and Arch to boot is IA32.\r
48 or "CreateBootDisk.bat usb e: FAT32 X64" if usb drive is e: and FAT format is FAT32 and Arch to boot is X64.\r
4176aa9f 49 4). UnPlug usb disk and plugin it again.\r
e843cdd7 50 5). run "CreateBootDisk.bat usb e: FAT16 IA32 step2" if usb drive is e: and FAT format is FAT16 and Arch to boot is IA32.\r
51 or "CreateBootDisk.bat usb e: FAT16 X64 step2" if usb drive is e: and FAT format is FAT16 and Arch to boot is X64.\r
52 or "CreateBootDisk.bat usb e: FAT32 IA32 step2" if usb drive is e: and FAT format is FAT32 and Arch to boot is IA32.\r
53 or "CreateBootDisk.bat usb e: FAT32 X64 step2" if usb drive is e: and FAT format is FAT32 and Arch to boot is X64.\r
4176aa9f 54 \r
0141c701 55B. Build DUET image on Linux Platform\r
56====================================== \r
571. Tools preparation\r
58\r
85e2e085
ED
59 To build DUET image, GCC44 is required:\r
60 1). Base on below link to create GCC44 build environment.\r
61 http://tianocore.sourceforge.net/wiki/Using_EDK_II_with_Native_GCC\r
62\r
0141c701 632. Build steps\r
64\r
652.1 Build Duet Platform module \r
66\r
85e2e085
ED
67 1). Open the terminal.\r
68 2). enter workspace root directory such as /edk2_tree\r
69 3). run ". edksetup.sh BaseTools"\r
70 4). run "build -p DuetPkg/DuetPkg.dsc -a IA32 -t GCC44" for IA32 architecture platform or \r
71 "build -p DuetPkg/DuetPkg.dsc -a X64 -t GCC44" for X64 architecture platform.\r
0141c701 72 \r
4b37cc04 732.2 Execute post build actions \r
85e2e085
ED
74 1). enter /edk2_tree/DuetPkg directory.\r
75 2). run "./PostBuild.sh IA32 GCC44" for IA32 architecture platform or \r
76 "./PostBuild.sh X64 GCC44" for X64 architecture platform.\r
0141c701 77\r
85e2e085 78 NOTE: After post build action, you should check the size of EfiLdr at $WORKSPACE/Build/DuetPkg/DEBUG_GCC44 directory, it must less than 470k.\r
986825f0 79 If not, you should manually remove some unnecessary drivers at DuetPkg.fdf file.\r
80 \r
0141c701 813. Create bootable disk\r
82 The following steps are same for IA32 architecture platform or X64 architecture platform.\r
83 Now only support floopy.\r
84 \r
85 3.1 Create floppy boot disk\r
85e2e085 86 1). enter /edk2_tree/DuetPkg directory.\r
0141c701 87 2). Insert a floppy disk to drive\r
88 3). run "CreateBootDisk.sh" to build floppy drive\r
e843cdd7 89 such as "./CreateBootDisk.sh floppy /media/floppy0 /dev/fd0 FAT12 IA32"