]> Git Repo - J-u-boot.git/blobdiff - boot/image-pre-load.c
Merge tag 'u-boot-stm32-20241017' of https://source.denx.de/u-boot/custodians/u-boot-stm
[J-u-boot.git] / boot / image-pre-load.c
index 01b60030fcf9b4568ace2575f9e729b51d886689..cc19017404c83c64ac8d4e2857883b0e1dfcbcbf 100644 (file)
@@ -3,7 +3,6 @@
  * Copyright (C) 2021 Philippe Reynes <[email protected]>
  */
 
-#include <common.h>
 #include <asm/global_data.h>
 DECLARE_GLOBAL_DATA_PTR;
 #include <image.h>
@@ -33,6 +32,7 @@ static int image_pre_load_sig_setup(struct image_sig_info *info)
        const u32 *sig_size;
        int key_len;
        int node, ret = 0;
+       char *sig_info_path = NULL;
 
        if (!info) {
                log_err("ERROR: info is NULL for image pre-load sig check\n");
@@ -42,7 +42,11 @@ static int image_pre_load_sig_setup(struct image_sig_info *info)
 
        memset(info, 0, sizeof(*info));
 
-       node = fdt_path_offset(gd_fdt_blob(), IMAGE_PRE_LOAD_PATH);
+       sig_info_path = env_get("pre_load_sig_info_path");
+       if (!sig_info_path)
+               sig_info_path = IMAGE_PRE_LOAD_PATH;
+
+       node = fdt_path_offset(gd_fdt_blob(), sig_info_path);
        if (node < 0) {
                log_info("INFO: no info for image pre-load sig check\n");
                ret = 1;
This page took 0.027776 seconds and 4 git commands to generate.