]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - UefiPayloadPkg/BuildAndIntegrationInstructions.txt
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / UefiPayloadPkg / BuildAndIntegrationInstructions.txt
... / ...
CommitLineData
1================================================================================\r
2Build And Integration Instructions\r
32020 Aug 1st\r
4================================================================================\r
5\r
6================================================================================\r
7DISCLAIMER\r
8================================================================================\r
9This release note as well as the software described in it is furnished under license\r
10and may only be used or copied in accordance with the terms of the license. The\r
11information in this manual is furnished for informational use only, is subject to\r
12change without notice, and should not be construed as a commitment by Intel Corporation.\r
13Intel Corporation assumes no responsibility or liability for any errors or inaccuracies\r
14that may appear in this document or any software that may be provided in association\r
15with this document.\r
16Except as permitted by such license, no part of this document may be reproduced,\r
17stored in a retrieval system, or transmitted in any form or by any means without\r
18the express written consent of Intel Corporation.\r
19\r
20================================================================================\r
21 INDEX\r
22================================================================================\r
23A. INTRODUCTION\r
24B. HOW TO BUILD\r
25C. HOW TO INTEGRATE INTO COREBOOT\r
26D. HOW TO INTEGRATE INTO SLIM BOOTLOADER\r
27\r
28================================================================================\r
29A. INTRODUCTION\r
30================================================================================\r
31This document provides instructions on how to build UEFI Payload and how to\r
32integrate it into coreboot or Slim Bootloader firmware.\r
33\r
34================================================================================\r
35B. HOW TO BUILD\r
36================================================================================\r
371. Run the below two commands in windows command prompt window:\r
38 > edksetup.bat\r
39\r
40 For pure X64 build:\r
41 > build -a X64 -p UefiPayloadPkg\UefiPayloadPkg.dsc -b <BuildType> -t <ToolChain>\r
42 -D BOOTLOADER=<Bootloader>\r
43\r
44 For X64 build with IA32 entry point:\r
45 > build -a IA32 -a X64 -p UefiPayloadPkg\UefiPayloadPkg.dsc -b <BuildType> -t <ToolChain>\r
46 -D BOOTLOADER=<Bootloader>\r
47\r
48 <BuildType> support 'DEBUG', 'RELEASE' and 'NOOPT'.\r
49 <ToolChain> is the EDK II build environment on your host. Tested with VS2015x86 toolchain.\r
50 <Bootloader> could be "SBL" for Slim Bootloader and "COREBOOT" for coreboot.\r
51\r
52 Refer to https://github.com/tianocore/tianocore.github.io/wiki/UDK2018-How-to-Build for\r
53 details about EDK II build steps.\r
54\r
55 NOTE: Pure 32bit UEFI payload support could be added if required later.\r
56\r
572. If build is successfully, the payload image (UEFIPAYLOAD.fd) will be generated inside the\r
58 folder of Build\UefiPayloadPkg.\r
59\r
60================================================================================\r
61C. HOW TO INTEGRATE INTO COREBOOT\r
62================================================================================\r
631. Copy the payload image (UEFIPAYLOAD.fd) into the top-level directory of Coreboot source tree.\r
642. Run "make menuconfig" in linux console to start Coreboot configuration surface.\r
653. In the Payload section,\r
66 1) Choose "Tianocore Payload" for the option of "Add a payload".\r
67 2) Update the path of payload image for the option of "Tianocore binary".\r
68 3) Choose "UEFIPayload" for the option of "Tianocore Payload".\r
694. If the graphics console is required in UEFI payload, enable framebuffer initialization in coreboot.\r
70 This could be done by enabling native graphics or using VGA BIOS option rom.\r
715. Build the coreboot firmware image.\r
726. If meet build error "E: Not a usable UEFI firmware volume.", please update Coreboot source tree\r
73 to the latest, or refer https://review.coreboot.org/c/coreboot/+/57296\r
74\r
75================================================================================\r
76D. HOW TO INTEGRATE INTO SLIM BOOTLOADER\r
77================================================================================\r
78Please refer https://slimbootloader.github.io/how-tos/integrate-multiple-payloads.html for below steps.\r
791. Copy the payload image (UEFIPAYLOAD.fd) into Slim Bootloader source at PayloadPkg\PayloadBins\UefiPld.fd\r
802. Update config data to make UEFI payload as default payload if required.\r
813. Build Slim Bootloader with UEFI payload:\r
82 BuildLoader.py build <Platform> -p "OsLoader.efi:LLDR:Lz4;UefiPld.fd:UEFI:Lzma"\r