diff options
author | Daniel Golle <daniel@makrotopia.org> | 2022-07-11 11:02:49 +0100 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2022-07-11 17:13:22 +0100 |
commit | fa75a3a935b26378630498ba7d3f6a0b5b11f86e (patch) | |
tree | 33e32eb3c87e7fa7e5dea1fc3bf7799a0738a9b3 /package/boot/uboot-mediatek/patches/130-fix-mkimage-host-build.patch | |
parent | b68e9f2e19a4cc7be4dd13b76a690ef04daac190 (diff) | |
download | upstream-fa75a3a935b26378630498ba7d3f6a0b5b11f86e.tar.gz upstream-fa75a3a935b26378630498ba7d3f6a0b5b11f86e.tar.bz2 upstream-fa75a3a935b26378630498ba7d3f6a0b5b11f86e.zip |
uboot-mediatek: update to 2022.07 release
Add patch to fix host-build of the mkimage tool without
CONFIG_TOOLS_LIBCRYPTO.
Update and refresh all patches.
Tested on BananaPi R64 (MT7622) successfully booting from SD card,
eMMC and SPI-NAND.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'package/boot/uboot-mediatek/patches/130-fix-mkimage-host-build.patch')
-rw-r--r-- | package/boot/uboot-mediatek/patches/130-fix-mkimage-host-build.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/package/boot/uboot-mediatek/patches/130-fix-mkimage-host-build.patch b/package/boot/uboot-mediatek/patches/130-fix-mkimage-host-build.patch new file mode 100644 index 0000000000..8b110a880f --- /dev/null +++ b/package/boot/uboot-mediatek/patches/130-fix-mkimage-host-build.patch @@ -0,0 +1,24 @@ +--- a/tools/image-host.c ++++ b/tools/image-host.c +@@ -1122,6 +1122,7 @@ static int fit_config_add_verification_d + * 2) get public key (X509_get_pubkey) + * 3) provide der format (d2i_RSAPublicKey) + */ ++#ifdef CONFIG_TOOLS_LIBCRYPTO + static int read_pub_key(const char *keydir, const void *name, + unsigned char **pubkey, int *pubkey_len) + { +@@ -1175,6 +1176,13 @@ err_cert: + fclose(f); + return ret; + } ++#else ++static int read_pub_key(const char *keydir, const void *name, ++ unsigned char **pubkey, int *pubkey_len) ++{ ++ return -ENOSYS; ++} ++#endif + + int fit_pre_load_data(const char *keydir, void *keydest, void *fit) + { |