mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 15:02:32 +00:00
fa75a3a935
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>
25 lines
629 B
Diff
25 lines
629 B
Diff
--- 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)
|
|
{
|