bi_load: only add MODULEP on arches that have it defined
Do not attempt to add MODINFOMD_MODULEP to the kernel medatada on
arches that don't have it defined.
This fixes the build for arches different than amd64 after
7d3259775c
.
Sponsored by: Citrix Systems R&D
Reported by: lwhsu, arichardson
This commit is contained in:
parent
0fc8a79672
commit
97527e9c4f
@ -532,7 +532,9 @@ bi_load(char *args, vm_offset_t *modulep, vm_offset_t *kernendp, bool exit_bs)
|
||||
"device tree blob found!\n");
|
||||
#endif
|
||||
file_addmetadata(kfp, MODINFOMD_KERNEND, sizeof(kernend), &kernend);
|
||||
#ifdef MODINFOMD_MODULEP
|
||||
file_addmetadata(kfp, MODINFOMD_MODULEP, sizeof(module), &module);
|
||||
#endif
|
||||
file_addmetadata(kfp, MODINFOMD_FW_HANDLE, sizeof(ST), &ST);
|
||||
#ifdef LOADER_GELI_SUPPORT
|
||||
geli_export_key_metadata(kfp);
|
||||
|
Loading…
Reference in New Issue
Block a user