diff options
author | Tom Rini | 2022-01-09 07:56:31 -0500 |
---|---|---|
committer | Tom Rini | 2022-01-09 07:56:31 -0500 |
commit | 0dadad6d7c5769d6258baeaf1b8db843b0dfa01f (patch) | |
tree | 53825eeb3b8474d6dce270eb7d84c3afe875ba1b /tools/kwbimage.c | |
parent | 2a4b89a8ff69c3bbc7a2798e8b195d5489be95c1 (diff) | |
parent | 4c8d067bc520fc2ce6dcd7c5833b090f22c67185 (diff) |
Merge tag 'u-boot-amlogic-20220107' of https://source.denx.de/u-boot/custodians/u-boot-amlogic into next
- disable CONFIG_NET_RANDOM_ETHADDR when unnecessary on amlogic based configs
- meson64_android: add board specific env settings, in order to support VIM3/L for android
- add changes to support VIM3/L android boot by using meson64_android.h config
Diffstat (limited to 'tools/kwbimage.c')
-rw-r--r-- | tools/kwbimage.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/kwbimage.c b/tools/kwbimage.c index 875f636c7a4..224d8156be1 100644 --- a/tools/kwbimage.c +++ b/tools/kwbimage.c @@ -8,6 +8,8 @@ * <thomas.petazzoni@free-electrons.com> */ +#define OPENSSL_API_COMPAT 0x10101000L + #include "imagetool.h" #include <limits.h> #include <image.h> @@ -1398,9 +1400,6 @@ static void *image_create_v1(size_t *imagesz, struct image_tool_params *params, headersz, image, secure_hdr)) return NULL; - /* Calculate and set the header checksum */ - main_hdr->checksum = image_checksum8(main_hdr, headersz); - *imagesz = headersz; /* Fill the real header size without padding into the main header */ @@ -1410,6 +1409,9 @@ static void *image_create_v1(size_t *imagesz, struct image_tool_params *params, main_hdr->headersz_lsb = cpu_to_le16(headersz & 0xFFFF); main_hdr->headersz_msb = (headersz & 0xFFFF0000) >> 16; + /* Calculate and set the header checksum */ + main_hdr->checksum = image_checksum8(main_hdr, headersz); + return image; } |