uboot-mediatek: update to U-Boot 2024.01 release
[openwrt/staging/dangole.git] / package / boot / uboot-mediatek / patches / 130-fix-mkimage-host-build.patch
1 --- a/tools/image-host.c
2 +++ b/tools/image-host.c
3 @@ -1137,6 +1137,7 @@ static int fit_config_add_verification_d
4 * 2) get public key (X509_get_pubkey)
5 * 3) provide der format (d2i_RSAPublicKey)
6 */
7 +#ifdef CONFIG_TOOLS_LIBCRYPTO
8 static int read_pub_key(const char *keydir, const void *name,
9 unsigned char **pubkey, int *pubkey_len)
10 {
11 @@ -1190,6 +1191,13 @@ err_cert:
12 fclose(f);
13 return ret;
14 }
15 +#else
16 +static int read_pub_key(const char *keydir, const void *name,
17 + unsigned char **pubkey, int *pubkey_len)
18 +{
19 + return -ENOSYS;
20 +}
21 +#endif
22
23 int fit_pre_load_data(const char *keydir, void *keydest, void *fit)
24 {