Created
November 23, 2020 01:10
-
-
Save 1Conan/2d015aad17f87f171b32ebfd9f48fb96 to your computer and use it in GitHub Desktop.
Patch to disable tools build and fix --with-dummy
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
diff --git a/Makefile.am b/Makefile.am | |
index 4a61e83..48c4811 100644 | |
--- a/Makefile.am | |
+++ b/Makefile.am | |
@@ -1,6 +1,6 @@ | |
AUTOMAKE_OPTIONS = foreign | |
ACLOCAL_AMFLAGS = -I m4 | |
-SUBDIRS = src include tools udev | |
+SUBDIRS = src include udev | |
EXTRA_DIST = \ | |
README.md | |
diff --git a/configure.ac b/configure.ac | |
index 7e8c7ea..0f56e65 100644 | |
--- a/configure.ac | |
+++ b/configure.ac | |
@@ -43,11 +43,6 @@ AC_TYPE_UINT8_T | |
# Checks for library functions. | |
AC_CHECK_FUNCS([strdup strerror strndup malloc realloc calloc]) | |
-# Checks for libraries. | |
-AC_CHECK_HEADERS([readline/readline.h], [], | |
- [AC_MSG_ERROR([Please install readline development headers])] | |
-) | |
- | |
# Check additional platform flags | |
AC_MSG_CHECKING([for platform-specific build settings]) | |
case ${host_os} in | |
@@ -185,7 +180,6 @@ Makefile | |
src/Makefile | |
src/libirecovery-1.0.pc | |
include/Makefile | |
-tools/Makefile | |
udev/Makefile | |
]) | |
diff --git a/src/libirecovery.c b/src/libirecovery.c | |
index 22bbc0c..d75c94e 100644 | |
--- a/src/libirecovery.c | |
+++ b/src/libirecovery.c | |
@@ -948,6 +948,7 @@ static int check_context(irecv_client_t client) { | |
} | |
#endif | |
+#ifndef USE_DUMMY | |
IRECV_API void irecv_init(void) | |
{ | |
thread_once(&init_once, _irecv_init); | |
@@ -958,7 +959,6 @@ IRECV_API void irecv_exit(void) | |
thread_once(&deinit_once, _irecv_deinit); | |
} | |
-#ifndef USE_DUMMY | |
#ifdef HAVE_IOKIT | |
static int iokit_usb_control_transfer(irecv_client_t client, uint8_t bm_request_type, uint8_t b_request, uint16_t w_value, uint16_t w_index, unsigned char *data, uint16_t w_length, unsigned int timeout) | |
{ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment