mirror of
https://github.com/Dasharo/coreboot.git
synced 2026-06-13 10:16:48 -07:00
build.sh: protectli: add default logo
Add the custom Protectli logo to built binaries, replacing the black screen in the normal boot path and preserving it in recovery. Upstream-Status: Inappropriate [Dasharo downstream] Change-Id: I3ddbb41233403b89d2c8d823f0ae36abfaef8f0a Signed-off-by: Michał Kopeć <michal.kopec@3mdeb.com>
This commit is contained in:
committed by
Filip Lewiński
parent
831ace521e
commit
4f76f7fe17
@@ -145,6 +145,7 @@ function build_msi {
|
||||
function build_protectli_vault {
|
||||
DEFCONFIG="configs/config.protectli_${BOARD}"
|
||||
FW_VERSION=$(cat ${DEFCONFIG} | grep CONFIG_LOCALVERSION | cut -d '=' -f 2 | tr -d '"')
|
||||
LOGO="3rdparty/dasharo-blobs/protectli/bootsplash.bmp"
|
||||
|
||||
build_prep
|
||||
|
||||
@@ -153,6 +154,15 @@ function build_protectli_vault {
|
||||
build_start
|
||||
|
||||
cp build/coreboot.rom protectli_${BOARD}_${FW_VERSION}.rom
|
||||
|
||||
sdk_run /bin/bash -c "./build/cbfstool \
|
||||
protectli_${BOARD}_${FW_VERSION}.rom add \
|
||||
-r BOOTSPLASH \
|
||||
-f \"$LOGO\" \
|
||||
-n logo.bmp \
|
||||
-t raw \
|
||||
-c lzma"
|
||||
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "Result binary placed in $PWD/protectli_${BOARD}_${FW_VERSION}.rom"
|
||||
sha256sum protectli_${BOARD}_${FW_VERSION}.rom > protectli_${BOARD}_${FW_VERSION}.rom.sha256
|
||||
@@ -165,6 +175,7 @@ function build_protectli_vault {
|
||||
function build_v1x10 {
|
||||
DEFCONFIG="configs/config.protectli_vault_jsl_$1"
|
||||
FW_VERSION=$(cat ${DEFCONFIG} | grep CONFIG_LOCALVERSION | cut -d '=' -f 2 | tr -d '"')
|
||||
LOGO="3rdparty/dasharo-blobs/protectli/bootsplash.bmp"
|
||||
|
||||
build_prep
|
||||
|
||||
@@ -173,6 +184,15 @@ function build_v1x10 {
|
||||
build_start
|
||||
|
||||
cp build/coreboot.rom protectli_$1_${FW_VERSION}.rom
|
||||
|
||||
sdk_run /bin/bash -c "./build/cbfstool \
|
||||
./protectli_${1}_${FW_VERSION}.rom add \
|
||||
-r BOOTSPLASH \
|
||||
-f \"$LOGO\" \
|
||||
-n logo.bmp \
|
||||
-t raw \
|
||||
-c lzma"
|
||||
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "Result binary placed in $PWD/protectli_$1_${FW_VERSION}.rom"
|
||||
sha256sum protectli_$1_${FW_VERSION}.rom > protectli_$1_${FW_VERSION}.rom.sha256
|
||||
|
||||
Reference in New Issue
Block a user