57 Commits
Author SHA1 Message Date
Robert Swiecki 28310f6847 android: use set -e in scripts 2022-01-02 17:05:04 +01:00
Robert Swiecki e49e303bd2 android: use set -u in scripts 2022-01-02 00:08:17 +01:00
Robert Swiecki 40f265bc27 android/libunwind: no need to remove -lgcc and -lgcc_s any more 2022-01-01 22:11:57 +01:00
Robert Swiecki 09df99e3d5 android: use set -x in scripts 2022-01-01 22:05:20 +01:00
Robert Swiecki 53728b7abb android: update android prerequisites - NDK v23b, android-30 ABI. Make arm64 the default build 2022-01-01 15:35:51 +01:00
Robert Swiecki 1ab57e25ad android: move android build to libunwind v1.6.2 2022-01-01 15:22:55 +01:00
Robert Swiecki 44f7fe346c android: newer libunwind 2022-01-01 15:13:00 +01:00
Robert Swiecki 0ba36e7b98 android: make it compile under ndk >= 21 2021-12-31 19:55:09 +01:00
George Poulios 7604c55807 libunwind/aarch64: properly distinguish aarch64 case when HAVE_DECL_PT_GETFPREGS is defined 2021-02-10 14:44:37 +02:00
George Poulios 2ab9e6b008 libunwind/aarch64: disable HAVE_DECL_PTRACE_POKEUSER and enable HAVE_DECL_PT_GETREGSET 2021-02-10 14:39:54 +02:00
George Poulios ad79de5597 Fix (#381) android build of third parties under hosts other-than-Linux 2021-02-10 12:01:43 +02:00
Robert Swiecki 85b1f85bbe change perms of a *.o file to 0644 2020-04-05 20:50:13 +02:00
Robert Swiecki 96438de7e2 Bump to 4.0.1 2019-12-03 16:07:36 +01:00
Robert Swiecki 26d0e9b5aa qemu- compile both x86 and amd64 archs 2019-11-04 17:17:23 +01:00
Robert Swiecki 083ec72f6d android: remove unnecessary operations from *.sh files 2019-11-02 12:50:50 +01:00
Robert Swiecki 890fb6830f android: use better logic for finding the compiler 2019-10-30 09:54:01 +01:00
Robert Swiecki ba75578081 make android-all work with proper API level 2019-10-30 01:26:33 +01:00
Robert Swiecki ca85ae00e4 make android-all work 2019-10-30 01:20:03 +01:00
Robert Swiecki ac7df4eddc android: make make android-all work 2019-10-30 00:38:09 +01:00
Robert Swiecki dec78f15d5 android: use ANDROID_API=26 by default, and use -D__ANDROID_API__=$ANDROID_API_V in standalone compilation mode 2017-12-15 04:43:22 +01:00
Robert Swiecki 2bfd27830a android: make libunwind compile with NDK-16 2017-12-13 15:30:25 +01:00
Anestis Bechtsoudis 6f902a4614 macOS: Support for 10.13 & update CrashWrangler bin
Apple has released a CrashWrangler update due to the recent changes in the
CrashReporter frameworks. Use the latest version when compiling under 10.13
(High SIerra).

Signed-off-by: Anestis Bechtsoudis <[email protected]>
2017-11-03 07:13:54 +02:00
Zach Riggle 0a201aaabe Check the path to CC and CXX when building libUnwind
Closes google/honggfuzz#159
2017-08-25 15:23:51 -04:00
Anestis Bechtsoudis e45cb036dc [Android] Simplify & cleanup libunwind patch/build
Signed-off-by: Anestis Bechtsoudis <[email protected]>
2017-05-18 10:24:30 +03:00
Anestis Bechtsoudis c6e9ec04cd [Android] Don't fail on scripts unhandled error
Signed-off-by: Anestis Bechtsoudis <[email protected]>
2016-10-28 11:52:45 +03:00
Anestis Bechtsoudis 65e35717ad [Android] Rebuild deps when different API level chosen
Signed-off-by: Anestis Bechtsoudis <[email protected]>
2016-10-28 11:27:54 +03:00
Anestis Bechtsoudis 35130732e0 [Android] Verify valid ANDROID_API level from deps cc scripts
Signed-off-by: Anestis Bechtsoudis <[email protected]>
2016-10-28 11:20:21 +03:00
Anestis Bechtsoudis d7f27ff5c5 [Android] Align deps target API level with one chosen at makefile
Signed-off-by: Anestis Bechtsoudis <[email protected]>
2016-10-28 10:08:07 +03:00
Anestis Bechtsoudis 48b280aebd [Android] Align libunwind CPU naming conventions with makefile
All CPU targets have matching names expect arm64 (vs aarch64). Create
a softlink for this case so that we don't need create more target naming
conventions in makefiles.

Signed-off-by: Anestis Bechtsoudis <[email protected]>
2016-10-28 10:05:10 +03:00
Robert Swiecki 2a7da34ff1 subproc: remove double 'persistent' check 2016-10-27 19:27:30 +02:00
Robert Swiecki 4b50f1ac30 display: divide by billion for G 2016-10-22 19:38:30 +02:00
Robert Swiecki c211899617 Linux/arch: Set the persistent socket size to 2MiB 2016-10-20 18:26:20 +02:00
Robert Swiecki eab0e8687d Comments in .h 2016-10-18 23:04:42 +02:00
Robert Swiecki ce62a21c43 Remove a report lock for now 2016-10-18 17:06:15 +02:00
Anestis Bechtsoudis b26c2c6d82 Fix submodule init bug when non-recursive clone
When user clones repo without submodules, by default most
git versions appear to create just an empty directory for them. As
such just checking if directory present to init submodules is not
enough. Checks have been upgraded to use the present of
projects .git dir as an indicator for missing submodule initialization.

Signed-off-by: Anestis Bechtsoudis <[email protected]>
2016-10-18 11:07:50 +03:00
Anestis Bechtsoudis 9983df9a63 Hooks not registered when clone with submodules
If repo was cloned with recursive submodule fetch, the client
hooks were not registered from build scripts. As such split
the missing submodule update from client hooks register
logic.

Signed-off-by: Anestis Bechtsoudis <[email protected]>
2016-10-17 13:11:47 +03:00
Anestis Bechtsoudis 9b8254652b [build-script] Fetch only matching submodule dep
Each build script is dealing with a separate submodule. As
such don't recursively fetch them all in one step, since not
all client hooks will be registered.

Signed-off-by: Anestis Bechtsoudis <[email protected]>
2016-10-17 12:57:02 +03:00
Anestis Bechtsoudis eff42d13de Register git hooks for submodules
If user updates dep submodules (capstone, libunwind)
although forgets to make a clean build, old .a files persist
the update resulting into an invalid setup. Avoid such case
by registering post-checkout git hooks for the two submodules.

As soon as the submodules are updated the client git hooks
ensure the previous .a files will be deleted forcing the user to
rebuild with new source code version.

Signed-off-by: Anestis Bechtsoudis <[email protected]>
2016-10-17 12:42:39 +03:00
Anestis Bechtsoudis b5f834d6cc [Android] Revert libunwind patches when cc done
We're applying a set of patches to upstream libunwind to be
compatible with some Android specific internals. We want the
repo to be left in a clean state to accept future submodule
updates without requiring user manual steps. As such after
static library for selected CPU is built, reset local applied
changes.

Output .a files persist across git reset so users can have them
available across different CPU target builds.

Signed-off-by: Anestis Bechtsoudis <[email protected]>
2016-10-17 11:56:30 +03:00
Anestis Bechtsoudis 2ce9337a0e Clean old manual deps clone
Signed-off-by: Anestis Bechtsoudis <[email protected]>
2016-10-17 11:12:58 +03:00
Anestis Bechtsoudis e402444305 [Android] libunwind default to master
Signed-off-by: Anestis Bechtsoudis <[email protected]>
2016-10-17 11:01:00 +03:00
Anestis Bechtsoudis 01adff04ff [Android] Capstone default to latest stable
Signed-off-by: Anestis Bechtsoudis <[email protected]>
2016-10-17 10:58:25 +03:00
Anestis Bechtsoudis 1ba355b9dc [Android] capstone build NDK R13 support
Capstone was providing some basic automation to build
arm & arm64 targets, although selected toolchains are not
compatible with NDK r12 & r13. Apply cross-compilation
toolchain selection manually for all targets.

Signed-off-by: Anestis Bechtsoudis <[email protected]>
2016-10-17 10:54:04 +03:00
Anestis Bechtsoudis 96ff590826 Typos & grammar
Signed-off-by: Anestis Bechtsoudis <[email protected]>
2016-10-17 10:52:24 +03:00
Robert Swiecki 76727f6215 Display CPUload/NumofCpus/fixes for Android 2016-09-06 17:11:23 +02:00
Anestis Bechtsoudis c183cb6600 [android] Add libBlocksRuntime support
Fetch upstream AOSP source-code as 3rd-party
dependency and compile as static lib. Treat arch
in compile script with same patterns as other android
dependencies (capstone, libunwind, etc.)

Signed-off-by: Anestis Bechtsoudis <[email protected]>
2016-05-06 13:08:08 +03:00
Anestis Bechtsoudis a4003c5451 Grammar & typos
Signed-off-by: Anestis Bechtsoudis <[email protected]>
2016-05-06 13:04:48 +03:00
Anestis Bechtsoudis 5a6f710d94 Move crashwranger objs
Signed-off-by: Anestis Bechtsoudis <[email protected]>
2015-10-08 13:32:32 -07:00
Anestis Bechtsoudis d38754aa7e Fix Android x86_64 support
libunwind imports have to be re-ordered to pick the correct
"_Ux86_64_setcontext" definition. Small typo fixes too.

Signed-off-by: Anestis Bechtsoudis <[email protected]>
2015-08-26 13:10:28 +03:00
Anestis Bechtsoudis 06cd678674 Silent dir reverts in scripts 2015-08-20 08:40:27 +03:00