mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
scripts: fix build_edk2 built marker creation
build_edk2 was leaving behind .built markers even when compilation failed. Gate creation of.built marker to occur only on successful build Modify build_edk2() to exit with error code when arm64 firmware artifact : CLOUDHV_EFI.fd is not produced Fixes #7608 Signed-off-by: Saravanan D <saravanand@crusoe.ai>
This commit is contained in:
@@ -38,10 +38,14 @@ build_edk2() {
|
|||||||
source edk2/edksetup.sh
|
source edk2/edksetup.sh
|
||||||
make -C edk2/BaseTools -j "$(nproc)"
|
make -C edk2/BaseTools -j "$(nproc)"
|
||||||
build -a AARCH64 -t GCC5 -p ArmVirtPkg/ArmVirtCloudHv.dsc -b RELEASE -n 0
|
build -a AARCH64 -t GCC5 -p ArmVirtPkg/ArmVirtCloudHv.dsc -b RELEASE -n 0
|
||||||
cp Build/ArmVirtCloudHv-AARCH64/RELEASE_GCC5/FV/CLOUDHV_EFI.fd "$WORKLOADS_DIR"
|
if cp Build/ArmVirtCloudHv-AARCH64/RELEASE_GCC5/FV/CLOUDHV_EFI.fd "$WORKLOADS_DIR"; then
|
||||||
touch "$EDK2_DIR"/.built
|
touch "$EDK2_DIR"/.built
|
||||||
touch "$EDK2_PLAT_DIR"/.built
|
touch "$EDK2_PLAT_DIR"/.built
|
||||||
touch "$ACPICA_DIR"/.built
|
touch "$ACPICA_DIR"/.built
|
||||||
|
else
|
||||||
|
echo "Failed to produce aarch64 UEFI firmware. Built markers not created."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
popd || exit
|
popd || exit
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user