Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
de423df
Does this work?
kuqin12 Mar 25, 2025
e4268a0
and i want to make it build
kuqin12 Mar 25, 2025
b0d1613
update feeds
kuqin12 Mar 25, 2025
2bb2772
update python
kuqin12 Mar 25, 2025
338024e
need to checkout ffa
kuqin12 Apr 3, 2025
c94f732
Merge branch 'feature/ffa_enablement' into install_env
kuqin12 Apr 3, 2025
b2af374
Merge branch 'feature/ffa_enablement' into install_env
kuqin12 Apr 3, 2025
b5f1109
pip module resolve
kuqin12 Apr 17, 2025
f339a3f
Fixing the rust build
kuqin12 Apr 17, 2025
175f9d2
rust change
kuqin12 Apr 17, 2025
cc6f67f
Revert "rust change"
kuqin12 Apr 17, 2025
b15a6ba
Revert "Fixing the rust build"
kuqin12 Apr 17, 2025
da84b0c
yml file update
kuqin12 Apr 17, 2025
ca03165
no ci build for rust
kuqin12 Apr 17, 2025
d1f86f0
sadfasldkh
kuqin12 Apr 17, 2025
1db6cbb
branch update
kuqin12 Apr 17, 2025
a3a3357
not hid package...
kuqin12 Apr 21, 2025
83bc905
Updated python scripts
kuqin12 Apr 21, 2025
fe475de
otherwise do nothing
kuqin12 Apr 21, 2025
fab2020
do it as is
kuqin12 Apr 21, 2025
669a7b4
somehow i think will nto work
kuqin12 Apr 21, 2025
8213d0b
how about now...
kuqin12 Apr 21, 2025
295f2d3
should be better...
kuqin12 Apr 21, 2025
db594fa
how about now?
kuqin12 Apr 21, 2025
1d0383a
ugh
kuqin12 Apr 21, 2025
50eb5b3
activate then?
kuqin12 Apr 21, 2025
ee9a7dc
just to see how we are doing?
kuqin12 Apr 21, 2025
9483dd3
i don;t know wtf is going wrong here...
kuqin12 Apr 22, 2025
517bcf4
Merge branch 'install_env' of https://github.com/kuqin12/mu_tiano_pla…
kuqin12 Apr 23, 2025
f9b8bee
Ffaex
kuqin12 Apr 23, 2025
41c7988
timer ex
kuqin12 Apr 24, 2025
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
12 changes: 8 additions & 4 deletions .azurepipelines/Platform-Build-GCC5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,12 @@ jobs:
BuildTarget: "DEBUG"
BuildExtraTag: ""
BuildExtraStep:
- script: sudo apt-get install -y libssl-dev clang llvm lld device-tree-compiler
- script: |
sudo apt-get update -qq
sudo apt-get install -y libssl-dev clang llvm lld device-tree-compiler
displayName: Install openssl
- template: Steps/RustSetupSteps.yml@mu_devops
Run: false
Run: true
RunFlags: "SHUTDOWN_AFTER_RUN=TRUE QEMU_HEADLESS=TRUE EMPTY_DRIVE=TRUE TEST_REGEX=*TestApp*.efi RUN_TESTS=TRUE"
BuildArtifactsBinary: |
**/QEMU_EFI.fd
Expand All @@ -53,10 +55,12 @@ jobs:
BuildTarget: "RELEASE"
BuildExtraTag: ""
BuildExtraStep:
- script: sudo apt-get install -y libssl-dev clang llvm lld device-tree-compiler
- script: |
sudo apt-get update -qq
sudo apt-get install -y libssl-dev clang llvm lld device-tree-compiler
displayName: Install openssl
- template: Steps/RustSetupSteps.yml@mu_devops
Run: false
Run: true
RunFlags: "SHUTDOWN_AFTER_RUN=TRUE QEMU_HEADLESS=TRUE EMPTY_DRIVE=TRUE TEST_REGEX=*TestApp*.efi RUN_TESTS=TRUE"
BuildArtifactsBinary: |
**/QEMU_EFI.fd
Expand Down
13 changes: 13 additions & 0 deletions .azurepipelines/Platform-Build-Job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ jobs:

variables:
- name: Run
${{ if EndsWith(item.Key, 'CODE_COVERAGE') }}:
value: false
${{ elseif or(eq(item.Value.Run, true), eq(parameters.os_type, 'Linux')) }}:
value: true
${{ else }}:
value: false

${{ if and(ne(parameters.container_image, ''), ne(item.Value.SelfHostAgent, true)) }}:
Expand Down Expand Up @@ -168,6 +173,14 @@ jobs:
itemPattern: '**/*.efi'
targetPath: 'Build/${{ item.Value.BuildPackage }}/${{ item.Value.BuildTarget }}_$(tool_chain_tag)/X64/'

# Run
- task: CmdLine@2
displayName: Run to Shell
inputs:
script: stuart_build -c ${{ item.Value.BuildFile }} TOOL_CHAIN_TAG=$(tool_chain_tag) TARGET=${{ item.Value.BuildTarget }} ${{ item.Value.BuildFlags }} ${{ item.Value.RunFlags }} --FlashOnly
condition: and(gt(variables.pkg_count, 0), succeeded())
timeoutInMinutes: ${{ parameters.run_timeout }}

# Copy build logs to the artifact staging directory
- template: Steps/CommonLogCopyAndPublish.yml@mu_devops
parameters:
Expand Down
1 change: 0 additions & 1 deletion .azurepipelines/Ubuntu-GCC5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ extends:
do_pr_eval: true
container_build: true
os_type: Linux
rust_build: true
extra_cargo_steps:
- script: pip install -r pip-requirements.txt --upgrade
displayName: Install and Upgrade pip Modules
Expand Down
1 change: 0 additions & 1 deletion .azurepipelines/Windows-VS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ extends:
do_non_ci_setup: true
do_pr_eval: true
os_type: Windows_NT
rust_build: true
extra_cargo_steps:
- script: pip install -r pip-requirements.txt --upgrade
displayName: Install and Upgrade pip Modules
Expand Down
2 changes: 1 addition & 1 deletion .pytool/CISettings.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def SetTargets(self, list_of_requested_target):

def GetActiveScopes(self):
''' return tuple containing scopes that should be active for this process '''
scopes = ("cibuild", "edk2-build", "host-based-test", "rust-ci")
scopes = ("cibuild", "edk2-build", "host-based-test")

self.ActualToolChainTag = shell_environment.GetBuildVars().GetValue("TOOL_CHAIN_TAG", "")

Expand Down
27 changes: 6 additions & 21 deletions Platforms/QemuSbsaPkg/PlatformBuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class CommonPlatform():
PackagesSupported = ("QemuSbsaPkg",)
ArchSupported = ("AARCH64",)
TargetsSupported = ("DEBUG", "RELEASE", "NOOPT")
Scopes = ('qemu', 'qemusbsa', 'edk2-build', 'cibuild', 'configdata', 'rust-ci')
Scopes = ('qemu', 'qemusbsa', 'edk2-build', 'cibuild', 'configdata')
WorkspaceRoot = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
PackagesPath = (
"Platforms",
Expand Down Expand Up @@ -98,6 +98,7 @@ def GetRequiredSubmodules(self):
RequiredSubmodule("Features/DEBUGGER", True),
RequiredSubmodule("Features/DFCI", True),
RequiredSubmodule("Features/CONFIG", True),
RequiredSubmodule("Features/FFA", True),
]

def SetArchitectures(self, list_of_requested_architectures):
Expand Down Expand Up @@ -321,9 +322,6 @@ def SetPlatformEnvAfterTarget(self):

return 0

def PlatformPreBuild(self):
return 0

#
# Copy a file into the designated region of target FD.
#
Expand Down Expand Up @@ -433,17 +431,6 @@ def PlatformPostBuild(self):
logging.error("Virtual environment not found")
return -1

outstream = StringIO()
# If we are not in a virtual environment, we can build the firmware directly.
ret = RunCmd("poetry", "env list --full-path", workingdir=self.env.GetValue("ARM_TFA_PATH"), outstream=outstream, environ=cached_enivron)
if ret != 0:
return ret

# Grab the last line, which is the virtual environment path.
logging.info(f"Virtual environment path: {outstream.getvalue().strip().split('\n')}")
virt_path = outstream.getvalue().strip().split('\n')[-1]
virt_cmd = "source " + virt_path + "/bin/activate"

# Second, put together the command to build the firmware.
cmd = "make"
if self.env.GetValue("TOOL_CHAIN_TAG") == "CLANGPDB":
Expand All @@ -468,13 +455,11 @@ def PlatformPostBuild(self):
temp_bash = os.path.join(self.env.GetValue("BUILD_OUTPUT_BASE"), "temp.sh")
with open(temp_bash, "w") as f:
f.write("#!/bin/bash\n")
f.write(f"{virt_cmd}\n")
f.write("poetry --verbose install\n")
f.write("poetry env activate\n")
f.write("poetry show\n")
f.write("pip3 install fdt\n") # why is this still needed?
f.write(f"{cmd} {args}\n")
if virtual_env != "":
# If we were in a virtual environment, we need to reactivate it after the build.
f.write(f"source {virtual_env}\n")
else:
f.write("deactivate\n")

# Fifth, run the temp bash file to build the firmware.
ret = RunCmd("bash", temp_bash, workingdir=self.env.GetValue("ARM_TFA_PATH"), environ=cached_enivron)
Expand Down
15 changes: 8 additions & 7 deletions Platforms/QemuSbsaPkg/QemuSbsaPkg.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,7 @@
PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
HobPrintLib|MdeModulePkg/Library/HobPrintLib/HobPrintLib.inf
ArmGenericTimerCounterLib|ArmPkg/Library/ArmGenericTimerPhyCounterLib/ArmGenericTimerPhyCounterLib.inf
TimerLib|FfaFeaturePkg/Library/ArmArchTimerLibEx/ArmArchTimerLibEx.inf

ArmMmuLib|ArmPkg/Library/StandaloneMmMmuLib/ArmMmuStandaloneMmLib.inf
StandaloneMmCoreEntryPoint|ArmPkg/Library/ArmStandaloneMmCoreEntryPoint/ArmStandaloneMmCoreEntryPoint.inf
Expand All @@ -515,7 +516,7 @@
RngLib|MdeModulePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf
SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
TimerLib|ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf
TimerLib|FfaFeaturePkg/Library/ArmArchTimerLibEx/ArmArchTimerLibEx.inf
PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
ArmGenericTimerCounterLib|ArmPkg/Library/ArmGenericTimerPhyCounterLib/ArmGenericTimerPhyCounterLib.inf

Expand Down Expand Up @@ -1140,7 +1141,7 @@
MsWheaPkg/MsWheaReport/Dxe/MsWheaReportDxe.inf
MsCorePkg/MuVarPolicyFoundationDxe/MuVarPolicyFoundationDxe.inf
MsCorePkg/AcpiRGRT/AcpiRgrt.inf
MsCorePkg/HelloWorldRustDxe/HelloWorldRustDxe.inf
# MsCorePkg/HelloWorldRustDxe/HelloWorldRustDxe.inf

MsGraphicsPkg/PrintScreenLogger/PrintScreenLogger.inf
SecurityPkg/Hash2DxeCrypto/Hash2DxeCrypto.inf
Expand Down Expand Up @@ -1241,7 +1242,7 @@
#
# HID Support
#
HidPkg/UefiHidDxe/UefiHidDxe.inf
# HidPkg/UefiHidDxe/UefiHidDxe.inf

#
# USB Support
Expand All @@ -1252,10 +1253,10 @@
MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
HidPkg/UsbHidDxe/UsbHidDxe.inf {
<LibraryClasses>
UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
}
# HidPkg/UsbHidDxe/UsbHidDxe.inf {
# <LibraryClasses>
# UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
# }

#
# TPM2 support
Expand Down
6 changes: 3 additions & 3 deletions Platforms/QemuSbsaPkg/QemuSbsaPkg.fdf
Original file line number Diff line number Diff line change
Expand Up @@ -411,12 +411,12 @@ READ_LOCK_STATUS = TRUE
INF MsWheaPkg/MsWheaReport/Dxe/MsWheaReportDxe.inf
INF MsCorePkg/MuVarPolicyFoundationDxe/MuVarPolicyFoundationDxe.inf
INF MsCorePkg/LoadOptionVariablePolicyDxe/LoadOptionVariablePolicyDxe.inf
INF HidPkg/UsbHidDxe/UsbHidDxe.inf
INF HidPkg/UefiHidDxe/UefiHidDxe.inf
# INF HidPkg/UsbHidDxe/UsbHidDxe.inf
# INF HidPkg/UefiHidDxe/UefiHidDxe.inf
INF MsGraphicsPkg/PrintScreenLogger/PrintScreenLogger.inf
INF MsCorePkg/AcpiRGRT/AcpiRgrt.inf
INF SecurityPkg/Hash2DxeCrypto/Hash2DxeCrypto.inf
INF MsCorePkg/HelloWorldRustDxe/HelloWorldRustDxe.inf
# INF MsCorePkg/HelloWorldRustDxe/HelloWorldRustDxe.inf
INF AdvLoggerPkg/Application/AdvancedLogDumper/AdvancedLogDumper.inf

#
Expand Down
2 changes: 2 additions & 0 deletions pip-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ xmlschema==3.4.2
regex==2024.9.11
pygount==1.8.0
pywin32==306; sys_platform == 'win32'
setuptools
poetry
Loading