From bc965eab6b85d8bb53ed71ce8824460765e61d46 Mon Sep 17 00:00:00 2001 From: Maciej Pijanowski Date: Fri, 13 Oct 2023 11:31:26 +0200 Subject: [PATCH 1/3] OvmfPkg: enable all recent Dasharo System Feautures This will allow us testing easily more menus in QEMU Signed-off-by: Maciej Pijanowski --- OvmfPkg/OvmfPkgX64.dsc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/OvmfPkg/OvmfPkgX64.dsc b/OvmfPkg/OvmfPkgX64.dsc index 8d99d47a62..f844dea446 100644 --- a/OvmfPkg/OvmfPkgX64.dsc +++ b/OvmfPkg/OvmfPkgX64.dsc @@ -573,7 +573,16 @@ gDasharoSystemFeaturesTokenSpaceGuid.PcdDefaultNetworkBootEnable|FALSE gDasharoSystemFeaturesTokenSpaceGuid.PcdDasharoEnterprise|TRUE gDasharoSystemFeaturesTokenSpaceGuid.PcdShowIommuOptions|TRUE + gDasharoSystemFeaturesTokenSpaceGuid.PcdShowOcWdtOptions|TRUE + gDasharoSystemFeaturesTokenSpaceGuid.PcdPowerMenuShowSleepType|TRUE + gDasharoSystemFeaturesTokenSpaceGuid.PcdShowPciMenu|TRUE + gDasharoSystemFeaturesTokenSpaceGuid.PcdPciMenuShowResizeableBars|TRUE + gDasharoSystemFeaturesTokenSpaceGuid.PcdPowerMenuShowBatteryThresholds|TRUE + gDasharoSystemFeaturesTokenSpaceGuid.PcdShowMemoryMenu|TRUE + gDasharoSystemFeaturesTokenSpaceGuid.PcdShowSerialPortMenu|TRUE gDasharoSystemFeaturesTokenSpaceGuid.PcdSerialRedirectionDefaultState|TRUE + gDasharoSystemFeaturesTokenSpaceGuid.PcdSecurityShowWiFiBtOption|TRUE + gDasharoSystemFeaturesTokenSpaceGuid.PcdSecurityShowCameraOption|TRUE ################################################################################ # From 1ed355de6264f81c04cb704f035383dd90b9363d Mon Sep 17 00:00:00 2001 From: Maciej Pijanowski Date: Fri, 13 Oct 2023 11:38:36 +0200 Subject: [PATCH 2/3] .github/workflows/build.yml: create release on tag Signed-off-by: Maciej Pijanowski --- .github/workflows/build.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index db8dc2f21a..9303e45f19 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,6 +4,8 @@ on: push: branches: - dasharo + tags: + - 'dasharo_qemu_v*' pull_request: branches: - dasharo @@ -59,3 +61,13 @@ jobs: Build/OvmfX64/RELEASE_GCC5/FV/OVMF_VARS.fd Build/OvmfX64/DEBUG_GCC5/FV/OVMF_CODE.fd Build/OvmfX64/DEBUG_GCC5/FV/OVMF_VARS.fd + + - name: Create GitHub Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.event.ref, 'refs/tags/dasharo_qemu') + with: + files: | + Build/OvmfX64/RELEASE_GCC5/FV/OVMF_CODE.fd + Build/OvmfX64/RELEASE_GCC5/FV/OVMF_VARS.fd + Build/OvmfX64/DEBUG_GCC5/FV/OVMF_CODE.fd + Build/OvmfX64/DEBUG_GCC5/FV/OVMF_VARS.fd From ff2b01cde6b6e7d1ca0d17d6cf4f72ecce3aaa8b Mon Sep 17 00:00:00 2001 From: Maciej Pijanowski Date: Fri, 13 Oct 2023 12:28:33 +0200 Subject: [PATCH 3/3] .github/workflows/build.yml: unique names for artifacts Signed-off-by: Maciej Pijanowski --- .github/workflows/build.yml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9303e45f19..be70552707 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -38,6 +38,8 @@ jobs: run: | if [ -f "Build/OvmfX64/RELEASE_GCC5/FV/OVMF_CODE.fd" ] && [ -f "Build/OvmfX64/RELEASE_GCC5/FV/OVMF_VARS.fd" ]; then echo "RELEASE build successful. OVMF firmware image files found." + cp Build/OvmfX64/RELEASE_GCC5/FV/OVMF_CODE.fd OVMF_CODE_RELEASE.fd + cp Build/OvmfX64/RELEASE_GCC5/FV/OVMF_VARS.fd OVMF_VARS_RELEASE.fd else echo "RELEASE build failed. OVMF firmware image files not found." exit 1 @@ -47,6 +49,8 @@ jobs: run: | if [ -f "Build/OvmfX64/DEBUG_GCC5/FV/OVMF_CODE.fd" ] && [ -f "Build/OvmfX64/DEBUG_GCC5/FV/OVMF_VARS.fd" ]; then echo "DEBUG build successful. OVMF firmware image files found." + cp Build/OvmfX64/DEBUG_GCC5/FV/OVMF_CODE.fd OVMF_CODE_DEBUG.fd + cp Build/OvmfX64/DEBUG_GCC5/FV/OVMF_VARS.fd OVMF_VARS_DEBUG.fd else echo "DEBUG build failed. OVMF firmware image files not found." exit 1 @@ -57,17 +61,17 @@ jobs: with: name: ovmf-artifacts # Name for the artifact path: | - Build/OvmfX64/RELEASE_GCC5/FV/OVMF_CODE.fd - Build/OvmfX64/RELEASE_GCC5/FV/OVMF_VARS.fd - Build/OvmfX64/DEBUG_GCC5/FV/OVMF_CODE.fd - Build/OvmfX64/DEBUG_GCC5/FV/OVMF_VARS.fd + OVMF_CODE_RELEASE.fd + OVMF_VARS_RELEASE.fd + OVMF_CODE_DEBUG.fd + OVMF_VARS_DEBUG.fd - name: Create GitHub Release uses: softprops/action-gh-release@v1 if: startsWith(github.event.ref, 'refs/tags/dasharo_qemu') with: files: | - Build/OvmfX64/RELEASE_GCC5/FV/OVMF_CODE.fd - Build/OvmfX64/RELEASE_GCC5/FV/OVMF_VARS.fd - Build/OvmfX64/DEBUG_GCC5/FV/OVMF_CODE.fd - Build/OvmfX64/DEBUG_GCC5/FV/OVMF_VARS.fd + OVMF_CODE_RELEASE.fd + OVMF_VARS_RELEASE.fd + OVMF_CODE_DEBUG.fd + OVMF_VARS_DEBUG.fd