The NDK's minimum target is now android-16 which had at least 1.2.7.
Test: make checkbuild
Bug: https://github.com/android-ndk/ndk/issues/230
Change-Id: I4e1e5b3613bdf54d101a99358107c5a52dd09d71
The static libraries now come from prebuilts/ndk and the CRT sources
now come from bionic.
Test: treehugger
Bug: None
Change-Id: I2e8075d6acca60e64d0c3173713be2bf102a09d8
Still not ready to adopt the new static libraries, but we've needed
this for a while now. Copy it into place for now.
These came from the current prebuilts/ndk, which themselves came from
AOSP master build 4567395.
Test: ndk/checkbuild.py && ndk/run_tests.py
Bug: https://github.com/android-ndk/ndk/issues/294
Change-Id: Ia713a957df5c913b36d5f6c8fff35bbb11315ae8
We aren't quite ready to fully move to the new static libraries, but
we need libdl.a for using libc++ in a static executable (the unwinder
uses dladdr).
Test: ndk/checkbuild.py && ndk/run_tests.py
Bug: None
Change-Id: Ibc2ba4b27cc1fc1fb229719ea3c3c37cb8819fd3
No longer supported. Move the Gingerbread static libraries forward to
ICS (we only have gingerbread and lollipop ones, so the Gingerbread
ones have been used for ICS previously anyway).
Test: ndk/checkbuild.py && ndk/run_tests.py
Bug: None
Change-Id: I0ae600c755ab9f7a3c187f8777ffcd8f6a2d30ba
We use one set of sources for all API levels, and the code to find
these made checkbuild.py messier than it needed to be. Move them into
a non-API level specific location.
Test: ndk/checkbuild.py && ndk/run_tests.py
Bug: None
Change-Id: I8e571037b761ebc64b0bf234abd90511778f3224
For some reason these get renamed to crtend_android during the build.
No idea why they weren't just renamed in the source.
Test: ndk/checkbuild.py
Bug: None
Change-Id: Ia5f0afebfee7a37fa7a8ee837f466f7c0cc5f297
The only difference between the android-21 and android-9 sources
could have been written as in #if.
Test: ndk/run_tests.py
Bug: None
Change-Id: I675e9413df22b65db79fb0e60038c2ee6f4172cd
Because gen-platforms.sh includes the current *bionic* directories, this
mistake in the android-9 crtbegin.c wasn't being noticed. It was using
the platform __stack_chk_fail_local.h instead of the missing local one.
crtbegin.c:63:59: fatal error: ../../arch-x86/bionic/__stack_chk_fail_local.h: No such file or directory
# include "../../arch-x86/bionic/__stack_chk_fail_local.h"
Bug: N/A
Test: builds
Change-Id: I8306cee1cf6d974ac5c3dae0c2927af3ceeb2cf6
Without this, we won't copy the android-26 libraries even though we
have them because the platforms directory is built based on what
directories we have here.
It would be better to rewrite gen-platforms.sh to be less awful, but
given that the whole script can be deleted when we drop the
deprecated headers in r16, there's not much point in doing so.
Test: ndk/checkbuild.py && ndk/run_tests.py --filter aaudio
Bug: None
Change-Id: I3c1861f50c8e779d5489e12887180ef1f2099e4a
This fixes some issues with using boost's asio (which wrongly assumes
_BSD_SOURCE implies that these things are available) following our
change from -isystem to --sysroot.
Test: Manual, check that we can build when using cfsetspeed on ICS.
Bug: https://github.com/android-ndk/ndk/issues/302
Change-Id: Iab50221e4864f9a09a8fb00691252170eb6e8d09
This reverts commit 45e5c53e91.
Reason for revert: jmgao's versioner is still using them
Bug: http://b/35243030
Change-Id: I17779695c443f3353082d122eacaffba5e5663d3
These aren't part of the current UAPI headers. They're already gone
from the unified headers, but it would be good to remove them from
the legacy headers as well since it will help find the people that
are still using them (if any).
Test: ndk/checkbuild.py
Bug: None
Change-Id: I04f78e06116a7fba3c894c710dee014cda4030f4
Also allow the variables to be set directly by -D rather
than using sed.
Bug: http://b/34779141
Test: builds
Change-Id: Ie81b2f0194d11bdfeffc2ded29ae456420a9f20d
Not needed for x86 because it has always had a working fenv
implementation.
We want to add the fixed implementations of fenv to libandroid_support
rather than dirtying up the bionic headers for these, but with the
inlines and the types in the same header we can't do this easily.
Backport machine/fenv.h for these architectures so we can simplify
this.
These are just copied from the android-21 directory. They aren't
moved because gen-platforms.sh actually removes all the currently
accumulated headers for android-21, so android-21 needs to have a
full set of headers...
Test: ndk/checkbuild.py
Bug: https://github.com/android-ndk/ndk/issues/120
Change-Id: Idc3bebc533230afca563c6911c65e90b51342a4b
I'd actually fixed sys/cdefs.h quite some time ago, but that
definition of __pure2 was being clobbered by the bogus one in math.h.
Test: clang -E -dM --sysroot $NDK/platforms/android-9/arch-arm/ \
platforms/android-9/include/math.h | grep __pure2
Bug: http://b.android.com/62020
Change-Id: I9b93a7c46075a02ed1ea0ca2cc77624b15955c7f
Most NDK libraries don't have version scripts yet, so add a --create
mode that will generate one based on what we know.
Also rename the script to annotate_version_script.py since that's
more accurate.
Test: ./annotate_version_script.py --create libcamera2ndk.so.json \
../../frameworks/av/camera/ndk/libcamera2ndk.map.txt
Bug: None
Change-Id: I62040612118ffb65fabb93157faed79b135f3230
Function file is up above, this should be the variables file.
Test: ./build_symbol_db.py libcamera2ndk
Bug: None
Change-Id: I5ec8a7f3b10a46c984f3e8d3b74caf43ccc77910
Ugh. We had redefinitions of all the __builtin_* math functions in
here.
Test: ./checkbuild.py
Bug: https://github.com/android-ndk/ndk/issues/142
Change-Id: Iec187c3a542e2dc9b3d628c2a9aa3fb45d7986ef
This function is already exported by libc.so there
is no need for it in libstdc++.so
Bug: http://b/28987948
Test: python tests/run-all.py --abi armeabi --platform android-21 --suite build /ssd/aosp/master-ndk/out/android-ndk-r13-beta1
Test: python tests/run-all.py --abi arm64-v8a --platform android-21 --suite build /ssd/aosp/master-ndk/out/android-ndk-r13-beta1
Change-Id: Ia67fd60d31b9427db27ffc2ba980b331da3a8e6a
There are not present in current platform version of the library.
Bug: http://b/28987948
Test: python checkbuild.py
Change-Id: Iace0af9f7ee0d9fa424ea4f27035894499f4aa8c
We need to update these for the multinetwork and atrace APIs. Copy
the baseline android-21 into place first to make the review simpler.
Bug: http://b/29936226
Change-Id: Ieb6d9f68b0474f0ec86a79b43bbd9f682d3b6aea
I did a bad job of reviewing this. This is libandroid.so, not a new
library. We need to keep all the old symbols here too. I'll copy in
android-21 first, then add these back.
This reverts commit 00b322bb05.
Bug: http://b/29936226
Change-Id: Ia3d7762599c29cc97add0c3f8a93b9562bed53f6