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