Skip to content

Commit

Permalink
build.sh: correct FW_VERSION parsing for OptiPlex SeaBIOS/UEFI
Browse files Browse the repository at this point in the history
Signed-off-by: Filip Lewiński <[email protected]>
  • Loading branch information
filipleple committed Dec 12, 2024
1 parent f5e9a06 commit 4c08130
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,16 @@ SDKVER="2024-02-18_732134932b"


function build_optiplex_9010 {
local CONFIG=$1
local FW_VERSION=$2
DEFCONFIG=$1
FW_VERSION=$(cat ${DEFCONFIG} | grep CONFIG_LOCALVERSION | cut -d '=' -f 2 | tr -d '"')
[[ ${DEFCONFIG} != *"uefi"* ]] && FW_VERSION="${FW_VERSION}_seabios"

docker run --rm -t -u $UID -v $PWD:/home/coreboot/coreboot \
-v $HOME/.ssh:/home/coreboot/.ssh \
-w /home/coreboot/coreboot coreboot/coreboot-sdk:$SDKVER \
/bin/bash -c "make distclean"

cp "${CONFIG}" .config
cp "${DEFCONFIG}" .config

git submodule update --init --checkout

Expand Down Expand Up @@ -326,11 +327,11 @@ case "$CMD" in
;;
"optiplex_9010_uefi")
BOARD="optiplex_9010"
build_optiplex_9010 "configs/config.dell_optiplex_9010_sff_uefi_txt" "v0.1.1_uefi"
build_optiplex_9010 "configs/config.dell_optiplex_9010_sff_uefi_txt"
;;
"optiplex_9010_seabios")
BOARD="optiplex_9010"
build_optiplex_9010 "configs/config.dell_optiplex_9010_sff_txt" "v0.1.0-rc1_seabios"
build_optiplex_9010 "configs/config.dell_optiplex_9010_sff_txt"
;;
"qemu" | "QEMU" | "q35" | "Q35" )
build_qemu
Expand Down
2 changes: 1 addition & 1 deletion configs/config.dell_optiplex_9010_sff
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CONFIG_LOCALVERSION="v0.1.0"
CONFIG_LOCALVERSION="v0.1.0-rc1"
CONFIG_USE_OPTION_TABLE=y
CONFIG_VENDOR_DELL=y
CONFIG_ONBOARD_VGA_IS_PRIMARY=y
Expand Down
2 changes: 1 addition & 1 deletion configs/config.dell_optiplex_9010_sff_txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CONFIG_LOCALVERSION="v0.1.0"
CONFIG_LOCALVERSION="v0.1.0-rc1"
CONFIG_USE_OPTION_TABLE=y
CONFIG_VENDOR_DELL=y
CONFIG_ONBOARD_VGA_IS_PRIMARY=y
Expand Down

0 comments on commit 4c08130

Please sign in to comment.