mkbootimg: Bump to 2022.11.09

This commit is contained in:
Tee KOBAYASHI 2022-12-20 23:40:58 +09:00 committed by xtkoba
parent 9364f3f524
commit 7c6d7938e2
2 changed files with 2 additions and 40 deletions

View File

@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="Maintained fork with android's mkbootimg and unpackbooti
TERMUX_PKG_LICENSE="BSD 3-Clause"
TERMUX_PKG_LICENSE_FILE="NOTICE"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=2021.08.06
TERMUX_PKG_VERSION=2022.11.09
TERMUX_PKG_SRCURL=https://github.com/osm0sis/mkbootimg/archive/refs/tags/${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=ce754bf13ceeac7f12581862c07ee5ad80b9648e464dca698dd4569bac088659
TERMUX_PKG_SHA256=33c03adf318482b8ffa624b18c8c9ba605eba71a0cd9515409328b63e2add8b5
TERMUX_PKG_BUILD_IN_SRC=true

View File

@ -1,38 +0,0 @@
--- ./unpackbootimg.c.orig 2022-07-12 22:50:11.666837511 +0200
+++ ./unpackbootimg.c 2022-07-12 22:51:03.806772364 +0200
@@ -191,7 +191,7 @@
fseek(f, i, SEEK_SET);
if(fread(&header, sizeof(header), 1, f)) {};
- if(magic == BOOT_MAGIC) {
+ if(strncmp(magic, BOOT_MAGIC, BOOT_MAGIC_SIZE) == 0) {
if((header.header_version < 3) || (header.header_version > hdr_ver_max)) {
// boot_img_hdr_v2 in the backported header supports all boot_img_hdr versions and cross-compatible variants below 3
@@ -298,7 +298,7 @@
write_string_to_file("hashtype", hash_type);
total_read += sizeof(header);
- if(debug > 1) fprintf(stderr, "read: %ld\n", sizeof(header)); // this will harmlessly always show 1660 since it uses boot_img_hdr_v2 for all < v3
+ if(debug > 1) fprintf(stderr, "read: %ld\n", (long)sizeof(header)); // this will harmlessly always show 1660 since it uses boot_img_hdr_v2 for all < v3
total_read += read_padding(f, sizeof(header));
write_buffer_to_file("kernel", f, header.kernel_size);
@@ -350,7 +350,7 @@
write_string_to_file("header_version", hdrvertmp);
total_read += sizeof(header);
- if(debug > 1) fprintf(stderr, "read: %ld\n", sizeof(header));
+ if(debug > 1) fprintf(stderr, "read: %ld\n", (long)sizeof(header));
total_read += read_padding(f, sizeof(header));
write_buffer_to_file("kernel", f, header.kernel_size);
@@ -417,7 +417,7 @@
write_string_to_file("dtb_offset", dtbofftmp);
total_read += sizeof(header);
- if(debug > 1) fprintf(stderr, "read: %ld\n", sizeof(header));
+ if(debug > 1) fprintf(stderr, "read: %ld\n", (long)sizeof(header));
total_read += read_padding(f, sizeof(header));
write_buffer_to_file("vendor_ramdisk", f, header.vendor_ramdisk_size);