@@ -46,7 +46,7 @@ class CommonPlatform():
4646 PackagesSupported = ("QemuSbsaPkg" ,)
4747 ArchSupported = ("AARCH64" ,)
4848 TargetsSupported = ("DEBUG" , "RELEASE" , "NOOPT" )
49- Scopes = ('qemu' , 'qemusbsa' , 'edk2-build' , 'cibuild' , 'configdata' , 'rust-ci' )
49+ Scopes = ('qemu' , 'qemusbsa' , 'edk2-build' , 'cibuild' , 'configdata' )
5050 WorkspaceRoot = os .path .dirname (os .path .dirname (os .path .dirname (os .path .abspath (__file__ ))))
5151 PackagesPath = (
5252 "Platforms" ,
@@ -98,6 +98,7 @@ def GetRequiredSubmodules(self):
9898 RequiredSubmodule ("Features/DEBUGGER" , True ),
9999 RequiredSubmodule ("Features/DFCI" , True ),
100100 RequiredSubmodule ("Features/CONFIG" , True ),
101+ RequiredSubmodule ("Features/FFA" , True ),
101102 ]
102103
103104 def SetArchitectures (self , list_of_requested_architectures ):
@@ -321,9 +322,6 @@ def SetPlatformEnvAfterTarget(self):
321322
322323 return 0
323324
324- def PlatformPreBuild (self ):
325- return 0
326-
327325 #
328326 # Copy a file into the designated region of target FD.
329327 #
@@ -433,17 +431,6 @@ def PlatformPostBuild(self):
433431 logging .error ("Virtual environment not found" )
434432 return - 1
435433
436- outstream = StringIO ()
437- # If we are not in a virtual environment, we can build the firmware directly.
438- ret = RunCmd ("poetry" , "env list --full-path" , workingdir = self .env .GetValue ("ARM_TFA_PATH" ), outstream = outstream , environ = cached_enivron )
439- if ret != 0 :
440- return ret
441-
442- # Grab the last line, which is the virtual environment path.
443- logging .info (f"Virtual environment path: { outstream .getvalue ().strip ().split ('\n ' )} " )
444- virt_path = outstream .getvalue ().strip ().split ('\n ' )[- 1 ]
445- virt_cmd = "source " + virt_path + "/bin/activate"
446-
447434 # Second, put together the command to build the firmware.
448435 cmd = "make"
449436 if self .env .GetValue ("TOOL_CHAIN_TAG" ) == "CLANGPDB" :
@@ -468,13 +455,11 @@ def PlatformPostBuild(self):
468455 temp_bash = os .path .join (self .env .GetValue ("BUILD_OUTPUT_BASE" ), "temp.sh" )
469456 with open (temp_bash , "w" ) as f :
470457 f .write ("#!/bin/bash\n " )
471- f .write (f"{ virt_cmd } \n " )
458+ f .write ("poetry --verbose install\n " )
459+ f .write ("poetry env activate\n " )
460+ f .write ("poetry show\n " )
461+ f .write ("pip3 install fdt\n " ) # why is this still needed?
472462 f .write (f"{ cmd } { args } \n " )
473- if virtual_env != "" :
474- # If we were in a virtual environment, we need to reactivate it after the build.
475- f .write (f"source { virtual_env } \n " )
476- else :
477- f .write ("deactivate\n " )
478463
479464 # Fifth, run the temp bash file to build the firmware.
480465 ret = RunCmd ("bash" , temp_bash , workingdir = self .env .GetValue ("ARM_TFA_PATH" ), environ = cached_enivron )
0 commit comments