Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/workflows/Build-Linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Build UEFI Firmware on Linux
on:
push:
branches:
- main
pull_request:
branches:
- '*'
env:
GCC_AARCH64_PREFIX: /usr/bin/aarch64-linux-gnu-
GCC_X64_PREFIX : /usr/bin/x86_64-linux-gnu-
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
target: [DEBUG, RELEASE]
arch: [X64, AARCH64]
#tools: [GCC, CLANGPDB]
tools: [CLANGPDB]
steps:
# Checkout the repository
- name: Checkout repository
uses: actions/checkout@v4

- name: py_ver
run: python3 --version
- name: py_install_pip
run: python3 -m pip install --upgrade pip
- name: pip_install
run: pip install -r pip_requirement_stable.txt
- name: apt_update
run: sudo apt-get update -y
- name: apt_install
run: sudo apt-get install -y acpica-tools mono-complete clang lld llvm binutils-x86-64-linux-gnu gcc-x86-64-linux-gnu binutils-aarch64-linux-gnu gcc-aarch64-linux-gnu
- name: stuart_setup
Comment thread
jaykrell marked this conversation as resolved.
run: stuart_setup -c MsvmPkg/PlatformBuild.py --verbose TOOL_CHAIN_TAG=${{matrix.tools}}
- name: stuart_update
run: stuart_update -c MsvmPkg/PlatformBuild.py --verbose TOOL_CHAIN_TAG=${{matrix.tools}}
- name: stuart_build
run: stuart_build -c MsvmPkg/PlatformBuild.py --verbose TOOL_CHAIN_TAG=${{matrix.tools}} TARGET=${{matrix.target}} BUILD_ARCH=${{matrix.arch}}
# Upload the MSVM.fd file, MAP/ directories directly as an artifact
- name: Upload Build Artifact
uses: actions/upload-artifact@v4
with:
name: ${{matrix.target}}-${{matrix.arch}}-${{matrix.tools}}-linux-artifacts
path: |
Build/Msvm${{matrix.arch}}/${{matrix.target}}_${{matrix.tools}}/FV/MSVM.fd
Build/Msvm${{matrix.arch}}/${{matrix.target}}_${{matrix.tools}}/MAP/
2 changes: 1 addition & 1 deletion .github/workflows/Platform-Build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
# Install Python dependencies from pip_requirement_stable.txt
- name: Install Python Dependencies
run: |
python -m pip install --upgrade pip
python3 -m pip install --upgrade pip
pip install -r pip_requirement_stable.txt

# Enable long paths in Git configuration (Windows)
Expand Down
8 changes: 4 additions & 4 deletions MsvmPkg/MsvmPkgX64.fdf
Original file line number Diff line number Diff line change
Expand Up @@ -354,22 +354,22 @@ FILE FREEFORM = PCD(gMsvmPkgTokenSpaceGuid.PcdBootFailIndicatorFile) {
#
[Rule.Common.SEC]
FILE SEC = $(NAMED_GUID) {
PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
PE32 PE32 Align=Auto $(INF_OUTPUT)/$(MODULE_NAME).efi
UI STRING ="$(MODULE_NAME)" Optional
VERSION STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
}

[Rule.Common.PEI_CORE]
FILE PEI_CORE = $(NAMED_GUID) {
PE32 PE32 Align=32 $(INF_OUTPUT)/$(MODULE_NAME).efi
PE32 PE32 Align=Auto $(INF_OUTPUT)/$(MODULE_NAME).efi
UI STRING ="$(MODULE_NAME)" Optional
VERSION STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
}

[Rule.Common.PEIM]
FILE PEIM = $(NAMED_GUID) {
PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
PE32 PE32 Align=32 $(INF_OUTPUT)/$(MODULE_NAME).efi
PE32 PE32 Align=Auto $(INF_OUTPUT)/$(MODULE_NAME).efi
UI STRING="$(MODULE_NAME)" Optional
VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
}
Expand All @@ -385,7 +385,7 @@ FILE FREEFORM = PCD(gMsvmPkgTokenSpaceGuid.PcdBootFailIndicatorFile) {
[Rule.Common.PEIM.PLATFORM_PEI]
FILE PEIM = $(NAMED_GUID) {
PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
PE32 PE32 Align=32 $(INF_OUTPUT)/$(MODULE_NAME).efi
PE32 PE32 Align=Auto $(INF_OUTPUT)/$(MODULE_NAME).efi
UI STRING="$(MODULE_NAME)" Optional
VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
}
Expand Down
Loading