build(deps): fix pkg-config skew, libusb include, libplist/libirecovery drift
Sync PKGCONFIG_DEPS with Makefile (add libcurl); normalize <libusb.h> include across 6 files; add compat shims for libplist 2.2/2.3 and libirecovery IRECV_SEND_OPT_DFU_NOTIFY_FINISH; add pacman/zypper/apk installer branches; drop bogus info->pid read in path_b_identity.c in favor of irecv_get_mode(). Extend the mock libirecovery to expose irecv_get_mode() so the mock test build keeps passing against the new call site. Add Makefile compile canaries that emit -DTP_PLIST_HAS_MEM_FREE, -DTP_PLIST_HAS_FMT_ARG, and -DTP_IRECV_HAS_NOTIFY_FINISH plus a .build-flags diagnostic file consumed by tr4mpass doctor. Files modified: - Makefile - start.sh - start-helpers.sh - include/compat/plist_compat.h (new) - include/compat/libirecovery_compat.h (new) - include/util/usb_helpers.h - include/util/plist_helpers.h - include/exploit/dfu_proto.h - include/device/device.h - include/device/usb_dfu.h - include/activation/activation.h - include/activation/record.h - src/bypass/path_b_identity.c - src/bypass/path_b.c - src/bypass/path_a_ramdisk.c - src/activation/session_online.c - tests/mocks/mock_irecv_sym.c - .gitignore Closes: #70, #74, #67, #54, #51, #44, #21, #55, #31, #24, #19
This commit is contained in:
parent
d18b57a66f
commit
9bd1a75b2d
18 changed files with 257 additions and 47 deletions
|
|
@ -114,6 +114,18 @@ const struct irecv_device_info *irecv_get_device_info(irecv_client_t client)
|
|||
return &client->info;
|
||||
}
|
||||
|
||||
irecv_error_t irecv_get_mode(irecv_client_t client, int *mode)
|
||||
{
|
||||
mock_log_append("irecv_get_mode");
|
||||
if (!client || !mode)
|
||||
return (irecv_error_t)-1;
|
||||
/* Reflect the configured USB product ID: recovery PIDs live in
|
||||
* 0x1280..0x1283, DFU is 0x1227. Callers compare against
|
||||
* IRECV_K_RECOVERY_MODE_[1..4] which are the recovery PIDs. */
|
||||
*mode = (int)g_irecv_info_pid;
|
||||
return IRECV_E_SUCCESS;
|
||||
}
|
||||
|
||||
irecv_error_t irecv_send_command(irecv_client_t client, const char *command)
|
||||
{
|
||||
(void)client;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue