Skip to content

Commit b478a4a

Browse files
mkopecfilipleple
authored andcommitted
build.sh: protectli: add default logo
Change-Id: I3ddbb41233403b89d2c8d823f0ae36abfaef8f0a Signed-off-by: Michał Kopeć <michal.kopec@3mdeb.com>
1 parent 5c63d7f commit b478a4a

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

build.sh

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ function build_msi {
115115
function build_protectli_vault {
116116
DEFCONFIG="configs/config.protectli_${BOARD}"
117117
FW_VERSION=$(cat ${DEFCONFIG} | grep CONFIG_LOCALVERSION | cut -d '=' -f 2 | tr -d '"')
118+
LOGO="3rdparty/dasharo-blobs/protectli/bootsplash.bmp"
118119

119120
if [ ! -d 3rdparty/dasharo-blobs/protectli ]; then
120121
git submodule update --init --checkout
@@ -135,6 +136,18 @@ function build_protectli_vault {
135136
/bin/bash -c "make olddefconfig && make -j$(nproc)"
136137

137138
cp build/coreboot.rom protectli_${BOARD}_${FW_VERSION}.rom
139+
140+
docker run --rm -t -u $UID -v $PWD:/home/coreboot/coreboot \
141+
-v $HOME/.ssh:/home/coreboot/.ssh \
142+
-w /home/coreboot/coreboot coreboot/coreboot-sdk:$SDKVER \
143+
/bin/bash -c "./build/cbfstool \
144+
protectli_${BOARD}_${FW_VERSION}.rom add \
145+
-r BOOTSPLASH \
146+
-f "$LOGO" \
147+
-n logo.bmp \
148+
-t raw \
149+
-c lzma"
150+
138151
if [ $? -eq 0 ]; then
139152
echo "Result binary placed in $PWD/protectli_${BOARD}_${FW_VERSION}.rom"
140153
sha256sum protectli_${BOARD}_${FW_VERSION}.rom > protectli_${BOARD}_${FW_VERSION}.rom.sha256
@@ -147,6 +160,7 @@ function build_protectli_vault {
147160
function build_v1x10 {
148161
DEFCONFIG="configs/config.protectli_vault_jsl_$1"
149162
FW_VERSION=$(cat ${DEFCONFIG} | grep CONFIG_LOCALVERSION | cut -d '=' -f 2 | tr -d '"')
163+
LOGO="3rdparty/dasharo-blobs/protectli/bootsplash.bmp"
150164

151165
if [ ! -d 3rdparty/dasharo-blobs/protectli ]; then
152166
git submodule update --init --checkout
@@ -167,6 +181,18 @@ function build_v1x10 {
167181
/bin/bash -c "make olddefconfig && make -j$(nproc)"
168182

169183
cp build/coreboot.rom protectli_$1_${FW_VERSION}.rom
184+
185+
docker run --rm -t -u $UID -v $PWD:/home/coreboot/coreboot \
186+
-v $HOME/.ssh:/home/coreboot/.ssh \
187+
-w /home/coreboot/coreboot coreboot/coreboot-sdk:$SDKVER \
188+
/bin/bash -c "./build/cbfstool \
189+
./protectli_${1}_${FW_VERSION}.rom add \
190+
-r BOOTSPLASH \
191+
-f "$LOGO" \
192+
-n logo.bmp \
193+
-t raw \
194+
-c lzma"
195+
170196
if [ $? -eq 0 ]; then
171197
echo "Result binary placed in $PWD/protectli_$1_${FW_VERSION}.rom"
172198
sha256sum protectli_$1_${FW_VERSION}.rom > protectli_$1_${FW_VERSION}.rom.sha256

0 commit comments

Comments
 (0)