0
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2025-10-28 01:08:21 +00:00
Files
openwrt/package/boot/uboot-tools/patches/014-tools-fit_check_sign-no-decompress.patch
Stefan Kalscheuer cf498325f1 uboot-tools: update to version 2025.10
Update package to the latest stable version.
All patches automatically refreshed.

Signed-off-by: Stefan Kalscheuer <stefan@stklcode.de>
Link: https://github.com/openwrt/openwrt/pull/20379
Signed-off-by: Nick Hainke <vincent@systemli.org>
2025-10-11 21:50:41 +02:00

41 lines
1.1 KiB
Diff

--- a/boot/bootm.c
+++ b/boot/bootm.c
@@ -1204,10 +1204,6 @@ static int bootm_host_load_image(const v
ulong data, len;
struct bootm_headers images;
int noffset;
- ulong load_end, buf_size;
- uint8_t image_type;
- uint8_t image_comp;
- void *load_buf;
int ret;
fit_uname_config = fdt_get_name(fit, cfg_noffset, NULL);
@@ -1219,26 +1215,6 @@ static int bootm_host_load_image(const v
FIT_LOAD_IGNORED, &data, &len);
if (noffset < 0)
return noffset;
- if (fit_image_get_type(fit, noffset, &image_type)) {
- puts("Can't get image type!\n");
- return -EINVAL;
- }
-
- if (fit_image_get_comp(fit, noffset, &image_comp))
- image_comp = IH_COMP_NONE;
-
- /* Allow the image to expand by a factor of 4, should be safe */
- buf_size = (1 << 20) + len * 4;
- load_buf = malloc(buf_size);
- ret = image_decomp(image_comp, 0, data, image_type, load_buf,
- (void *)data, len, buf_size, &load_end);
- free(load_buf);
-
- if (ret) {
- ret = handle_decomp_error(image_comp, load_end - 0, buf_size, ret);
- if (ret != BOOTM_ERR_UNIMPLEMENTED)
- return ret;
- }
return 0;
}