Skip to content

Commit

Permalink
build.sh: build_optiplex_9010: move fw flavor left of version
Browse files Browse the repository at this point in the history
Signed-off-by: Filip Lewiński <[email protected]>
  • Loading branch information
filipleple committed Jan 31, 2025
1 parent cbc048d commit 5010ba4
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,18 @@ SDKVER="2024-02-18_732134932b"

function build_optiplex_9010 {
DEFCONFIG=$1
# Determine FW flavor first (uefi or seabios)
if [[ ${DEFCONFIG} == *"uefi"* ]]; then
FW_FLAVOR="uefi"
else
FW_FLAVOR="seabios"
fi

# Get FW version
FW_VERSION=$(cat ${DEFCONFIG} | grep CONFIG_LOCALVERSION | cut -d '=' -f 2 | tr -d '"')
[[ ${DEFCONFIG} != *"uefi"* ]] && FW_VERSION="${FW_VERSION}_seabios"

# Combine FW flavor with version
FW_VERSION="${FW_FLAVOR}_${FW_VERSION}"

docker run --rm -t -u $UID -v $PWD:/home/coreboot/coreboot \
-v $HOME/.ssh:/home/coreboot/.ssh \
Expand Down

0 comments on commit 5010ba4

Please sign in to comment.