@@ -613,26 +613,23 @@ def FlashRomImage(self) -> int:
613
613
# Methods that will be overridden by child class
614
614
# -----------------------------------------------------------------------
615
615
616
- @classmethod
617
- def PlatformPreBuild (self : "UefiBuilder" ) -> int :
616
+ def PlatformPreBuild (self ) -> int :
618
617
"""Perform Platform PreBuild Steps.
619
618
620
619
Returns:
621
620
(int): 0 on success, 1 on failure
622
621
"""
623
622
return 0
624
623
625
- @classmethod
626
- def PlatformPostBuild (self : "UefiBuilder" ) -> int :
624
+ def PlatformPostBuild (self ) -> int :
627
625
"""Perform Platform PostBuild Steps.
628
626
629
627
Returns:
630
628
(int): 0 on success, 1 on failure
631
629
"""
632
630
return 0
633
631
634
- @classmethod
635
- def SetPlatformEnv (self : "UefiBuilder" ) -> int :
632
+ def SetPlatformEnv (self ) -> int :
636
633
"""Set and read Platform Env variables.
637
634
638
635
This is performed before platform files like the DSC and FDF have been parsed.
@@ -647,17 +644,15 @@ def SetPlatformEnv(self: "UefiBuilder") -> int:
647
644
"""
648
645
return 0
649
646
650
- @classmethod
651
- def SetPlatformEnvAfterTarget (self : "UefiBuilder" ) -> int :
647
+ def SetPlatformEnvAfterTarget (self ) -> int :
652
648
"""Set and read Platform Env variables after platform files have been parsed.
653
649
654
650
Returns:
655
651
(int): 0 on success, 1 on failure
656
652
"""
657
653
return 0
658
654
659
- @classmethod
660
- def SetPlatformDefaultEnv (self : "UefiBuilder" ) -> list [namedtuple ]:
655
+ def SetPlatformDefaultEnv (self ) -> list [namedtuple ]:
661
656
"""Sets platform default environment variables by returning them as a list.
662
657
663
658
Variables returned from this method are printed to the command line when
@@ -674,8 +669,7 @@ def SetPlatformDefaultEnv(self: "UefiBuilder") -> list[namedtuple]:
674
669
"""
675
670
return []
676
671
677
- @classmethod
678
- def PlatformBuildRom (self : "UefiBuilder" ) -> int :
672
+ def PlatformBuildRom (self ) -> int :
679
673
"""Build the platform Rom.
680
674
681
675
!!! tip
@@ -684,17 +678,15 @@ def PlatformBuildRom(self: "UefiBuilder") -> int:
684
678
"""
685
679
return 0
686
680
687
- @classmethod
688
- def PlatformFlashImage (self : "UefiBuilder" ) -> int :
681
+ def PlatformFlashImage (self ) -> int :
689
682
"""Flashes the image to the system.
690
683
691
684
Returns:
692
685
(int): 0 on success, 1 on failure
693
686
"""
694
687
return 0
695
688
696
- @classmethod
697
- def PlatformGatedBuildShouldHappen (self : "UefiBuilder" ) -> bool :
689
+ def PlatformGatedBuildShouldHappen (self ) -> bool :
698
690
"""Specifies if a gated build should happen.
699
691
700
692
Returns:
0 commit comments