Cat generator
cat_generator ¶
Script to generate Cat files for capsule update.
Based on a supplied inf file and uses the winsdk and command line tool Inf2Cat.exe
CatGenerator ¶
A cat file generator.
Attributes:
| Name | Type | Description |
|---|---|---|
arch |
str
|
a supported architecture |
os |
str
|
a supported os |
__init__ ¶
__init__(arch: str, os: str) -> CatGenerator
Inits a Cat Generator.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
arch
|
str
|
a supported arch |
required |
os
|
str
|
a supported os |
required |
MakeCat ¶
MakeCat(
OutputCatFile: str,
PathToInf2CatTool: Optional[str] = None,
) -> int
Generates a cat file to the outputcatfile directory.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
OutputCatFile
|
str
|
Where to place the output cat file. |
required |
PathToInf2CatTool
|
`str`
|
path to Inf2CatTool if known. |
None
|
Raises:
| Type | Description |
|---|---|
Exception
|
Invalid Inf2CatTool path or unable to find it. |
Exception
|
Inf2CatTool failed |
Exception
|
Cat file not found, but tool executed successfully |