def GetRequiredSubmodules(self):
        ''' return iterable containing RequiredSubmodule objects.
        If no RequiredSubmodules return an empty iterable
        '''
        rs = []
        # intentionally declare this one with recursive false to avoid overhead
        rs.append(
            RequiredSubmodule("CryptoPkg/Library/OpensslLib/openssl", False))

        # To avoid maintenance of this file for every new submodule
        # lets just parse the .gitmodules and add each if not already in list.
        # The GetRequiredSubmodules is designed to allow a build to optimize
        # the desired submodules but it isn't necessary for this repository.
        result = io.StringIO()
        ret = RunCmd("git",
                     "config --file .gitmodules --get-regexp path",
                     workingdir=self.GetWorkspaceRoot(),
                     outstream=result)
        # Cmd output is expected to look like:
        # submodule.CryptoPkg/Library/OpensslLib/openssl.path CryptoPkg/Library/OpensslLib/openssl
        # submodule.SoftFloat.path ArmPkg/Library/ArmSoftFloatLib/berkeley-softfloat-3
        if ret == 0:
            for line in result.getvalue().splitlines():
                _, _, path = line.partition(" ")
                if path is not None:
                    if path not in [x.path for x in rs]:
                        rs.append(RequiredSubmodule(
                            path,
                            True))  # add it with recursive since we don't know
        return rs
Esempio n. 2
0
 def GetRequiredSubmodules(self):
     ''' return iterable containing RequiredSubmodule objects.
     If no RequiredSubmodules return an empty iterable
     '''
     rs=[]
     rs.append(RequiredSubmodule(
         "ArmPkg/Library/ArmSoftFloatLib/berkeley-softfloat-3", False))
     rs.append(RequiredSubmodule(
         "CryptoPkg/Library/OpensslLib/openssl", False))
     return rs
Esempio n. 3
0
 def GetRequiredSubmodules(self):
     ''' return iterable containing RequiredSubmodule objects.
     If no RequiredSubmodules return an empty iterable
     '''
     rs = []
     rs.append(RequiredSubmodule(
         "UnitTestFrameworkPkg/Library/CmockaLib/cmocka", False))
     rs.append(RequiredSubmodule(
         "MdeModulePkg/Universal/RegularExpressionDxe/oniguruma", False))
     rs.append(RequiredSubmodule(
         "MdeModulePkg/Library/BrotliCustomDecompressLib/brotli", False))
     rs.append(RequiredSubmodule(
         "BaseTools/Source/C/BrotliCompress/brotli", False))
     return rs
Esempio n. 4
0
 def GetRequiredSubmodules(self):
     ''' return iterable containing RequiredSubmodule objects.
     If no RequiredSubmodules return an empty iterable
     '''
     return [
         RequiredSubmodule("CryptoPkg/Library/OpensslLib/openssl", False)
     ]
Esempio n. 5
0
 def GetRequiredSubmodules(self):
     ''' return iterable containing RequiredSubmodule objects.
     If no RequiredSubmodules return an empty iterable
     '''
     rs = []
     rs.append(RequiredSubmodule(
         "Silicon/RISC-V/ProcessorPkg/Library/RiscVOpensbiLib/opensbi", False))
     return rs
Esempio n. 6
0
 def GetRequiredSubmodules(self):
     ''' return iterable containing RequiredSubmodule objects.
     If no RequiredSubmodules return an empty iterable
     '''
     rs = []
     rs.append(
         RequiredSubmodule(
             "ArmPkg/Library/ArmSoftFloatLib/berkeley-softfloat-3", False))
     rs.append(
         RequiredSubmodule("CryptoPkg/Library/OpensslLib/openssl", False))
     rs.append(
         RequiredSubmodule("UnitTestFrameworkPkg/Library/CmockaLib/cmocka",
                           False))
     rs.append(
         RequiredSubmodule(
             "MdeModulePkg/Universal/RegularExpressionDxe/oniguruma",
             False))
     rs.append(
         RequiredSubmodule(
             "MdeModulePkg/Library/BrotliCustomDecompressLib/brotli",
             False))
     rs.append(
         RequiredSubmodule("BaseTools/Source/C/BrotliCompress/brotli",
                           False))
     rs.append(
         RequiredSubmodule("RedfishPkg/Library/JsonLib/jansson", False))
     return rs
Esempio n. 7
0
 def GetRequiredSubmodules(self):
     ''' return iterable containing RequiredSubmodule objects.
     If no RequiredSubmodules return an empty iterable
     '''
     rs = []
     rs.append(
         RequiredSubmodule(
             "ArmPkg/Library/ArmSoftFloatLib/berkeley-softfloat-3", False))
     rs.append(
         RequiredSubmodule("CryptoPkg/Library/OpensslLib/openssl", False))
     rs.append(
         RequiredSubmodule("UnitTestFrameworkPkg/Library/CmockaLib/cmocka",
                           False))
     rs.append(
         RequiredSubmodule(
             "MdeModulePkg/Universal/RegularExpressionDxe/oniguruma",
             False))
     return rs