edk2toollib/uefi/edk2/path_utilities_test.py
def _make_edk2_package_helper(self, path: str, packagename: str, extension_case_lower: bool = True) -> str:
        ''' simple internal helper to make an ed2 package as follows:

        path/
          packagename/
            packagename.dec
            module1/
              module1.inf
            module2/
              module2.inf
              X64/
                TestFile.c

        return the path to the new package
        '''
        pkgfolder = os.path.join(path, packagename)
        os.makedirs(pkgfolder, exist_ok=True)
        pn = packagename + (".dec" if extension_case_lower else ".DEC")
        self._make_file_helper(pkgfolder, pn)
        self._make_edk2_module_helper(pkgfolder, "module1", extension_case_lower=extension_case_lower)
        p2 = self._make_edk2_module_helper(pkgfolder, "module2", extension_case_lower=extension_case_lower)
        p3 = os.path.join(p2, "X64")
        os.makedirs(p3)
        self._make_file_helper(p3, "TestFile.c")
        return pkgfolder
 simple internal helper to make an ed2 package as follows:

        path/
          packagename/
            packagename.dec
            module1/
              module1.inf
            module2/
              module2.inf
              X64/
                TestFile.c

        return the path to the new package
        


return the path to the new package
return the path to the new package
def _make_edk2_package_helper(self, path: str, packagename: str, extension_case_lower: bool = True) -> str:
        pkgfolder = os.path.join(path, packagename)
        os.makedirs(pkgfolder, exist_ok=True)
        pn = packagename + (".dec" if extension_case_lower else ".DEC")
        self._make_file_helper(pkgfolder, pn)
        self._make_edk2_module_helper(pkgfolder, "module1", extension_case_lower=extension_case_lower)
        p2 = self._make_edk2_module_helper(pkgfolder, "module2", extension_case_lower=extension_case_lower)
        p3 = os.path.join(p2, "X64")
        os.makedirs(p3)
        self._make_file_helper(p3, "TestFile.c")
        return pkgfolder
def _make_edk2_package_helper ( self , path : str , packagename : str , extension_case_lower : bool = True ) -> str : pkgfolder = os . path . join ( path , packagename ) os . makedirs ( pkgfolder , exist_ok = True ) pn = packagename + ( ".dec" if extension_case_lower else ".DEC" ) self . _make_file_helper ( pkgfolder , pn ) self . _make_edk2_module_helper ( pkgfolder , "module1" , extension_case_lower = extension_case_lower ) p2 = self . _make_edk2_module_helper ( pkgfolder , "module2" , extension_case_lower = extension_case_lower ) p3 = os . path . join ( p2 , "X64" ) os . makedirs ( p3 ) self . _make_file_helper ( p3 , "TestFile.c" ) return pkgfolder
simple internal helper to make an ed2 package as follows:
path
packagename
packagename.dec
module1
module1.inf
module2
module2.inf
X64
TestFile.c
simple internal helper to make an ed2 package as follows : path packagename packagename . dec module1 module1 . inf module2 module2 . inf X64 TestFile . c
''' simple internal helper to make an ed2 package as follows:

        path/
          packagename/
            packagename.dec
            module1/
              module1.inf
            module2/
              module2.inf
              X64/
                TestFile.c

        return the path to the new package
        '''
self
path
str
packagename
str
extension_case_lower
bool