docs/build: Add U-Boot examples

Add some lbmk invocation examples for U-Boot. Try to keep it light in
the section that tells people to just use "build boot roms" instead,
but have more detail in the payload-specific section.

Signed-off-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
hslick-master
Alper Nebi Yasak 2022-12-17 23:21:53 +03:00 committed by Leah Rowe
parent 1eda00be69
commit ec46a0c5f1
1 changed files with 15 additions and 0 deletions

View File

@ -147,6 +147,8 @@ If you wish to build payloads, you can also do that. For example:
./build payload seabios
./build payload u-boot qemu_x86_12mb
Previous steps will be performed automatically. However, you can *still* run
individual parts of the build system manually, if you choose. This may be
beneficial when you're making changes, and you wish to test a specific part of
@ -202,6 +204,8 @@ Example of downloading an individual module:
./download flashrom
./download u-boot
Third, build all of the modules:
--------------------------------
@ -260,6 +264,17 @@ Example of building specific payloads:
./build payload seabios
Each board has its own U-Boot build configuration in `lbmk` under
`resources/u-boot`. To build U-Boot payloads, you need to specify the
target board and maybe a cross compiler for its CPU architecture. These
are handled automatically when building ROM images, but for example:
./build payload u-boot qemu_x86_12mb # on x86 hosts
CROSS_COMPILE=aarch64-linux-gnu- ./build payload u-boot gru_kevin
CROSS_COMPILE=arm-linux-gnueabi- ./build payload u-boot veyron_speedy
The build-payload command is is a prerequsite for building ROM images.
Fifth, build the ROMs!