diff options
author | Koushik Dutta <koushd@gmail.com> | 2013-04-10 22:46:12 -0700 |
---|---|---|
committer | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2020-02-13 04:26:40 +0100 |
commit | c7a41ed0006998c14aab913566df548cf3346ede (patch) | |
tree | 0115bf67fcc4153bb15106da70e0e8967e553717 | |
parent | 699549e3c661e868656147cdad35189469198f4d (diff) | |
download | external_heimdall-c7a41ed0006998c14aab913566df548cf3346ede.tar.gz external_heimdall-c7a41ed0006998c14aab913566df548cf3346ede.tar.bz2 external_heimdall-c7a41ed0006998c14aab913566df548cf3346ede.zip |
Create pregenerated config.h.
GNUtoo@cyberdimension.org: rebase + small fixes
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r-- | heimdall/config.h | 79 | ||||
-rw-r--r-- | heimdall/source/Android.mk | 59 |
2 files changed, 138 insertions, 0 deletions
diff --git a/heimdall/config.h b/heimdall/config.h new file mode 100644 index 0000000..96dc3a6 --- /dev/null +++ b/heimdall/config.h @@ -0,0 +1,79 @@ +/* config.h.in. */ + +/* Define if building universal (internal helper macro) */ +#undef AC_APPLE_UNIVERSAL_BUILD + +/* Define to 1 if you have the <dlfcn.h> header file. */ +#define HAVE_DLFCN_H + +/* Define to 1 if you have the <inttypes.h> header file. */ +#define HAVE_INTTYPES_H + +/* Define to 1 if you have the <memory.h> header file. */ +#define HAVE_MEMORY_H + +/* Define to 1 if you have the <stdint.h> header file. */ +// #undef HAVE_STDINT_H + +/* Define to 1 if you have the <stdlib.h> header file. */ +#define HAVE_STDLIB_H + +/* Define to 1 if you have the <strings.h> header file. */ +#define HAVE_STRINGS_H + +/* Define to 1 if you have the <string.h> header file. */ +#define HAVE_STRING_H + +/* Define to 1 if you have the <sys/stat.h> header file. */ +#define HAVE_SYS_STAT_H + +/* Define to 1 if you have the <sys/types.h> header file. */ +#define HAVE_SYS_TYPES_H + +/* Define to 1 if you have the <unistd.h> header file. */ +#define HAVE_UNISTD_H + +/* Define to the sub-directory in which libtool stores uninstalled libraries. + */ +#undef LT_OBJDIR + +/* Darwin backend */ +#if defined(__APPLE__) +#define OS_DARWIN +#elif defined(__LINUX__) +/* Linux backend */ +#define OS_LINUX +#else +/* Windows backend */ +#define OS_WINDOWS +#endif + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* Define to 1 if you have the ANSI C header files. */ +// #undef STDC_HEADERS + +/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most + significant byte first (like Motorola and SPARC, unlike Intel). */ +#if defined AC_APPLE_UNIVERSAL_BUILD +# if defined __BIG_ENDIAN__ +# define WORDS_BIGENDIAN 1 +# endif +#else +# ifndef WORDS_BIGENDIAN +# undef WORDS_BIGENDIAN +# endif +#endif diff --git a/heimdall/source/Android.mk b/heimdall/source/Android.mk new file mode 100644 index 0000000..0d18f38 --- /dev/null +++ b/heimdall/source/Android.mk @@ -0,0 +1,59 @@ +LOCAL_PATH := $(call my-dir) + +include $(CLEAR_VARS) + +LOCAL_SRC_FILES := \ + core.c \ + descriptor.c \ + io.c \ + sync.c + +ifeq ($(HOST_OS),darwin) +LOCAL_SRC_FILES += os/darwin_usb.c +endif +ifeq ($(HOST_OS),linux) +LOCAL_SRC_FILES += os/linux_usbfs.c +endif + +LOCAL_SRC_FILES := $(addprefix ../../../libusb/libusb/,$(LOCAL_SRC_FILES)) +LOCAL_MODULE := libusb + +LOCAL_C_INCLUDES := \ + external/libusb \ + external/libusb/libusb + +include $(BUILD_HOST_STATIC_LIBRARY) + +include $(CLEAR_VARS) + +LOCAL_SRC_FILES := \ + Arguments.cpp \ + ClosePcScreenAction.cpp \ + DownloadPitAction.cpp \ + FlashAction.cpp \ + InfoAction.cpp \ + PrintPitAction.cpp \ + VersionAction.cpp \ + BridgeManager.cpp \ + DetectAction.cpp \ + HelpAction.cpp \ + Interface.cpp \ + Utility.cpp \ + main.cpp \ + ../../libpit/Source/libpit.cpp + +LOCAL_SRC_FILES += $(LIBUSB_SRC_FILES) +LOCAL_FORCE_STATIC_EXECUTABLE := true + +LOCAL_C_INCLUDES := \ + external/heimdall/libpit/Source \ + external/libusb/libusb + +LOCAL_STATIC_LIBRARIES := libusb + +ifeq ($(HOST_OS),darwin) +LOCAL_LDFLAGS := -framework CoreFoundation -framework IOKit +endif + +LOCAL_MODULE := heimdall +include $(BUILD_HOST_EXECUTABLE) |