Revert "boot: pxe: support booting PE/COFF EFI applications"
PATCH 1/1 Revert "boot: pxe: support booting PE/COFF EFI applications"
This reverts commit 841abbc6d5610b3f9572df5a53d770206a930bde.
There has been assorted discussions of the functional changes and some regressions this patch introduces, so remove it for now until it can be reworked.
---
Cc: Aswin Murugan <[email protected]>
Cc: Sumit Singh Dhami <[email protected]>
Cc: Heinrich Schuchardt <[email protected]>
Cc: Ilias Apalodimas <[email protected]>
--- boot/pxe_utils.c | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-)
boot/pxe_utils.c +2 -18
@@ -9,7 +9,6 @@#include <bootflow.h> #include <command.h> #include <dm.h> -#include <efi_loader.h> #include <env.h> #include <extension_board.h> #include <image.h>
@@ -537,7 +536,6 @@ int label_boot(struct pxe_context *ctx, struct pxe_label *label)int zboot_argc =3 ;int len =0 ;ulong kernel_addr_r; -ulong kernel_size =0 ;void *buf;label_print (label);
@@ -557,8 +555,7 @@ int label_boot(struct pxe_context *ctx, struct pxe_label *label) }if (get_relfile_envaddr (ctx, label->kernel,"kernel_addr_r" , - (enum bootflow_img_t )IH_TYPE_KERNEL , - &kernel_size) + (enum bootflow_img_t )IH_TYPE_KERNEL ,NULL ) <0 ) {printf ("Skipping %s for failure retrieving kernel\n" , label->name);
@@ -803,21 +800,8 @@ int label_boot(struct pxe_context *ctx, struct pxe_label *label) bootm_argc =4 ; } -/* Run PE-COFF images as EFI applications */ -if (IS_ENABLED (CONFIG_CMD_BOOTEFI ) && -efi_check_pe (buf, kernel_size,NULL ) ==EFI_SUCCESS ) { -void *fdt =EFI_FDT_USE_INTERNAL ; -efi_status_t efi_ret; - -log_debug ("using bootefi\n" ); -if (bootm_argv[3 ]) - fdt =map_sysmem (hextoul (bootm_argv[3 ],NULL ),0 ); - - efi_ret =efi_binary_run (buf, kernel_size, fdt,NULL ,0 ); -if (efi_ret !=EFI_SUCCESS ) -log_err ("efi_binary_run failed (ret=%lu)\n" , efi_ret);/* Try bootm for legacy and FIT format image */ - }else if (genimg_get_format (buf) !=IMAGE_FORMAT_INVALID && +if (genimg_get_format (buf) !=IMAGE_FORMAT_INVALID &&IS_ENABLED (CONFIG_CMD_BOOTM )) {log_debug ("using bootm\n" );do_bootm (ctx->cmdtp,0 , bootm_argc, bootm_argv);
Signature · 1 line
2.43.0
Quoted 8 lines · Tom Rini
This reverts commit
841abbc6d5610b3f9572df5a53d770206a930bde.There has been assorted discussions of the functional changes and some regressions this patch introduces, so remove it for now until it can be reworked.
[...]
Applied to u-boot/main, thanks!
[1/1] Revert "boot: pxe: support booting PE/COFF EFI applications"
commit: 9391ec1c3f8c9c84a218bd08bb7cd931029deff4
Signature · 1 line
Tom