mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-24 02:04:02 +02:00
roms: merge mkUbootRom() into build_uboot_roms()
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+3
-10
@@ -290,21 +290,14 @@ mkSeabiosRom() {
|
|||||||
|
|
||||||
build_uboot_roms()
|
build_uboot_roms()
|
||||||
{
|
{
|
||||||
tmprom="$(mkUbootRom "$cbrom" "fallback/payload")" || \
|
tmprom="$(mktemp -t coreboot_rom.XXXXXXXXXX)"
|
||||||
$err "build_uboot_roms $board: could not create tmprom"
|
|
||||||
newrom="$romdir/uboot_payload_${board}_${initmode}_$displaymode.rom"
|
newrom="$romdir/uboot_payload_${board}_${initmode}_$displaymode.rom"
|
||||||
|
x_ cp "$cbrom" "$tmprom"
|
||||||
|
cbfs "$tmprom" "$ubootelf" "fallback/payload"
|
||||||
x_ cprom "$tmprom" "$newrom"
|
x_ cprom "$tmprom" "$newrom"
|
||||||
x_ rm -f "$tmprom"
|
x_ rm -f "$tmprom"
|
||||||
}
|
}
|
||||||
|
|
||||||
# make a rom in /tmp/ and then print the path of that ROM
|
|
||||||
mkUbootRom() {
|
|
||||||
tmprom="$(mktemp -t coreboot_rom.XXXXXXXXXX)" # 1=cbrom, 2=cbfs path
|
|
||||||
x_ cp "$1" "$tmprom"
|
|
||||||
cbfs "$tmprom" "$ubootelf" "$2"
|
|
||||||
printf "%s\n" "$tmprom"
|
|
||||||
}
|
|
||||||
|
|
||||||
cprom()
|
cprom()
|
||||||
{
|
{
|
||||||
printf "Creating target image: %s\n" "$2"
|
printf "Creating target image: %s\n" "$2"
|
||||||
|
|||||||
Reference in New Issue
Block a user