Commit graph

747 commits

Author SHA1 Message Date
Steven Moreland
8aca9025f3 vibrator: use package as name
In order to provide a more descriptive name, and to be consistent
with HIDL, the stable AIDL package names are switching from
vintf-vibrator format to the package format
(android.hardware.vibrator).

Bug: N/A
Test: all build time
Change-Id: Ie6580714c3d09c1f99808ca9f8dc7875487f1049
2020-01-06 13:41:24 -08:00
Steven Moreland
de0bac5e13 rebootescrow: use package as name
In order to provide a more descriptive name, and to be consistent
with HIDL, the stable AIDL package names are switching from
vintf-rebootescrow format to the package format
(android.hardware.rebootescrow).

Bug: N/A
Test: all build time
Change-Id: I76487b1a325cc4a4c26382cf553c2edf6c27389f
2020-01-06 13:22:03 -08:00
Kenny Root
bfe4b1862d vndkMustUseVendorVariantList += vintf-rebootescrow
TARGET_VNDK_USE_CORE_VARIANT devices explicitly track libs which are
differentiated between system/vendor. b/145157349 is filed to try to
catch these errors during normal builds (or in presubmit).

aidl libs need to be differentiated because they explicitly set
different system/vendor stabilities.

Fixes: 146513281
Test: fixes build
Change-Id: I0a56d67bfd035a4438d05d5c983c47de8234dc3b
2019-12-18 14:49:44 -08:00
Automerger Merge Worker
67eebe6442 Revert "Revert "soong: upgrade Android platform to clang-r370808"" am: eb20744361 am: c2e2dce120 am: 1ae7cbd085
Change-Id: I9582942220289d30dc21afddaeb477dd67732b80
2019-12-16 21:36:52 +00:00
Nick Desaulniers
eb20744361 Revert "Revert "soong: upgrade Android platform to clang-r370808""
This reverts commit 862eb4648a.

Re-upgrades the compiler to clang-r370808, after first dealing with
regressions in ndk_translate and execute only pages.

Bug: 139945549
Bug: 145807809
Bug: 145827049
Bug: 145825270
Test: atest \
  CtsSelinuxTargetSdk27TestCases:android.security.SELinuxTargetSdkTest#testNoExecuteOnly
Test: m ndk_translation_host_unit_tests && \
  ./out/host/linux-x86/nativetest/ndk_translation_host_unit_tests/ndk_translation_host_unit_tests
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Change-Id: I714b582faffa8c92384818a7b12338d621968548
2019-12-13 13:13:06 -08:00
Andrew Chant
4b8d14df54 Merge "Revert "soong: upgrade Android platform to clang-r370808"" am: ed75f18e25 am: 26f8210a88
am: 7bc59d3d19

Change-Id: I9db811783b85f3bfc4747a1047d954d59b4ed060
2019-12-09 16:23:02 -08:00
Nick Desaulniers
862eb4648a Revert "soong: upgrade Android platform to clang-r370808"
This reverts commit 4f49e35902.

Causes test failures in ndk_translate.
Bug: 145807809
Bug: 145827049
Test: N/A
Change-Id: I8f42a15fec44475b74b1926c70bc98e03fe66f52
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
2019-12-09 19:16:08 +00:00
Elliott Hughes
fe50cc5ba8 Merge "Enable -Wpragma-pack warnings as errors." am: b5d11197d3 am: d06667fc1a
am: e4dd3eb114

Change-Id: I271e7892259010e3760e0080f6326c4cf2c38744
2019-12-06 14:27:27 -08:00
Elliott Hughes
b5d11197d3 Merge "Enable -Wpragma-pack warnings as errors." 2019-12-06 22:07:20 +00:00
Nick Desaulniers
0d1f2ae0b4 Merge "soong: upgrade Android platform to clang-r370808" am: ac0336d81f am: e350a6bf35
am: b02c16c39b

Change-Id: I3d0d22be63ede77455bc1be0307b0ce82bf3d847
2019-12-06 00:43:06 -08:00
Nick Desaulniers
ac0336d81f Merge "soong: upgrade Android platform to clang-r370808" 2019-12-05 20:12:08 +00:00
Elliott Hughes
2cdbdf1093 Enable -Wpragma-pack warnings as errors.
The use of pragma pack(1) affects the packed-ness of every struct
definition that follows it in the translation unit, even in following
header files. This can lead to multiple translation units disagreeing
on whether a struct is packed.

Enable the warnings (as errors) that help spot this problem.

Bug: http://b/73971777
Test: treehugger
Change-Id: Id3096f35dff5dc8723d30d1305f1ed7ae8190a32
2019-12-04 08:48:45 -08:00
Nick Desaulniers
4f49e35902 soong: upgrade Android platform to clang-r370808
-Wc99-designators warns for the use of nested and array initializers in
C++20 code. Many internal projects have pushed back against this
warning.

Disables:
- -Wimplicit-int-float-conversion
- -Wpointer-compare
- -Wxor-used-as-pow
- -Wfinal-dtor-non-final-class
- -Wreorder-init-list

For projects under external/, vendor/, etc, but only if they use
Android.bp (not Android.mk) and -Wreorder-init-list may be re-enabled by
-Wall if set locally.

-Wno-incomplete-setjmp-declaration is needed for NDK stubs that get
generated (functions without full definitions of their parameters).

Sets
- -Wno-error=implicit-int-float-conversion
- -Wno-error=reorder-init-list
for all projects in order to unblock landing the compiler upgrade due to
internal projects not being able to disable or fix these before the
upgrade.

Bug: 139945549
Test: build (aosp_crosshatch, crosshatch, aosp_x86_64-eng,
  walleye), boot internal devices, bionic + RS atests, kernel builds.
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>

Change-Id: I18e3c0eb657fd59824526f36c6dd57bdcf0526ba
2019-11-26 10:09:15 -08:00
Steven Moreland
1f1b4f6e55 Merge "vndkMustUseVendorVariantList += vintf-vibrator" am: 16fc49db61 am: 3443e7df09
am: 9d05d7e823

Change-Id: Ia7aa7d28f71d7b68bda4a51ac077de70bbfbc1b5
2019-11-25 15:50:17 -08:00
Steven Moreland
e7b5b72015 vndkMustUseVendorVariantList += vintf-vibrator
TARGET_VNDK_USE_CORE_VARIANT devices explicitly track libs which are
differentiated between system/vendor. b/145157349 is filed to try to
catch these errors during normal builds (or in presubmit).

aidl libs need to be differentiated because they explicitly set
different system/vendor stabilities.

Fixes: 145154788
Test: fixes build
Change-Id: I682ceaa2dd23f0f80ba060ae262d766b1367187e
2019-11-25 15:21:44 -08:00
Nick Desaulniers
59ccc23e26 Merge "Expand ClangExtraExternalCflags to non-Google vendor projects" am: 69c013694d am: ebc13b056c
am: 5d53e272f4

Change-Id: I0de8fe352e6c24fde0950e915d84469d5af59f8c
2019-11-12 10:22:10 -08:00
Yi Kong
950e0baf2a Expand ClangExtraExternalCflags to non-Google vendor projects
Some of the warnings are too common to fix/opt-out for non-Google
projects.

Also in the change, minor clean up of duplicated code.

Test: presubmit
Bug: 139945549
Change-Id: Ic176ef1f17133405851a79592b6bef5ccb403bd9
2019-11-11 13:24:39 -08:00
Nick Desaulniers
0405b29044 Merge "soong: move -Wimplicit-fallthrough from cflags to cxxflags" am: 2d5ce8538b am: 3a24eefedb
am: 0d0b3980b8

Change-Id: I8ca47f5a92926f31ff4e5c68cb46801b2183a0b1
2019-11-11 10:29:58 -08:00
Colin Cross
6458fee442 Merge "Remove -Wno-thread-safety-negative" am: 075cc44a86 am: dcee4049d6
am: a45513cc6c

Change-Id: Ie671f3ef90115260b5ee604459b33725633110a9
2019-11-11 10:06:32 -08:00
Nick Desaulniers
2d5ce8538b Merge "soong: move -Wimplicit-fallthrough from cflags to cxxflags" 2019-11-11 16:54:25 +00:00
Colin Cross
23d988d54a Remove -Wno-thread-safety-negative
-Wthread-safety-negative was disabled because it requires locks to
support an operator!(), and std::mutex in libc++ does not.  Disabling
it everywhere was preventing it being used for modules that want to
opt in to using it and provide their own lock that supports
operator!().  Modules that use -Weverything should either stop using
 -Weverything (preferred), or add -Wno-thread-safety-negative.

Bug: 143713277
Test: m native
Change-Id: I0b84679a806a21b16cabe7f739fde61c3efe2cbe
2019-11-08 18:27:40 +00:00
Nick Desaulniers
4e31fb87af soong: move -Wimplicit-fallthrough from cflags to cxxflags
The compiler upgrade to r370808 can now check C code for implicit
fallthrough. This is triggering a massive number of warnings throughout
external/ and the rest of the platform.

Revisit enabling this for C another day.

Bug: 139945549
Test: m
Change-Id: I8dfaedab78c6230b46e8a45a9e65106dec363380
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
2019-11-08 09:52:56 -08:00
Dan Willemsen
3d57878f5b Merge "Add support for 10.15 SDK" am: f887ee6765 am: 7cd9c0327f am: 029b0934c9
am: 8a94d49599

Change-Id: I30158593f89ac69257fbfc2dba1f8b3dfc5da7b2
2019-10-24 16:15:01 -07:00
Dan Willemsen
89dad60ed5 Add support for 10.15 SDK
I haven't found any issues so far.

Test: try the build
Change-Id: I1e2f4095795daead6eb96280d60a122c51ba66ba
2019-10-22 17:01:15 -07:00
Treehugger Robot
81a4016f61 Merge "Add android.hardware.neuralnetworks@1.3" 2019-10-17 22:47:15 +00:00
Slava Shklyaev
7779766411 Add android.hardware.neuralnetworks@1.3
Bug: 139120468
Test: m
Change-Id: I4f305a7698f2d9ec5f8f4244124570d9318b58a1
Merged-In: I4f305a7698f2d9ec5f8f4244124570d9318b58a1
(cherry picked from commit f4b5a5ba08)
2019-10-16 14:01:25 +01:00
Pirama Arumuga Nainar
f56f57ec9f Merge "Pass -static-libgcc to Windows link commands" am: a60e81853f am: 077a726afb am: 22751cb748
am: 4c08bad3ff

Change-Id: Ibfcd9ac3f4e2b3a628e9097887589c602efabda4
2019-10-15 21:57:42 -07:00
Pirama Arumuga Nainar
22751cb748 Merge "Pass -static-libgcc to Windows link commands" am: a60e81853f
am: 077a726afb

Change-Id: I78f8e5cb49859634987cf3b116869839721dd600
2019-10-15 21:40:39 -07:00
Pirama Arumuga Nainar
105cab2b5a Pass -static-libgcc to Windows link commands
This was unnecessary in the past, when -nodefaultlibs was used while
linking, but that changed with
aosp/I722bd6596a1f3f5819f2767c29c0fa1e8b3ec0e8.

Test: simpleperf_ndk64.exe no longer depends on libgcc_s_seh-1.dll.
Change-Id: I435d7302906eb3758e758b5aefca8763bfba6290
2019-10-15 13:58:30 -07:00
Slava Shklyaev
236d7a7ab9 Add android.hardware.neuralnetworks@1.3
Bug: 139120468
Test: m
Change-Id: I4f305a7698f2d9ec5f8f4244124570d9318b58a1
Merged-In: I4f305a7698f2d9ec5f8f4244124570d9318b58a1
(cherry picked from commit f4b5a5ba08)
2019-10-11 12:52:06 +01:00
Colin Cross
5b00c21d5f Revert "Merge "Revert "Add android.hardware.neuralnetworks@1.3"" am: eccca6c246 am: b393327ccb am: 99f0abb4d9"
This reverts commit 6b3286cc7e.

Reason for revert: revert of a cherry-pick broke master

Change-Id: I4f305a7698f2d9ec5f8f4244124570d9318b58a1
2019-10-10 22:58:07 +00:00
Lev Proleev
6b3286cc7e Merge "Revert "Add android.hardware.neuralnetworks@1.3"" am: eccca6c246 am: b393327ccb am: 99f0abb4d9
am: 14e9629af7

Change-Id: Iaaa966036c9002340026a4a7b069480102d6e43e
2019-10-10 14:54:04 -07:00
Lev Proleev
d84ed52753 Revert "Add android.hardware.neuralnetworks@1.3"
This reverts commit 3cf57d72ce.

Reason for revert: the topic breaks git_qt-dev-plus-aosp

Change-Id: I4ee625982dac1b12755e9ebc6e0cdb2bfbd25613
2019-10-10 13:54:14 +00:00
Slava Shklyaev
3cf57d72ce Add android.hardware.neuralnetworks@1.3
Bug: 139120468
Test: m
Change-Id: Iee24fd8e70805eab3e352186e543fe02246a6a72
Merged-In: Iee24fd8e70805eab3e352186e543fe02246a6a72
(cherry picked from commit f4b5a5ba08)
2019-10-08 16:58:43 +01:00
Lev Proleev
572c773037 Merge "Add android.hardware.neuralnetworks@1.3" 2019-10-04 15:34:10 +00:00
Yi Kong
bc36047239 Merge "Remove -Wno-c++98-compat-extra-semi warning flag" am: 444c809bbc am: 3d472c61aa am: 2f0bc4f791
am: 6b9b949711

Change-Id: I72131845b825655da31b453adb65194ed02902dd
2019-10-01 23:03:48 -07:00
Yi Kong
d0ce0fbfde Remove -Wno-c++98-compat-extra-semi warning flag
hidl/aidl actually does concern about this warning. After fixing their
codebase, this flag is no longer needed.

Test: presubmit
Change-Id: Id88abea88137be0f873c21db76644fe78b9045c8
2019-10-01 22:42:59 +00:00
Yi Kong
7bcb89909c Merge "Remove -Wno-format-pedantic cflag" am: aefd0af575 am: 65fcfa1fc1 am: 14007d89e2
am: 3a248c70aa

Change-Id: Ia4fb0d1434233d4e2b0a1487dad5542bed7b4fe1
2019-09-23 11:25:44 -07:00
Yi Kong
aefd0af575 Merge "Remove -Wno-format-pedantic cflag" 2019-09-23 17:48:21 +00:00
George Burgess IV
e1bddb2799 Merge "soong: -Werror=fortify-source" am: 83dcee3094 am: bf6c16ad48 am: 28601812b9
am: 95428ce162

Change-Id: I3bf5390975ede10b9d78cb37c1c05a33025c1ddd
2019-09-20 17:29:12 -07:00
Yi Kong
011aaa46c5 Remove -Wno-format-pedantic cflag
This is no longer needed.

Test: presubmit
Bug: 20148343
Change-Id: Ie377b3cd183ae89bc159c3b31c64960bce3bc753
2019-09-20 17:24:21 -07:00
Treehugger Robot
83dcee3094 Merge "soong: -Werror=fortify-source" 2019-09-20 23:49:33 +00:00
George Burgess IV
6c691644f7 soong: -Werror=fortify-source
Recently, we started deferring to clang for some of its built-in
FORTIFY-like warnings. We should always treat these as errors, since
they represent potential security vulnerabilities.

Bug: 131861088
Test: m. Also made a compilation in Bionic fail; verified the build
  command had -Werror=fortify-source in it.

Change-Id: I2715ea411ef067f801534dab4d306fef5431f290
2019-09-20 11:15:40 -07:00
Pirama Arumuga Nainar
8611c28a81 Merge "Switch to clang-r365631b" am: b204303b35 am: 38b8fd75eb am: c6f4ea44ab
am: aba9643204

Change-Id: Ie487c46381c37f027facdcf773de0bf29fe40ee9
2019-09-17 09:55:20 -07:00
Pirama Arumuga Nainar
24d49119d8 Switch to clang-r365631b
Bug: https://github.com/android/ndk/issues/1076
Test: TH
Change-Id: Ica61fd13d9d7ecc742a7a89f5bb04cc6e1caf9f2
2019-09-16 15:06:41 -07:00
Colin Cross
482c51ebcd Merge "Add missing cortex-a76 arm configuration" am: ee3f105f25 am: 2d4be03254 am: 81438ccb9f
am: b1f6405b31

Change-Id: Ie2ed3184ddcd6112fb9ba3c1bd3390bd63e634dd
2019-09-12 16:36:04 -07:00
Luca Stefani
2af7d882e8 Add missing cortex-a76 arm configuration
Change-Id: I55620e602b9e97fe7a6d36fa142ddfde77b6025b
2019-09-12 18:37:45 +02:00
Vic Yang
6e5ade8a08 Merge "Do not dedupe libprotobuf-cpp variants" am: f59007cf23 am: fe83f548ac am: 752a637f66
am: 1e87018a80

Change-Id: I7771ee3ed3ee64f6778700c13dc640fa8a510ff9
2019-09-09 18:58:58 -07:00
Treehugger Robot
f59007cf23 Merge "Do not dedupe libprotobuf-cpp variants" 2019-09-10 00:30:36 +00:00
Yi Kong
535b879b3b Merge "Remove '-Wno-return-std-move-in-c++11' flag" am: 23482a55ae am: c426b4e57f am: 488636d61f
am: d25bfddd15

Change-Id: I70f52cff371fd5f8f07c760f76f5d7adab1f0644
2019-09-09 12:34:54 -07:00