Skip to content

Commit a7b7251

Browse files
committed
fix(os): select Python 3 before building OVMF tools
1 parent bdc5774 commit a7b7251

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

os/mkosi/components/ovmf/ovmf-build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ patch -d "$src" -p1 --forward --fuzz=0 < \
2626
patch -d "$src" -p1 --forward --fuzz=0 < \
2727
"$ROOT/os/yocto/layers/meta-dstack/recipes-core/dstack-ovmf/dstack-ovmf/0006-OvmfPkg-AmdSev-drop-embedded-grub.patch"
2828

29+
export PYTHON_COMMAND=python3
2930
make -s -C "$src/BaseTools" -j"${JOBS:-$(nproc)}"
3031
export WORKSPACE="$src" EDK_TOOLS_PATH="$src/BaseTools"
3132
export PATH="$EDK_TOOLS_PATH/BinWrappers/PosixLike:$PATH"
32-
export PYTHON_COMMAND=python3
3333
# Yocto disables EDK2 LTO for deterministic link ordering.
3434
sed -i -e 's/-flto/-fno-lto/g' -e 's/-DUSING_LTO//g' \
3535
"$src/BaseTools/Conf/tools_def.template"

0 commit comments

Comments
 (0)