Inf generator
inf_generator ¶
Module to generate inf files for capsule update based on an INF template.
Uses supplied information such as Name, Version, ESRT Guid, Rollback, etc.
InfSection ¶
InfGenerator ¶
An object that generates an INF file from data it is initialized with.
Manufacturer
property
writable
¶
Manufacturer: str
Getter for the Manufacturer Attribute.
NOTE: Returns Provider attribute if Manufacturer attribute is not set.
Date
property
writable
¶
Date: str
Getter for the date attribute.
Formats to a m/d/y str before returning
IntegrityFilename
property
writable
¶
IntegrityFilename: Optional[str]
Getter for the Integrity File Name.
Transforms value into string.
__init__ ¶
__init__(
name_string: str,
provider: str,
esrt_guid: str,
arch: str,
description_string: str,
version_string: str,
version_hex: str,
) -> None
Inits the object with data necessary to generate an INF file.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name_string |
str
|
Name |
required |
provider |
str
|
Provider |
required |
esrt_guid |
str
|
stringified guid, will be converted |
required |
arch |
str
|
architecture |
required |
description_string |
str
|
description |
required |
version_string |
str
|
version |
required |
version_hex |
int
|
version |
required |
MakeInf ¶
MakeInf(
OutputInfFilePath: os.PathLike,
FirmwareBinFileName: str,
Rollback: bool = False,
) -> int
Generates the INF with provided information.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
OutputInfFilePath |
PathLike
|
Path to existing file |
required |
FirmwareBinFileName |
str
|
File Name |
required |
Rollback |
|
False
|