Commit Graph

1052 Commits

Author SHA1 Message Date
Dan Willemsen da37007955 Merge "Add Mac 11.1 SDK to the allowlist" am: ba680de96e am: 21a794a0d8 am: 332fd96a00
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1556740

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib511f0fbd3b5f38ce9f00bb489919cfcc12b045e
2021-01-22 21:28:40 +00:00
Dan Willemsen ba680de96e Merge "Add Mac 11.1 SDK to the allowlist" 2021-01-22 19:05:09 +00:00
Jeongik Cha f5c418cedf Update VndkMustUseVendorVariantList
As AIDL version rule is changed, change VNDK list accordingly.
'unstable' and non-versioned aidl module will be cleaned up

Bug: 150578172
Test: m
Change-Id: I3e82b2c01f1fca75ac97985053b4a5826d151340
2021-01-22 20:32:02 +09:00
ChengYou Ho 262adc3e41 Create Weaver aidl interface am: 4b197e110b am: 1ba735ada4 am: 56a957fa9a
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1554279

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I85131d81820b53a852633ec758510a580503bcf1
2021-01-22 07:44:07 +00:00
ChengYou Ho 4b197e110b Create Weaver aidl interface
Bug: 176107318
Change-Id: Ia4b628edf1ef51c71af7078818c0adf2a4183d03
2021-01-22 06:34:22 +00:00
Yabin Cui 5e3d82ebdb Switch to clang-r407598b (12.0.2).
Bug: 178106097
Test: build.
Change-Id: I1ce256547fc395a6b440950b4c88f7fe777c86ee
2021-01-21 21:30:45 -08:00
Christopher Di Bella 81bc3b130d Merge "adds new warnings to Android build (1/2)" am: 490b9d7931 am: 3cab1ce6f5 am: d19b58ada9
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1497076

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I6159e650973c49c6b768a109e32ac6f2199fe967
2021-01-21 23:55:11 +00:00
Dan Willemsen 5191b00369 Add Mac 11.1 SDK to the allowlist
Historically we've only had to add one major release a year to the Mac
SDK allowlist, but this year the versioning scheme changed and 11.1 is a
minor update to 11 (instead of 10.x.1 like in years past). Unfortunately
the Xcode tools don't let you just specify '11' like they did with
'10.x', so this is more complicated to fix in a scalable way.

Test: build with xcode 12.3 and macOS SDK 11.1
Change-Id: I2e88e9289727261389a863e7147a0b146ec5148a
2021-01-21 14:56:39 -08:00
Jiyong Park 942c119b14 Merge changes from topic "future_symbol" am: 1de5a578d2 am: 27d194c793 am: 9e6596f3ed
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1425589

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic0c73002351347ad25c2ef23885743cfa457ce61
2021-01-21 18:55:24 +00:00
Christopher Di Bella 23a991c04e adds new warnings to Android build (1/2)
The following warnings have been turned on, and turned on as errors:

-Wbool-operation
-Wimplicit-int-float-conversion
-Wint-in-bool-context
-Wstring-compare
-Wstring-plus-int
-Wxor-used-as-pow

Test: no extra tests necessary

Change-Id: Ic8ab26de9e5323e9b81ad79eef787abfb264848c
2021-01-21 17:53:42 +00:00
Jiyong Park 1de5a578d2 Merge changes from topic "future_symbol"
* changes:
  API availability should be checked using __builtin_available
  __ANDROID_API__ tracks min_sdk_version
2021-01-21 16:33:05 +00:00
Chih-Hung Hsieh 9170f0f2c4 Add clang-analyzer check if selected. am: 04f8d379e6 am: 6b6b7353f8 am: dee5011892
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1554894

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iaa5585831e6b61a6d62d2e37b8383e3ea7b100de
2021-01-20 08:46:41 +00:00
Chih-Hung Hsieh 04f8d379e6 Add clang-analyzer check if selected.
* WITH_TIDY=1 should not include clang-analyzer-* checks
  because they are too slow.
* Nightly builds will use both WITH_TIDY=1 and
  CLANG_ANALYZER_CHECKS=1.

Bug: 173736193
Test: make with WITH_TIDY=1 and CLANG_ANALYZER_CHECKS=1
Change-Id: I3885fd0e20475ceee5e3798bffc11a61994ac113
2021-01-19 19:21:39 -08:00
Ryan Prichard 6761a5eeae Merge "Switch platform EH unwinder to prebuilt LLVM libunwind" am: 809eac3057 am: 048809c624 am: 471dfd6809
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1551580

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I93276241d217b7d2ebdffa58abb60d2d0721c672
2021-01-20 02:15:55 +00:00
Ryan Prichard 809eac3057 Merge "Switch platform EH unwinder to prebuilt LLVM libunwind" 2021-01-20 00:10:59 +00:00
Chih-Hung Hsieh 40891da084 Do not enable all clang-analyzer-* checks, am: 4d31a041c7 am: 1bf2e3f449 am: a8e4121466
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1553374

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7ad24a1cd9c755dcfda34319dece88bfe3ae9a74
2021-01-16 10:18:29 +00:00
Chih-Hung Hsieh 4d31a041c7 Do not enable all clang-analyzer-* checks,
* clang-analyzer is slow and enables clang-diagnostic-padded,
  which cannot be suppressed yet.

Test: make with WITH_TIDY=1 for crosshatch-userdebug
Change-Id: I20193f0db3154b037d58c5ca012a9e753b176722
2021-01-15 21:10:35 -08:00
Treehugger Robot 6b15f92d95 Merge "add more global default checks" am: 9235fea8c3 am: 52693cd46a am: a979a9bae7
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1551578

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I8539b9e02317bbacfcd4d2660947b99a92099d89
2021-01-16 01:55:08 +00:00
Chih-Hung Hsieh 34850d350e add more global default checks
Test: make with and without WITH_TIDY=1
Change-Id: Iee07707158f7204e961970ba4d518403b3b2aaf3
2021-01-15 14:31:13 -08:00
Chris Li 5e13c08b9f Revert "To use same default for the nightly builds." am: 46cad069d1 am: 61316dbda6 am: ff8118fe9d
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1549528

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I26754f095e1016bf30b27f8a1308ed36a8e42ecc
2021-01-15 14:08:20 +00:00
Janis Danisevskis 7dde1e4004 Merge "The build related changes for Secure Clock and Shared Secret functionalities." am: 0ce3a40bf8 am: 3b55e031cd am: cf4ad11544
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1519849

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic597e60c0fe3ccad109aed17d45783a811166e56
2021-01-15 13:55:17 +00:00
Jiyong Park 423e37873b API availability should be checked using __builtin_available
This change turns -Wunguarded-availability option which enforces calls
to APIs which are introduced after the min_sdk_version of the
compliation unit to be guarded with __builtin_available check. For
example, let's assume that we have foo() which was introduced with API
level 30.

void foo() __INTRODUCED_IN(30);

Then if foo() is called for a module whose min_sdk_version is less than
30, say 26, it should be called as below:

if (__builtin_available(android 30, *)) {
  foo();
} else {
  // fallback impl
}

For modules whose min_sdk_version is >=30, the guard is not required.

Bug: 150860940
Bug: 134795810
Test: m

Change-Id: I084148b9a051350626a37cb394daa4398b7332d5
2021-01-15 09:43:35 +09:00
Treehugger Robot ee8ae11c0f Merge "Must use vendor variant for health storage AIDL HAL" 2021-01-14 22:22:08 +00:00
Chris Li 46cad069d1 Revert "To use same default for the nightly builds."
This reverts commit b063dc4221.

Reason for revert: DroidMonitor-triggered revert due to breakage https://android-build.googleplex.com/builds/quarterdeck?branch=git_master&target=crosshatch-userdebug&lkgb=7080774&lkbb=7082597&fkbb=7080869, bug 177549474

Test: make
Change-Id: I8b6cf3b56fddde9832e1428a3d1aef00f19637fb
2021-01-14 13:37:54 -08:00
Yifan Hong 59d876d69b Merge "Must use vendor variant for health storage AIDL HAL" 2021-01-14 20:32:55 +00:00
Janis Danisevskis 0ce3a40bf8 Merge "The build related changes for Secure Clock and Shared Secret functionalities." 2021-01-14 18:04:02 +00:00
Chih-Hung Hsieh a66a988708 Fix comment. am: b767f913f1 am: 94bdb905c9 am: 575999b9cb
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1549745

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib964ff78ad7dce355985e3489b5e884026b6536e
2021-01-14 09:05:12 +00:00
Ryan Prichard b35a85ee8b Switch platform EH unwinder to prebuilt LLVM libunwind
For the platform libc++ STL, remove the
-Wl,--exclude-libs,libunwind_llvm.a argument, which is redundant with
the same argument in deviceGlobalLdflags.

Bug: http://b/153025717
Test: device boots
Change-Id: Idd7791d52f74aab2d5f59419fb75f841fc29a2eb
2021-01-13 19:51:06 -08:00
Yifan Hong 78d0f4880c Must use vendor variant for health storage AIDL HAL
Test: mmma hardware/interfaces/health/storage
Bug: 177470478
Change-Id: Iae8dc547d68ecb528c0eb9684353267c1dd30459
Merged-In: Iae8dc547d68ecb528c0eb9684353267c1dd30459
2021-01-13 16:11:45 -08:00
Yifan Hong caaef4d275 Must use vendor variant for health storage AIDL HAL
Test: mmma hardware/interfaces/health/storage
Bug: 177470478
Change-Id: Iae8dc547d68ecb528c0eb9684353267c1dd30459
2021-01-13 16:07:37 -08:00
Chih-hung Hsieh 863faf6e6c Merge "To use same default for the nightly builds." am: 66f7fdd1c8 am: 10850c9de7 am: c98dc51ae0
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1546617

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3d49935dc0b7fb70107a2211a7fac2d961643060
2021-01-13 23:01:16 +00:00
Chih-Hung Hsieh b767f913f1 Fix comment.
Test: make
Change-Id: I6c69549cb873e1d160ec6d590749361dc1a291dd
2021-01-13 13:24:15 -08:00
Chih-hung Hsieh 66f7fdd1c8 Merge "To use same default for the nightly builds." 2021-01-13 21:22:48 +00:00
Orion Hodson 3264c90068 Merge "Remove remaining libnativehelper implicit includes" am: 62555ffa5a am: 02d9f55b5b am: 448a038a4d
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1371943

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib9e4a808dc8d72c03232850374708164a08b2915
2021-01-13 07:46:01 +00:00
Orion Hodson 62555ffa5a Merge "Remove remaining libnativehelper implicit includes" 2021-01-13 06:11:03 +00:00
Chirag Pathak cfa220559d The build related changes for Secure Clock and Shared Secret functionalities.
Also restored sorting.

Test: N/A
Bug: b/171844725
Bug: b/168673523

Change-Id: I423e08cab38ef685fd9eb6a3c338e285de0e8757
2021-01-12 11:13:16 -08:00
ChengYou Ho 8e5839c075 Create authsecret aidl interface am: 50ab3ff048 am: 9739215454 am: 355ab7a280
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1541204

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I2967ea71cbcdd168f07cd985556c7be739949996
2021-01-12 09:37:13 +00:00
Chih-Hung Hsieh b063dc4221 To use same default for the nightly builds.
* disable misc-no-recursion check

Bug: 173736193
Test: make with WITH_TIDY=1
Change-Id: Ibdf90d520f67b26f7adade4698868a47afa01161
2021-01-12 00:55:28 -08:00
ChengYou Ho 50ab3ff048 Create authsecret aidl interface
Bug: 176107318
Change-Id: Ia2ddb148600fb846a41802b25ec73a7747720090
2021-01-12 06:01:15 +00:00
ChengYou Ho 35556e51b6 Create OemLock aidl interface am: 142b28a095 am: 33274bb3ec am: de21b6de15
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1542685

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I9807537e7eda2efca383f8babd6b14bd51611f4c
2021-01-11 07:43:35 +00:00
ChengYou Ho 142b28a095 Create OemLock aidl interface
Bug: 176107318
Change-Id: I31da15e7aedfaafb1841de0fc8e81aed73405ae0
2021-01-11 05:57:07 +00:00
Yabin Cui e769dbb352 Merge "Switch to clang-r407598 (12.0.1)." am: 87b16fa3b4 am: 5327ff1d57 am: 27451f6122
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1541244

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia255b87e3f72b5757193ad3d4edbede713fbf127
2021-01-07 03:15:20 +00:00
Yabin Cui db7dda89f3 Switch to clang-r407598 (12.0.1).
Also suppress a clang-tidy warning and a ubsan check to pass compilation.

Bug: 171348143
Test: build.
Change-Id: Ie5162c15df172cefd7cff9776e54531fd620bc23
2021-01-05 19:43:45 -08:00
Kalesh Singh df619a6997 Merge "Reland: Add android.hardware.memtrack-unstable-ndk_platform" am: 98dea94982 am: c425b49238 am: 12c0c922c2
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1534599

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If661274a75f52c0a132b9c90d66dd05a33407ef9
2020-12-23 02:14:39 +00:00
Kalesh Singh 7b63b2677d Reland: Add android.hardware.memtrack-unstable-ndk_platform
Bug: 175021432
Test: Fixes build failure on aosp/1518666
Change-Id: Id53bb93bfce35347637a271b7f6aa3c1c4d8c839
2020-12-22 20:49:54 +00:00
Kalesh Singh 5b2cbe6810 Merge "Revert "Add android.hardware.memtrack-unstable-ndk_platform"" am: fc0cba0b77 am: cf7a4b306f am: dcf072887d
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1530882

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I9ed5e1681bb4287b47c17037d5613bcb95518238
2020-12-16 02:22:57 +00:00
Kalesh Singh fc0cba0b77 Merge "Revert "Add android.hardware.memtrack-unstable-ndk_platform"" 2020-12-16 00:48:06 +00:00
Kalesh Singh 67d69f0d1c Revert "Add android.hardware.memtrack-unstable-ndk_platform"
Revert submission 1518702-memtrack-aidl

Reason for revert: Broken tests and boot time regressions
Reverted Changes:
Ic4dd70e2c:Add android.hardware.memtrack-unstable-ndk_platfor...
Iaf99d0ca4:Add stable aidl memtrack HAL to product packages
Iac54ae2ba:Add stable aidl memtrack hal to vndk list
If310210a3:libmemtrack: Add support for AIDL memtrack HAL
Ib6c634def:Memtrack HAL: Add stable AIDL implementation
I5e1d0e006:Memtrack HAL stable aidl sepolicy

Change-Id: I4fc71dc5813d10600727a2630c10f5d113f61936
2020-12-16 00:19:38 +00:00
Yo Chiang f093c56bea Merge changes Ie540dba5,Ibfc29fe0,I99e97787 am: e8e8606892 am: dc5b316ddc am: cbac6b98d8
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1513138

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I8f458a270870b1ccbd70bd2e2a458cabdf90af38
2020-12-15 08:11:57 +00:00
Yo Chiang e8e8606892 Merge changes Ie540dba5,Ibfc29fe0,I99e97787
* changes:
  Refine ABI check and enable ABI check on APEX exported libs
  Refactor cc/cc.go cc/library.go shouldCreateSourceAbiDump()
  Refactor cc/sabi.go
2020-12-15 06:45:11 +00:00
Treehugger Robot 2dd6ecceee Merge "Add android.hardware.memtrack-unstable-ndk_platform" am: 1e14bed0c6 am: e636d61bb1 am: b6af5aca26
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1522521

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I328c078df2b86e4334dc035e93d6edcb97c93f24
2020-12-14 20:09:30 +00:00
Treehugger Robot 1e14bed0c6 Merge "Add android.hardware.memtrack-unstable-ndk_platform" 2020-12-14 18:36:10 +00:00
Yo Chiang 8aa4e3f99e Refactor cc/sabi.go
* Rename `vndk_deps` mutator to `sabi_deps` to better reflect its
  purpose.
* Eliminate duplication of ABI dump generation logic. sabiDepsMutator
  should call libraryDecorator.shouldCreateSourceAbiDump() to determine
  if a module needs to be marked with CreateSAbiDumps.
* Non-VNDK libraries that are opt-in to ABI check would have their
  dependencies correctly marked with CreateSAbiDumps.
* Refactor some lines to idiomatic syntax.
* Add comment strings.

Bug: 145608479
Bug: 173492236
Test: TH presubmit
Change-Id: I99e97787bdf2a4f0c970809161b64aa668ff3d1a
2020-12-14 03:04:58 +00:00
Treehugger Robot aa81733320 Merge "Move keymint to android.hardware.security." am: f876a3866a am: 572056d685 am: 23cbdc54de
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1525191

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia1fe399567a10c7b129cf1e3feff809e649bf6ff
2020-12-12 01:07:06 +00:00
Shawn Willden 7831d3eb42 Move keymint to android.hardware.security.
Bug: 175345910
Bug: 171429297
Test: Build
Change-Id: I219fd6c976cf6b624dcf0ae234f66e27ff251cd0
2020-12-11 20:37:03 +00:00
Kalesh Singh d49e1829e6 Add android.hardware.memtrack-unstable-ndk_platform
Bug: 175021432
Test: Fixes build failure on aosp/1518666
Change-Id: Ic4dd70e2c707c8461f3a591d023555b26197fc14
2020-12-09 19:16:09 -05:00
Steven Moreland 1233062860 Merge "vndk.go: remove keymint" am: 252e4c44f1 am: 99d01eab68 am: 1970d8b464
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1514844

Change-Id: I780269d2c530b8c850fd36b5fd9414ebe900b7b3
2020-12-04 20:16:56 +00:00
Steven Moreland b9157b152e vndk.go: remove keymint
keymint-unstable is the VNDK variant (and this list is only checked to
be a superset of the desired libraries).

The other library exists, but it is removed because it's not in the VNDK
and this list is only for VNDK libs.

Bug: 173660792
Test: build
Change-Id: I0e1a2a7af13f132cd3bfa4ca1305c098acbe747b
2020-12-03 21:44:14 +00:00
Treehugger Robot 04d5cfb8a6 Merge "Fail if non-allowlisted host system tool is used." am: 5bca812a4e am: e858060189 am: 09c764bc9e
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1508062

Change-Id: I8c33ea5438ba033eb5172bbfb12f7b86bf13d6b8
2020-11-24 10:25:50 +00:00
Jingwen Chen 2838c818da Fail if non-allowlisted host system tool is used.
This CL improves the clarity of the non-hermetic nature of using
HostSystemTools, and make the build fail if a caller tries to use a host
system tool that isn't allowlisted in config.go.

The only caller seems to be for xcrun, which is a special case that is
pretty hard to remove.

Test: TH presubmit
Change-Id: Icd3e7330406a08c00ac9682e37e2d42669f2e6b7
2020-11-23 20:43:41 -05:00
Janis Danisevskis 6002d9172f Merge "Fix Broken build 6978250 on aosp-master" am: caa0d93da0 am: 9660b33251 am: b780e01b66 am: a55b5bf4e0
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1504113

Change-Id: I375cab76339ab2141485a1488d4e4ef7bb8c6217
2020-11-19 02:25:41 +00:00
Janis Danisevskis 6439a8dae2 Fix Broken build 6978250 on aosp-master
Bug: 173570265
Change-Id: I3425dedf4ed8435420cca9b5917033262ba8b3cc
2020-11-18 14:26:41 -08:00
Treehugger Robot 837470b6fd Merge "Add keymint to vndk." am: beab64ea81 am: 9d69703838 am: 50790b6be4 am: ef3e6cecb1
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1431273

Change-Id: I2e24dfc2a8c541137864982b7b7e93ede178b45f
2020-11-17 17:51:31 +00:00
Treehugger Robot beab64ea81 Merge "Add keymint to vndk." 2020-11-17 16:13:50 +00:00
Treehugger Robot 03ce8555b7 Merge "add -nostdlibinc for arm64_linux_host" am: 8b16e407e2 am: 44261ca8a2 am: dc617c8ec4 am: 1a3e8079e7
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1493896

Change-Id: I28cd0e9f549d87287a950db0574cdcdb6b16b725
2020-11-10 08:18:28 +00:00
Jiyong Park b304e805d9 add -nostdlibinc for arm64_linux_host
The flag is needed to prevent the compiler from looking into the host
include paths like /usr/include.

Bug: 172869346
Test: inspect the include path by temporarily adding `-v`.
Change-Id: I73a16155a784916a1bd0babcb75d5f9079e13423
2020-11-10 11:55:42 +09:00
Treehugger Robot 60e35b2490 Merge "Always generate profiling debug info" am: 37f5a8fb86 am: 589415ee27 am: 9d4b2ab654 am: 012e20c1fd
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1485818

Change-Id: I71b2ef159c42ec1ad5c7ed15b84c2c2355712706
2020-11-04 04:09:44 +00:00
Yi Kong 110cd5fe7f Always generate profiling debug info
The additional debug info is used for sampling PGO. This does not affect
the size of final stripped binaries.

Also removed `-gmlt` flag in pgo.go, since it's actually a lower level
of debug option than the default (-g).

Test: build, verify final binaries are identical size
Bug: 79161490
Change-Id: Ie4cf4998695f78a50a7ac7a7a0853c625cbd8880
2020-11-03 18:13:21 +00:00
Treehugger Robot 1f8f2d2eb6 Merge "Revert "Add -fdebug-compilation-dir option"" am: 7397707014 am: d94b54b3f1 am: 4fcf38d906 am: 61826e676a
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1465912

Change-Id: I4f528e4095fb0895452fe86dcf0cc7c37121d8e2
2020-10-20 22:06:59 +00:00
Kousik Kumar d207cbed65 Revert "Add -fdebug-compilation-dir option"
Revert submission 1461902-debug-compilation-dir

Reason for revert: "-Xclang" isn't being uniformly respected everywhere. For example, in ".S" compilations, when I pass `-Xclang -fdebug-compilation-dir=.", the assembler seems to be ignoring it and then inserting the `pwd` into the command, however when I pass "-fdebug-compilation-dir=.", it strips out the path to the current working directory.
This indicates that we need to update re-client's input processor so that we can pass -fdebug-compilation-dir=. without "-Xclang" and then remove `PWD` setting.
I'll followup with a patch to add -fdebug-compilation-dir.

Reverted Changes:
Ib0f271e55:Add -fdebug-compilation-dir option
Ifa0592af5:Remove env-var-allowlist

Change-Id: I12fa0bf2fb4975ac3d1bffaf1358331548abc339
2020-10-20 09:29:34 -04:00
Kousik Kumar d1f8454d18 Merge "Add -fdebug-compilation-dir option" am: 5109979468 am: 157f088af3 am: 48f570f8a0 am: 80121541d1
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1460104

Change-Id: I42baaaf2a2f97bab3024baa803dd0208fcb92f7e
2020-10-16 07:35:17 +00:00
Kousik Kumar 5109979468 Merge "Add -fdebug-compilation-dir option" 2020-10-16 05:52:51 +00:00
Tom Cherry 016b1f9c6e Merge "Update liblog header paths after git project move" am: 2517c408e5 am: 5a09f1ca3b am: e9adce2139 am: 8b7dec844b
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1455957

Change-Id: If4bf27379d8aee6b17e05c8afb6fba2ea98133d9
2020-10-15 23:13:33 +00:00
Tom Cherry 2517c408e5 Merge "Update liblog header paths after git project move" 2020-10-15 21:24:58 +00:00
Kousik Kumar 578ba0021f Add -fdebug-compilation-dir option
The main use of this flag is to be to make both the debug info
and the build command line be independent of the compilation dir.
See: https://reviews.llvm.org/D63387 & https://blog.llvm.org/2019/11/deterministic-builds-with-clang-and-lld.html

Removed -fdebug-prefix-map and PWD variable being set in the compile
command line - these were workarounds we originally did to ensure that
the compile output is independent of the working directory and are no
longer needed now that we have -fdebug-compilation-dir.

Test: Ran "m
out/target/product/crosshatch/obj/SHARED_LIBRARIES/libexif.vendor_intermediates/same_vndk_variants.timestamp"
which fails on an RBE hardened stack without this change and passes with
this change.

Bug: b/169266636
Change-Id: Ib0f271e55f6cf0c89a30e65d3a0b25fe3f3a8f48
2020-10-15 15:25:08 -04:00
Colin Cross f376e13ce5 Revert "Make lots of tests run in parallel" am: 405af07859 am: 2ad22c3644 am: af502ff241 am: 04640cbdd8
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1456655

Change-Id: Iee706968d37c90bcb020c508f6650eeb7cba9da0
2020-10-10 08:12:20 +00:00
Colin Cross 405af07859 Revert "Make lots of tests run in parallel"
This reverts commit 323dc60712.

Reason for revert: Possible cause of test instability
Bug: 170513220
Test: soong tests

Change-Id: Iee168e9fbb4210569e6cffcc23e60d111403abb8
2020-10-09 18:34:24 -07:00
Tom Cherry 3d7611ee4c Update liblog header paths after git project move
liblog has moved from system/core/liblog to system/logging/liblog, so
update the path appropriately.

Bug: 170387172
Test: tree hugger
Change-Id: I68f881137ab8cbe91f36b20d4221d63fe3c5fc65
2020-10-09 14:49:58 -07:00
Joe Onorato a1d18d758e Refactor OWNERS files in platform/build/soong. am: a80b480eea am: fc8ab60603 am: 4f7df58874 am: da8d4bb493
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1455169

Change-Id: I4ada0b2a186b40cf59dff2523b5c21b80f899c85
2020-10-09 06:15:53 +00:00
Joe Onorato a80b480eea Refactor OWNERS files in platform/build/soong.
Pulls out all of the per-file rules into their relevant directories
so platform/build/soong:/OWNERS can be included everywhere we need
the list of build system owners.

Test: treehugger
Bug: 170407947
Change-Id: I5a4b2d252bd9b3c280cd9954cf0e65ac21153ede
2020-10-08 16:14:32 -07:00
Treehugger Robot 5db2b108ee Merge "Add android.system.keystore2-unstable-ndk_platform to vndk.go" am: 36e4ad1f4d am: df0998def7 am: 623ce19b3c am: dfc26da701
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1443716

Change-Id: If5c0adcb207627f70f1ec8bf8e296b80100a8486
2020-10-07 22:10:49 +00:00
Colin Cross c7e8d7d11b Merge "Make lots of tests run in parallel" am: 45fd6ace7e am: e81d9e0142 am: c1577e018e am: c2e904d7e1
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1439471

Change-Id: Ib0d3b461de8d5d3825c491ad393a3bd3969c2d07
2020-10-07 22:10:24 +00:00
Treehugger Robot 36e4ad1f4d Merge "Add android.system.keystore2-unstable-ndk_platform to vndk.go" 2020-10-07 20:45:52 +00:00
Colin Cross 45fd6ace7e Merge "Make lots of tests run in parallel" 2020-10-07 20:40:38 +00:00
Benjamin Schwartz 466bea6029 Merge "powerstats: PowerStats HAL has been renamed" 2020-10-07 19:27:16 +00:00
Tom Cherry b919754098 Merge "Reland: "Include system/core/liblog/include instead of using symlinks"" am: a5e9be9476 am: 320a70915c am: 7f7d71d898 am: 1a26aa1d7b
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1451057

Change-Id: Ia825f28f53a3f530c997a0f767204709208c2e4e
2020-10-07 16:54:48 +00:00
Janis Danisevskis e8f655ca46 Add android.system.keystore2-unstable-ndk_platform to vndk.go
Test: N/A
Bug: 160623310
Change-Id: Ic2e9897a1c103389b93a72df25c38fe96a8c7c09
2020-10-06 16:24:22 -07:00
Colin Cross 323dc60712 Make lots of tests run in parallel
Putting t.Parallel() in each test makes them run in parallel.
Additional t.Parallel() could be added to each subtest, although
that requires making a local copy of the loop variable for
table driven tests.

Test: m checkbuild
Change-Id: I5d9869ead441093f4d7c5757f2447385333a95a4
2020-10-06 15:12:22 -07:00
Tom Cherry 6ddbb00e24 Reland: "Include system/core/liblog/include instead of using symlinks"
It seems better to include this path directly rather than creating
symlinks in system/core that accomplish the same result.

Bug: 165825252
Test: treehugger
Change-Id: Ic78f09d86039540a2b0eead45e985b42c553f415
2020-10-06 10:45:28 -07:00
Benjamin Schwartz 399394b702 powerstats: PowerStats HAL has been renamed
Bug: 169864180
Test: m
Change-Id: I0db7d731c3aa81b2c9331570c93ec23038bd743c
2020-10-06 10:44:12 -07:00
Tom Cherry 75b6256d0d Merge "Revert "Include system/core/liblog/include instead of using symlinks"" am: 66fee25c5b am: 042238162e am: 14c51b94c6 am: 670fd6872b
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1449380

Change-Id: I95feb7e63e6595488fb9e10dbed4cdb7f2575dc9
2020-10-05 20:50:14 +00:00
Tom Cherry 66fee25c5b Merge "Revert "Include system/core/liblog/include instead of using symlinks"" 2020-10-05 19:26:17 +00:00
Tom Cherry 271f4acd72 Revert "Include system/core/liblog/include instead of using symlinks"
Revert submission 1428983-no-log-header-symlinks

Reason for revert: Build breaks
Reverted Changes:
I248a2f045:Include system/core/liblog/include instead of usin...
Ic189e0f59:Remove logging symlinks from system/core/include

Change-Id: I9ee896f5fde36c879c182365295c1f5a5a39a76b
2020-10-05 19:24:12 +00:00
Tom Cherry aed112885c Merge "Include system/core/liblog/include instead of using symlinks" am: 24ee3605fa am: f6a4e63413 am: 268f1856fd am: 6e1b73d2dc
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1429369

Change-Id: Ieb224be0921cf686bc96377eb566df863fa15df0
2020-10-05 19:02:48 +00:00
Tom Cherry 24ee3605fa Merge "Include system/core/liblog/include instead of using symlinks" 2020-10-05 15:26:51 +00:00
Pirama Arumuga Nainar 19634f0b0f Merge "Update to use clang-r399163b." am: 0b88bf33fc am: 18fc11a093 am: 55dd45d2eb am: 99ca618579 am: 035d633cf1
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1443739

Change-Id: Ibd47de622151303a7f341f1acb36184a85acb5ee
2020-10-02 18:33:14 +00:00
Stephen Hines 5060c9e558 Update to use clang-r399163b.
Bug: http://b/155835175
Test: aosp_blueline
Change-Id: I34d26da72a36b16491cf328075d817b073acfc0d
2020-09-30 19:07:42 -07:00
Yu-Han Yang 6229f2123c Merge "Add GNSS AIDL interfaces (build/soong)" 2020-09-26 02:34:36 +00:00
Orion Hodson 230090ccc1 Remove remaining libnativehelper implicit includes
Bug: 152482542
Test: m checkbuild
Change-Id: Ieded4b0e3906ef625b3bb6cf0dd1a3e178dd320c
2020-09-24 14:42:11 +01:00
Stephen Hines 4392eaf2d3 Merge "Switch to clang-r399163." am: c5a0e64d82 am: d421364a97 am: 6c76bfed8f am: 394c241989 am: 140bcb4ee2
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1401176

Change-Id: I78d075f5bbd7a76ea30a58f8eaaf2c918630866c
2020-09-22 19:23:39 +00:00