Commit Graph

4360 Commits

Author SHA1 Message Date
Treehugger Robot
de8b140bf6 Merge "Add option test_min_api_level and test_min_sdk_version for auto-generated test config" 2019-09-19 16:48:48 +00:00
Mitch Phillips
3842791711 Merge "Add corpus and dictionary properties to cc_fuzz." am: 4e839ec3a5 am: a1be84a806 am: 520b313b3d
am: f81d3c9bc4

Change-Id: I7dd22995913cc3700df96bdbae528beddf287f5f
2019-09-19 07:30:00 -07:00
Treehugger Robot
4e839ec3a5 Merge "Add corpus and dictionary properties to cc_fuzz." 2019-09-19 13:51:17 +00:00
nelsonli
0d7111ec0f Add option test_min_api_level and test_min_sdk_version for auto-generated test config
The new option will allow the auto-generated test config for cc_test to
include MinApiLevelModuleController and check the api-level before test.

Bug: 140912549
Test: 1. $vi platform_testing/tests/example/native/Android.bp
      2. add
          test_min_api_level: 29,
          or
          test_min_sdk_version: 29,
      3. $m -j hello_world_test
      4. check hello_world_test.config

Change-Id: Ic742d41898928df1637890bec87796d90e886516
2019-09-19 12:14:16 +08:00
Mitch Phillips
4e4ab8a141 Add corpus and dictionary properties to cc_fuzz.
Adds the corpus and dictionary properties to the cc_fuzz target.
Propagates these entries to the makefile backend via LOCAL_FUZZ_DATA, in
a similar manner to LOCAL_TEST_DATA.

Bug: 141026328
Test: m example_fuzzer, fuzz target should have adjacent corpus/dict
files.

Change-Id: If5add5a597cc479f4e084bdafbd0fc175cfd6321
2019-09-18 18:55:27 -07:00
Inseob Kim
6f05ee90b4 Merge "Add version to vendor variants" am: 362e9ce427 am: befa10bc9e am: cb8665e67d
am: 93442a6297

Change-Id: I984c06aecf29dda86971e3703217ebb35f6cd79a
2019-09-18 16:57:33 -07:00
Colin Cross
6ea023e579 Merge "Revert "Remove old-style support for translated second architectures"" am: 4c5032bb66 am: 39293b4068 am: 2cc88baaa0
am: 4a017dffb5

Change-Id: Ib1c16811731313086bc452341e380e269a9162e8
2019-09-18 14:44:05 -07:00
Colin Cross
b88fe4be9b Merge "Remove old-style support for translated second architectures" am: da62bf96ce am: 94bac35d78 am: b60d2c245a
am: f757e18734

Change-Id: I034da2151297d396b6cb0c19b7fe4a1b17768c04
2019-09-18 14:19:19 -07:00
Colin Cross
4c5032bb66 Merge "Revert "Remove old-style support for translated second architectures"" 2019-09-18 21:12:45 +00:00
Colin Cross
402be41aa8 Revert "Remove old-style support for translated second architectures"
This reverts commit fe6330c7d2.

Reason for revert: this was accidentally propping up NDK builds
Bug: 141242600
Change-Id: Ie9f8e31479a74e8e9e14d720a5936da6b1d5d113
2019-09-18 21:12:31 +00:00
Treehugger Robot
da62bf96ce Merge "Remove old-style support for translated second architectures" 2019-09-18 20:47:43 +00:00
Colin Cross
fe6330c7d2 Remove old-style support for translated second architectures
Translated second architectures now go in NativeBridgeArch instead
of DeviceSecondaryArch.

Bug: 141242600
Test: m checkbuild
Change-Id: I568046330abc002d4eed582cb999b62a5eaba790
2019-09-18 16:23:18 +00:00
Inseob Kim
64c4395386 Add version to vendor variants
Vendor variant is now divided into several vendor.{version} variants,
depending on their intended usages:

vendor.{BOARD_VNDK_VERSION}: vendor and vendor_available modules
vendor.{PLATFORM_VNDK_VERSION}: VNDK modules in the source tree
vendor.{snapshot_ver}: VNDK snapshot modules

This also affects exported module names from Soong to Make. But to
maintain backward compatibility, ".{BOARD_VNDK_VERSION}" suffix will not
be emitted for modules having version BOARD_VNDK_VERSION, so that vendor
modules still can be referred as-is.

Bug: 65377115
Bug: 68123344
Test: clean build and boot blueline
Change-Id: Ib9016a0f1fe06b97e9423fd95142653a89a343fa
2019-09-18 10:53:30 +09:00
Dan Shi
64fbeb187a Merge "Revert "Revert "Force gtest to use adb unroot if required_root is false or not set""" am: f7e6870f81 am: 4d4d939d76 am: c3ffcfbbc4
am: 1d52b07eed

Change-Id: Ib6592f59d7f5ae4bbac2140d91cceba1f06cc8ab
2019-09-17 17:53:38 -07:00
Treehugger Robot
f7e6870f81 Merge "Revert "Revert "Force gtest to use adb unroot if required_root is false or not set""" 2019-09-18 00:20:16 +00:00
Jooyung Han
333d0f72d6 Merge "Add "apex_vndk" module type" am: 1f6c94a3ac am: 87f0f3781c am: 49fb19f803
am: 834e9c7904

Change-Id: I2f4dfebe0d821b07633e296b6af16f43bd8de8b0
2019-09-17 10:48:19 -07:00
Treehugger Robot
1f6c94a3ac Merge "Add "apex_vndk" module type" 2019-09-17 17:14:48 +00: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
Dan Shi
bc0f26028a Revert "Revert "Force gtest to use adb unroot if required_root is false or not set""
This reverts commit 1a5eeb3e35.

Reason for revert: Fix landed in aosp/1122723

Change-Id: I8b487d602d48b9dba35affc8eb31578efd815e52
2019-09-17 02:43:50 +00: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
Julien Desprez
443c19c9fd Merge "Revert "Force gtest to use adb unroot if required_root is false or not set"" am: 74b0a4891e am: 7583b2d835 am: 1cec6d044b
am: 87bf978d9d

Change-Id: I637cde4f08cbf906fa74686ec464594a581c5cbc
2019-09-13 20:41:18 -07:00
Julien Desprez
74b0a4891e Merge "Revert "Force gtest to use adb unroot if required_root is false or not set"" 2019-09-14 03:08:57 +00:00
Julien Desprez
1a5eeb3e35 Revert "Force gtest to use adb unroot if required_root is false or not set"
This reverts commit b2cb324ce1.

Reason for revert: broke host-side test mapping

Change-Id: Iea63395d525444421fc27ef5bc660362eba11db0
2019-09-14 03:06:26 +00:00
Yi Kong
b5d6cd844c Merge "Remove use_gnu_strip option" am: d14f7b1e11 am: 89b7ee9915 am: 4c91c1c874
am: c6e2346152

Change-Id: I40bc3b332c9439f39c9e2a5b0d9a682096a01832
2019-09-13 17:06:26 -07:00
Yi Kong
d14f7b1e11 Merge "Remove use_gnu_strip option" 2019-09-13 23:22:30 +00:00
Yi Kong
ab5e514208 Remove use_gnu_strip option
This option is no longer used anywhere.

Test: presubmit
Change-Id: I1a5f2d14e24ecf7c15a437054b8a95ddaf57da2f
2019-09-13 12:18:47 -07:00
Dan Shi
95b71153ca Merge "Force gtest to use adb unroot if required_root is false or not set" am: d2ac6985e9 am: f896037e42 am: 4a558599ff
am: 1aae31942e

Change-Id: Ia08e701447965f084899e03bd4c65ebcbdfcb45b
2019-09-13 09:43:18 -07:00
Dan Shi
d2ac6985e9 Merge "Force gtest to use adb unroot if required_root is false or not set" 2019-09-13 15:55:04 +00: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
Pirama Arumuga Nainar
3c220171e6 Merge "Disable coverage for native-bridge modules" am: 9dab630dcb am: 449cced69a am: 646f88e634
am: cdbcbda785

Change-Id: I8587504b5360efaeffbed1fb794e7f84d8a52196
2019-09-12 16:35:13 -07:00
Colin Cross
ee3f105f25 Merge "Add missing cortex-a76 arm configuration" 2019-09-12 22:50:18 +00:00
Pirama Arumuga Nainar
5f69b9a068 Disable coverage for native-bridge modules
Bug: http://b/137883967

With coverage enabled, native-bridge modules throw a SEGV_ACCERR.

Test: Successfully run the app linked in the bug on a coverage build.
Change-Id: I9f3622b7b6d3189337c445a26d6bf81c96820c2e
2019-09-12 13:18:48 -07:00
Martin Stjernholm
f1591e38f0 Merge "Treat libclang_rt.hwasan-* the same way as the other Bionic bootstrap libs." am: 931849f36f am: 5bdc6b0f22 am: ba2b1b02e3
am: 9f30d05a37

Change-Id: I568b301ef4f0abef688268e5d2a3f831c74165c0
2019-09-12 11:27:36 -07:00
Martin Stjernholm
931849f36f Merge "Treat libclang_rt.hwasan-* the same way as the other Bionic bootstrap libs." 2019-09-12 17:55:55 +00:00
Dan Shi
b2cb324ce1 Force gtest to use adb unroot if required_root is false or not set
Bug: 140123924
Test: atest hello_world_test
Change-Id: I36fb31d274c179dc8510e08cdb5dc79601546299
2019-09-12 10:54:49 -07:00
Luca Stefani
2af7d882e8 Add missing cortex-a76 arm configuration
Change-Id: I55620e602b9e97fe7a6d36fa142ddfde77b6025b
2019-09-12 18:37:45 +02:00
Mitch Phillips
24a0127ed9 Merge "Add i386 host fuzzing support w/ cc_fuzz." am: 916f1e48dc am: 69d0cb8075 am: 17ab0433db
am: fcd4f4da58

Change-Id: I9cea7c988bbca5d496bc134bfc6da1a6cfa46205
2019-09-11 11:08:59 -07:00
Colin Cross
4e08ead52f Merge changes from topic "protobuf-3.9.1"
* changes:
  Add suffix and target.vendor.suffix to shared libraries
  Make javanano a plugin
2019-09-11 18:00:16 +00:00
Martin Stjernholm
279de572d7 Treat libclang_rt.hwasan-* the same way as the other Bionic bootstrap libs.
Ensure that it ends up in the bionic/ subdir in the Runtime APEX and is
symlinked from /system/lib(64). That makes it available in the default
(platform) linker namespace and no longer requires it to be accessible
through the runtime namespace. All this makes it consistent with how the
other Bionic libs are handled, and avoids the need for various special
cases in ld.config.txt files (to be cleaned up later).

With this there might no longer be a need for a linker namespace for the
Runtime APEX, and we could consider removing the kludge with the
/apex/com.android.runtime/${LIB}/bionic subdirectories and the special case
in getCopyManifestForNativeLibrary in apex.go. However, keeping it calls out
the special treatment of those libraries, and allows a namespace to be added
again if necessary.

Test: Build and boot on taimen_hwasan-userdebug
Test: adb shell /apex/com.android.art/bin/dexdump on taimen_hwasan-userdebug
Test: atest CtsCompilationTestCases on taimen_hwasan-userdebug
Bug: 140734238
Bug: 140790209
Change-Id: Ieb506bfa5d5c159db391273c7eba41d7909de286
2019-09-11 12:16:31 +01:00
Mitch Phillips
916f1e48dc Merge "Add i386 host fuzzing support w/ cc_fuzz." 2019-09-10 22:35:42 +00:00
Ivan Lozano
81f4fe5f76 Merge "Move splitFileExt to the android package." am: 06b9611da4 am: 34a2ac7be1 am: b36afad8e8
am: 2afbc97f8f

Change-Id: Id1bd6e6074c4fb6e50f68fc83ae1e19765993046
2019-09-10 13:14:40 -07:00
Ivan Lozano
022a73b9ad Move splitFileExt to the android package.
Both Rust and cc use this function, so move it over to android
package's util.go and export it.

Bug: 140734195
Test: m -j

Change-Id: Ibe8b7a94592e402468a027ad6027b187f29c8e07
2019-09-09 20:29:31 -07:00
Jooyung Han
344d5439c1 Add "apex_vndk" module type
"apex_vndk" is a variant of "apex" module.

apex_vndk {
  name: "com.android.vndk",
  ..
}

This rule is used to produce a VNDK APEX per vndk version.
It supports automatic inclusion of vndk libs.

If "vndk_version" property is set, the prebuilt vndk libs of
the version will be included in the apex bundle.

apex_vndk {
  name: "com.android.vndk.v29"
  vndk_version: "29",
  ...
}

Otherwise, platform's vndk version is used.

This will replace /system/{lib}/vndk-{ver} and vndk-sp-{ver}.

Bug: 134357236
Bug: 139772411
Test: m com.android.vndk
Change-Id: Ib5c86e625839389670d13c683a7427198ef6852f
2019-09-10 11:22:59 +09: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
Yi Kong
23482a55ae Merge "Remove '-Wno-return-std-move-in-c++11' flag" 2019-09-09 18:48:23 +00:00
Yi Kong
751569192c Remove '-Wno-return-std-move-in-c++11' flag
This flag is no longer needed.

Test: presubmit
Change-Id: I9718ea1d448a6f598e6da61c3b30a0c9470d9c08
2019-09-09 18:48:15 +00:00
Vic Yang
7f438b1df3 Do not dedupe libprotobuf-cpp variants
The vendor variants of libprotobuf-cpp have their version numbers
included in their names, so the SONAME field is different.  Whitelist
the 'lite' and 'full' versions to have different core and vendor
variants.

Test: Build a device with TARGET_VNDK_USE_CORE_VARIANT set.
Change-Id: I9880a5d7172a9f35f304af8e7dcababdcbc2ca23
2019-09-09 10:54:50 -07:00
Justin Yun
9a171b68f8 Skip creating vendor variants for native_bridge modules am: 1282f42ed6 am: b4ce961486 am: e24b072028
am: ce07f30fb7

Change-Id: I06aca8b19d2bef695da1462c877e57085aaa52ce
2019-09-09 04:43:59 -07:00