summaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/efi/efi_autoexec.h
diff options
context:
space:
mode:
authorMichael Brown2023-02-02 00:54:19 +0100
committerMichael Brown2023-02-02 00:54:19 +0100
commit6f250be279311d461f78bb17eb8b5b70ad90dd0a (patch)
tree07c07d85835367e6844965aba420ccc6811a5ac3 /src/include/ipxe/efi/efi_autoexec.h
parent[realtek] Explicitly disable VLAN offload (diff)
downloadipxe-6f250be279311d461f78bb17eb8b5b70ad90dd0a.tar.gz
ipxe-6f250be279311d461f78bb17eb8b5b70ad90dd0a.tar.xz
ipxe-6f250be279311d461f78bb17eb8b5b70ad90dd0a.zip
[efi] Allow autoexec script to be located alongside iPXE binary
Try loading the autoexec.ipxe script first from the directory containing the iPXE binary (based on the relative file path provided to us via EFI_LOADED_IMAGE_PROTOCOL), then fall back to trying the root directory. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/efi/efi_autoexec.h')
-rw-r--r--src/include/ipxe/efi/efi_autoexec.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/ipxe/efi/efi_autoexec.h b/src/include/ipxe/efi/efi_autoexec.h
index 1f93b41c..08ddf583 100644
--- a/src/include/ipxe/efi/efi_autoexec.h
+++ b/src/include/ipxe/efi/efi_autoexec.h
@@ -11,6 +11,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
#include <ipxe/efi/efi.h>
-extern int efi_autoexec_load ( EFI_HANDLE device );
+extern int efi_autoexec_load ( EFI_HANDLE device,
+ EFI_DEVICE_PATH_PROTOCOL *path );
#endif /* _IPXE_EFI_AUTOEXEC_H */