forked from openwrt/openwrt
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Showing
19 changed files
with
207 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
package/boot/uboot-mediatek/patches/120-use-xz-instead-of-lzma.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
package/boot/uboot-mediatek/patches/130-fix-mkimage-host-build.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) | ||
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.