Compare commits
2 Commits
6721056ff4
...
f81190fdd1
Author | SHA1 | Date |
---|---|---|
Ani Sinha | f81190fdd1 | |
Ani Sinha | 9f026bfd96 |
|
@ -75,6 +75,9 @@
|
||||||
<listitem><para>An optional <literal>.ucode</literal> section with an initrd containing microcode, to
|
<listitem><para>An optional <literal>.ucode</literal> section with an initrd containing microcode, to
|
||||||
be handed to the kernel before any other initrd. This initrd must not be compressed.</para></listitem>
|
be handed to the kernel before any other initrd. This initrd must not be compressed.</para></listitem>
|
||||||
|
|
||||||
|
<listitem><para>An optional <literal>.fmw</literal> section with the firmware image.
|
||||||
|
</para></listitem>
|
||||||
|
|
||||||
<listitem><para>An optional <literal>.splash</literal> section with an image (in the Windows
|
<listitem><para>An optional <literal>.splash</literal> section with an image (in the Windows
|
||||||
<filename>.BMP</filename> format) to show on screen before invoking the kernel.</para></listitem>
|
<filename>.BMP</filename> format) to show on screen before invoking the kernel.</para></listitem>
|
||||||
|
|
||||||
|
@ -91,15 +94,6 @@
|
||||||
the same matching procedure. If a match is found, that <literal>.dtbauto</literal> section will be
|
the same matching procedure. If a match is found, that <literal>.dtbauto</literal> section will be
|
||||||
loaded and will override <varname>.dtb</varname> if present.</para></listitem>
|
loaded and will override <varname>.dtb</varname> if present.</para></listitem>
|
||||||
|
|
||||||
<listitem><para>Zero or more <literal>.efifwauto</literal> sections for the firmware image. It works
|
|
||||||
in many ways similar to <varname>.dtbauto</varname> sections. <filename>systemd-stub</filename>
|
|
||||||
will always use the first matching one. The match is performed by first selecting the most appropriate
|
|
||||||
entry in the <varname>.hwids</varname> section based on the hardware IDs supplied by SMBIOS (see below).
|
|
||||||
If a suitable entry is found, the <varname>compatible</varname> string from that entry will be used to
|
|
||||||
perform the matching procedure for firmware blobs in <varname>.efifwauto</varname> section. The first
|
|
||||||
matching firmware will be loaded.
|
|
||||||
</para></listitem>
|
|
||||||
|
|
||||||
<listitem><para>Zero or more <literal>.hwids</literal> sections with hardware IDs of the machines to
|
<listitem><para>Zero or more <literal>.hwids</literal> sections with hardware IDs of the machines to
|
||||||
match DeviceTrees. <filename>systemd-stub</filename> will use the SMBIOS data to calculate hardware IDs
|
match DeviceTrees. <filename>systemd-stub</filename> will use the SMBIOS data to calculate hardware IDs
|
||||||
of the machine (as per <ulink
|
of the machine (as per <ulink
|
||||||
|
|
|
@ -23,6 +23,6 @@ const char* const unified_sections[_UNIFIED_SECTION_MAX + 1] = {
|
||||||
[UNIFIED_SECTION_PROFILE] = ".profile",
|
[UNIFIED_SECTION_PROFILE] = ".profile",
|
||||||
[UNIFIED_SECTION_DTBAUTO] = ".dtbauto",
|
[UNIFIED_SECTION_DTBAUTO] = ".dtbauto",
|
||||||
[UNIFIED_SECTION_HWIDS] = ".hwids",
|
[UNIFIED_SECTION_HWIDS] = ".hwids",
|
||||||
[UNIFIED_SECTION_FIRMWARE] = ".efifwauto",
|
[UNIFIED_SECTION_FIRMWARE] = ".fmw",
|
||||||
NULL,
|
NULL,
|
||||||
};
|
};
|
||||||
|
|
|
@ -104,7 +104,7 @@ static int help(int argc, char *argv[], void *userdata) {
|
||||||
" --linux=PATH Path to Linux kernel image file %7$s .linux\n"
|
" --linux=PATH Path to Linux kernel image file %7$s .linux\n"
|
||||||
" --osrel=PATH Path to os-release file %7$s .osrel\n"
|
" --osrel=PATH Path to os-release file %7$s .osrel\n"
|
||||||
" --cmdline=PATH Path to file with kernel command line %7$s .cmdline\n"
|
" --cmdline=PATH Path to file with kernel command line %7$s .cmdline\n"
|
||||||
" --firmware=PATH Path to firmware image file %7$s .efifwauto\n"
|
" --firmware=PATH Path to firmware image file %7$s .fmw\n"
|
||||||
" --initrd=PATH Path to initrd image file %7$s .initrd\n"
|
" --initrd=PATH Path to initrd image file %7$s .initrd\n"
|
||||||
" --ucode=PATH Path to microcode image file %7$s .ucode\n"
|
" --ucode=PATH Path to microcode image file %7$s .ucode\n"
|
||||||
" --splash=PATH Path to splash bitmap file %7$s .splash\n"
|
" --splash=PATH Path to splash bitmap file %7$s .splash\n"
|
||||||
|
|
|
@ -242,7 +242,7 @@ class UkifyConfig:
|
||||||
efi_arch: str
|
efi_arch: str
|
||||||
hwids: Path
|
hwids: Path
|
||||||
initrd: list[Path]
|
initrd: list[Path]
|
||||||
firmware: list[Path]
|
firmware: Path
|
||||||
join_profiles: list[Path]
|
join_profiles: list[Path]
|
||||||
json: Union[Literal['pretty'], Literal['short'], Literal['off']]
|
json: Union[Literal['pretty'], Literal['short'], Literal['off']]
|
||||||
linux: Optional[Path]
|
linux: Optional[Path]
|
||||||
|
@ -363,22 +363,22 @@ class Uname:
|
||||||
|
|
||||||
|
|
||||||
DEFAULT_SECTIONS_TO_SHOW = {
|
DEFAULT_SECTIONS_TO_SHOW = {
|
||||||
'.linux': 'binary',
|
'.linux': 'binary',
|
||||||
'.initrd': 'binary',
|
'.initrd': 'binary',
|
||||||
'.ucode': 'binary',
|
'.fmw': 'binary',
|
||||||
'.splash': 'binary',
|
'.ucode': 'binary',
|
||||||
'.dtb': 'binary',
|
'.splash': 'binary',
|
||||||
'.dtbauto': 'binary',
|
'.dtb': 'binary',
|
||||||
'.hwids': 'binary',
|
'.dtbauto': 'binary',
|
||||||
'.efifwauto': 'binary',
|
'.hwids': 'binary',
|
||||||
'.cmdline': 'text',
|
'.cmdline': 'text',
|
||||||
'.osrel': 'text',
|
'.osrel': 'text',
|
||||||
'.uname': 'text',
|
'.uname': 'text',
|
||||||
'.pcrpkey': 'text',
|
'.pcrpkey': 'text',
|
||||||
'.pcrsig': 'text',
|
'.pcrsig': 'text',
|
||||||
'.sbat': 'text',
|
'.sbat': 'text',
|
||||||
'.sbom': 'binary',
|
'.sbom': 'binary',
|
||||||
'.profile': 'text',
|
'.profile': 'text',
|
||||||
} # fmt: skip
|
} # fmt: skip
|
||||||
|
|
||||||
|
|
||||||
|
@ -1206,17 +1206,17 @@ def make_uki(opts: UkifyConfig) -> None:
|
||||||
|
|
||||||
sections = [
|
sections = [
|
||||||
# name, content, measure?
|
# name, content, measure?
|
||||||
('.osrel', opts.os_release, True),
|
('.osrel', opts.os_release, True),
|
||||||
('.cmdline', opts.cmdline, True),
|
('.cmdline', opts.cmdline, True),
|
||||||
('.dtb', opts.devicetree, True),
|
('.dtb', opts.devicetree, True),
|
||||||
*(('.dtbauto', dtb, True) for dtb in opts.devicetree_auto),
|
*(('.dtbauto', dtb, True) for dtb in opts.devicetree_auto),
|
||||||
('.hwids', hwids, True),
|
('.hwids', hwids, True),
|
||||||
('.uname', opts.uname, True),
|
('.uname', opts.uname, True),
|
||||||
('.splash', opts.splash, True),
|
('.splash', opts.splash, True),
|
||||||
('.pcrpkey', pcrpkey, True),
|
('.pcrpkey', pcrpkey, True),
|
||||||
('.initrd', initrd, True),
|
('.initrd', initrd, True),
|
||||||
*(('.efifwauto', fw, True) for fw in opts.firmware),
|
('.fmw', opts.firmware, True),
|
||||||
('.ucode', opts.microcode, True),
|
('.ucode', opts.microcode, True),
|
||||||
] # fmt: skip
|
] # fmt: skip
|
||||||
|
|
||||||
# If we're building a PE profile binary, the ".profile" section has to be the first one.
|
# If we're building a PE profile binary, the ".profile" section has to be the first one.
|
||||||
|
@ -1272,7 +1272,7 @@ def make_uki(opts: UkifyConfig) -> None:
|
||||||
'.osrel',
|
'.osrel',
|
||||||
'.cmdline',
|
'.cmdline',
|
||||||
'.initrd',
|
'.initrd',
|
||||||
'.efifwauto',
|
'.fmw',
|
||||||
'.ucode',
|
'.ucode',
|
||||||
'.splash',
|
'.splash',
|
||||||
'.dtb',
|
'.dtb',
|
||||||
|
@ -1735,13 +1735,9 @@ CONFIG_ITEMS = [
|
||||||
),
|
),
|
||||||
ConfigItem(
|
ConfigItem(
|
||||||
'--firmware',
|
'--firmware',
|
||||||
metavar='PATH',
|
|
||||||
type=Path,
|
type=Path,
|
||||||
action='append',
|
help='firmware file [.fmw section]',
|
||||||
default=[],
|
|
||||||
help='firmware file [.efifwauto section]',
|
|
||||||
config_key='UKI/Firmware',
|
config_key='UKI/Firmware',
|
||||||
config_push=ConfigItem.config_list_prepend,
|
|
||||||
),
|
),
|
||||||
ConfigItem(
|
ConfigItem(
|
||||||
'--microcode',
|
'--microcode',
|
||||||
|
|
Loading…
Reference in New Issue